code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DuplicateRecordFields #-}
module Language.LSP.Types.WatchedFiles where
import Data.Aeson
import Data.Aeson.TH
import Data.Bits
import Data.Scientific
import Language.LSP.Types.Common
import Language.LSP.Types.Uri
import Language.LSP.Types.Utils
import Data.Text (Tex... | wz1000/haskell-lsp | lsp-types/src/Language/LSP/Types/WatchedFiles.hs | mit | 3,866 | 4 | 10 | 804 | 690 | 378 | 312 | 68 | 0 |
{-# LANGUAGE CPP #-}
module ListTest where
import Testing
import Control.Hspl
import qualified Control.Hspl.List as L
import Control.Hspl.Internal.Ast
import qualified Control.Hspl.Internal.Ast as Ast
import Control.Hspl.Internal.Syntax
import Control.Monad
import Data.CallStack
import Data.Maybe
import Data.Monoid
... | jbearer/hspl | test/ListTest.hs | mit | 9,363 | 5 | 25 | 2,451 | 3,869 | 2,026 | 1,843 | 159 | 9 |
module AST.Type where
import Util.Functions
import AST.Annotation
( Annotation
, Annotated
, getAnnotation
, setAnnotation
, removeAnnotations
)
type Type = String
data TypeDecl
= TypeName Annotation Type
| Generic Annotation Type [TypeDecl]
| Function Annotation [TypeDecl] TypeDecl
|... | jmikkola/Athena | src/AST/Type.hs | mit | 1,578 | 0 | 13 | 477 | 549 | 283 | 266 | 45 | 0 |
{-# LANGUAGE Safe #-}
{-|
Module : Config
Description : Configuration file parser and abstract syntax
Copyright : (c) Eric Mertens, 2017
License : ISC
Maintainer : emertens@gmail.com
This module parses files using the syntax demonstrated below.
The full lexical syntax is available in the Alex source file.
... | glguy/config-value | src/Config.hs | mit | 9,276 | 0 | 13 | 2,025 | 724 | 399 | 325 | 66 | 14 |
module Main where
import Test.Hspec
import Sound.Chewie.Tests(spec)
main :: IO ()
main = hspec spec
| prophile/chewie | Test.hs | mit | 104 | 0 | 6 | 19 | 38 | 22 | 16 | 5 | 1 |
-- | Base module
{-# OPTIONS_HADDOCK hide #-}
{-# LANGUAGE UnicodeSyntax #-}
module TSTP.Base where
import Data.Set (toList)
import Data.TSTP
( AtomicWord (..)
, BinOp
, Formula (..)
, freeVarsF
, IntroType
( Assumption_
, AxiomOfChoice
, Definition_
, Tautolog... | agomezl/tstp2agda | src/TSTP/Base.hs | mit | 3,010 | 0 | 8 | 848 | 751 | 416 | 335 | 111 | 1 |
{-# LANGUAGE LambdaCase #-}
module Main where
import Control.Monad (foldM)
import Control.Arrow ((>>>), (&&&))
import Control.Monad.Trans.Writer.Lazy (tell, runWriter, execWriter)
import Data.Function ((&))
import Data.List (maximumBy, isPrefixOf)
import Data.Maybe (fromJust)
import Data.Ord (comparing)
import System... | nathansomething/emojiscript | transpiler/Transpile.hs | mit | 3,617 | 0 | 15 | 962 | 1,384 | 718 | 666 | 80 | 7 |
module Main where
import SubsetSum
import Text.Printf
main :: IO ()
main = getContents
>>= printoutput
. subsetsum'
. map read
. takeWhile (/=".")
. lines
. filter (`elem`"0123456789-.\n")
printoutput Nothing = putStrLn "Nothing"
printoutput (Just l) = do
printf "%2f\n" $ sum l
mapM_ (printf... | spoj/mwtools | app/sssum.hs | mit | 344 | 0 | 10 | 80 | 130 | 65 | 65 | 16 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module MuCalc.Generators ( dimensions
, dimNStates
, pairsOf
, forAllStates
, iffActions
, subsetN
)
where
import qualified Data.Set... | johnbcoughlin/mucalc | test/MuCalc/Generators.hs | gpl-2.0 | 1,395 | 0 | 10 | 391 | 396 | 222 | 174 | 31 | 1 |
module Cryptography.MACs.Terms where
import Notes
makeDefs
[ "message authentication code"
, "MAC"
, "tag space"
, "tag"
, "MAC-forgery"
, "CMA secure"
, "Encrypt-then-MAC"
, "EtM"
, "Encrypt-and-MAC"
, "EaM"
, "MAC-then-Encrypt"
, "MtE"
, "impersonat... | NorfairKing/the-notes | src/Cryptography/MACs/Terms.hs | gpl-2.0 | 542 | 0 | 6 | 160 | 76 | 47 | 29 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
module Impulse where
import Numerical
import Vec3
import Material
import Container
import qualified Primitive as P
import qualified Reflection as R
import Data.Aeson
import GHC.Generics
import Control.Applicative
import Control.DeepSeq
data Impulse = Impulse { time :: Flt
... | reuk/rayverb | src/Impulse.hs | gpl-2.0 | 1,293 | 0 | 17 | 322 | 407 | 216 | 191 | 35 | 2 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | source/OpenGL/Helpers.hs | gpl-3.0 | 17,973 | 1 | 33 | 5,568 | 3,953 | 1,939 | 2,014 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, MagicHash
, GeneralizedNewtypeDeriving
#-}
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.Posix.Typ... | jwiegley/ghc-release | libraries/base/System/Posix/Types.hs | gpl-3.0 | 3,532 | 0 | 6 | 545 | 528 | 356 | 172 | -1 | -1 |
module Darqios (
) where
| adarqui/Darqios | src/Darqios.hs | gpl-3.0 | 25 | 0 | 3 | 5 | 7 | 5 | 2 | 1 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RecordWildC... | mstksg/hledger | hledger-api/hledger-api.hs | gpl-3.0 | 7,870 | 0 | 22 | 1,957 | 1,795 | 921 | 874 | -1 | -1 |
--------------------------------------------------------------------------
-- Parse a simple functional programs
--
{- expr ::= let binder1; ..; binderN in expr -- let binding, N >= 1
| \arg1 .. argN -> expr -- lambda expression, N >= 1
| if expr then expr else expr
| expr ::... | alvisespano/Lw | extras/hml-prototype/Parser.hs | gpl-3.0 | 8,380 | 11 | 21 | 2,983 | 2,198 | 1,051 | 1,147 | 217 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-replicapool/gen/Network/Google/Resource/ReplicaPool/ZoneOperations/List.hs | mpl-2.0 | 4,655 | 0 | 18 | 1,114 | 642 | 377 | 265 | 94 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/Exclusions/Patch.hs | mpl-2.0 | 5,855 | 0 | 17 | 1,320 | 867 | 508 | 359 | 121 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/ShippingSettings/List.hs | mpl-2.0 | 5,786 | 0 | 19 | 1,382 | 904 | 521 | 383 | 129 | 1 |
-- -*-haskell-*-
-- ===========================================================================
-- C -> Haskell Compiler: configuration
--
-- Author : Manuel M T Chakravarty
-- Created: 27 September 99
--
-- Version $Revision: 1.3 $ from $Date: 2005/02/07 00:04:28 $
--
-- Copyright (c) [1999..2003] Manue... | thiagoarrais/gtk2hs | tools/c2hs/toplevel/C2HSConfig.hs | lgpl-2.1 | 4,042 | 0 | 6 | 694 | 349 | 246 | 103 | 34 | 1 |
{-# LANGUAGE MultiParamTypeClasses
, GeneralizedNewtypeDeriving
, FunctionalDependencies
, FlexibleInstances
, FlexibleContexts
, UndecidableInstances
#-}
module Data.BTree.Class where
import Prelude hiding (lookup)
import Data.Maybe
import Data.Serialize()
im... | brinchj/btree-concurrent | Data/BTree/Class.hs | lgpl-3.0 | 1,682 | 0 | 13 | 568 | 613 | 353 | 260 | 37 | 0 |
import qualified Data.Set as Set
import qualified Data.Map as Map
import Data.Char
import Debug.Trace
import Euler
import Data.Maybe
import Data.List
import Control.Monad
sortByLS :: [[Integer]] -> [[Integer]]
sortByLS =
let sf a b = if lord == EQ then elor else lord
where lord = compare (length a) (length b... | jdavidberger/project-euler | prob550.hs | lgpl-3.0 | 3,012 | 4 | 18 | 806 | 1,578 | 826 | 752 | 87 | 2 |
{-|
This module expose haskoin-wallet internals. No guarantee is made on the
stability of the interface of these internal modules.
-}
module Network.Haskoin.Wallet.Internals
( module Network.Haskoin.Wallet
, module Network.Haskoin.Wallet.Accounts
, module Network.Haskoin.Wallet.Transaction
, module Network.Haskoin.Wal... | plaprade/haskoin | haskoin-wallet/src/Network/Haskoin/Wallet/Internals.hs | unlicense | 1,059 | 0 | 5 | 83 | 178 | 131 | 47 | 23 | 0 |
module Network.Haskoin.Crypto.Base58.Tests (tests) where
import Test.Framework (Test, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Network.Haskoin.Test.Crypto
import Network.Haskoin.Crypto.Base58
tests :: [Test]
tests =
[ testGroup "Address and Base58"
[ testProperty "dec... | nuttycom/haskoin | tests/Network/Haskoin/Crypto/Base58/Tests.hs | unlicense | 939 | 0 | 8 | 154 | 215 | 117 | 98 | 19 | 1 |
{-# LANGUAGE BangPatterns #-}
module Main where
import Bindings.OculusRift
import Bindings.OculusRift.Types
import Control.Exception ( bracket )
import Debug.Trace ( traceIO )
import Foreign.C.String ( peekCString )
import Foreign.Storable ( peek )
import Data.Maybe ( isJust,fromJust )
import Data.Bits
import Con... | tmishima/bindings-Oculus | test/case1/Main.hs | apache-2.0 | 8,305 | 0 | 20 | 2,227 | 1,840 | 904 | 936 | 176 | 3 |
module Main where
stagger :: (Num t) => t -> t
stagger d = d + 2
crawl d = d + 1
treasureMap d =
crawl(
stagger (
stagger d))
| Leonidas-from-XIV/7langs7weeks | haskell/drunken-pirate.hs | apache-2.0 | 167 | 0 | 9 | 72 | 69 | 36 | 33 | 8 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, GADTs,
NoImplicitPrelude, Rank2Types, TypeFamilies, UndecidableInstances
#-}
module Ethereum.Analyzer.Util
( toDotText
) where
import Protolude hiding (show)
import Ckev.In.Text
import Compiler.Hoopl as CH
import Data.Graph.Inductive.Graph as DGIG
import Data... | zchn/ethereum-analyzer | ethereum-analyzer/src/Ethereum/Analyzer/Util.hs | apache-2.0 | 1,868 | 0 | 20 | 479 | 723 | 388 | 335 | 57 | 1 |
module Language.Drasil.People
( People, Person
, person, person', personWM, personWM', mononym
, HasName
, name, nameStr
, Conv(..) --This is needed to unwrap names for the bibliography
, lstName
, rendPersLFM, rendPersLFM', rendPersLFM''
, comparePeople --For sorting references
) where
-- | A perso... | JacquesCarette/literate-scientific-software | code/drasil-lang/Language/Drasil/People.hs | bsd-2-clause | 4,250 | 0 | 11 | 943 | 1,150 | 633 | 517 | 75 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExistentialQuantification #-}
module Database
( setEncoding
, deletePost
, getComments
, getPosts
, getPostsCount
, getPost
, getPostById
, getTags
, savePost
, vaultGetPostsList
, vaultValidateUrl
, newPost
, tagsToString
, stringToTags ... | dikmax/haskell-blog | src/Database.hs | bsd-2-clause | 10,742 | 0 | 16 | 3,079 | 2,948 | 1,504 | 1,444 | 263 | 2 |
{-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-}
{-# OPTIONS_GHC -fcontext-stack43 #-}
module Games.Chaos2010.Database.Select_best_move where
import Games.Chaos2010.Database.Fields
import Database.HaskellDB.DBLayout
type Select_best_move =
Record
(HCons (LVPair Action (Expr (Maybe String)))
... | JakeWheat/Chaos-2010 | Games/Chaos2010/Database/Select_best_move.hs | bsd-3-clause | 509 | 0 | 17 | 86 | 132 | 72 | 60 | 12 | 1 |
module FuncAsArgument where
data Employee = Coder | Manager | Veep | CEO
deriving (Eq, Ord, Show)
reportBoss :: Employee -> Employee -> IO ()
reportBoss e e' =
putStrLn $ show e ++ " is the boss of " ++ show e'
employeeRank :: Employee -> Employee -> IO ()
employeeRank e e' = case compare e e' of
GT -> reportB... | chengzh2008/hpffp | src/ch07-FunctionPattern/funcAsArgument.hs | bsd-3-clause | 401 | 0 | 8 | 91 | 149 | 75 | 74 | 11 | 3 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Importing from logs.
module Ircbrowse.Import where
import Ircbrowse.Data
import Ircbrowse.Model.Data
import Ircbrowse.Model.Migrations
import ... | chrisdone/ircbrowse | src/Ircbrowse/Import.hs | bsd-3-clause | 9,809 | 1 | 26 | 3,512 | 2,136 | 1,069 | 1,067 | 180 | 4 |
module WatchFile (watch) where
import Control.Monad (filterM)
import Prelude hiding (FilePath)
import System.FilePath
import System.Directory (getDirectoryContents,
getModificationTime,
doesDirectoryExist,
doesFileExist,
... | ayachigin/watch-file | src/WatchFile.hs | bsd-3-clause | 2,482 | 0 | 20 | 640 | 948 | 485 | 463 | 64 | 3 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Control.Eff.Simulate.Strict (
EffSimulate
, whileExclusiveM
, whileExclusiveM_
, tryM
) where
import Control.Eff
import Cont... | rybern/monad-simulate | src/Control/Eff/Simulate/Strict.hs | bsd-3-clause | 2,502 | 0 | 12 | 704 | 818 | 408 | 410 | 73 | 2 |
--
-- Object: tests of Object module
--
module UnitTest.Aya.Object where
import Data.Maybe
import Test.Framework (defaultMain, testGroup)
import Test.Framework.Providers.HUnit
import Test.Framework.Providers.QuickCheck
import Test.HUnit
import Test.QuickCheck
import Aya.Algebra
import Aya.Color
import Aya.Geometry
... | eiji-a/aya | src/UnitTest/Aya/Object.hs | bsd-3-clause | 1,240 | 0 | 13 | 259 | 470 | 252 | 218 | 33 | 1 |
module Q where
import Data.ByteString
bar :: ByteString
bar = empty
| markflorisson/hpack | testrepo/q-0.1/Q.hs | bsd-3-clause | 70 | 0 | 4 | 13 | 19 | 12 | 7 | 4 | 1 |
{-# LANGUAGE ScopedTypeVariables,
TypeOperators #-}
{- 2012 Joel Svensson -}
module Test where
import qualified Intel.ArbbVM as VM
import qualified Intel.ArbbVM.Convenience as VM
import Intel.ArBB.Vector
import Intel.ArBB.Data.Int
import Intel.ArBB
import Intel.ArBB.Language as Lang
import Inte... | svenssonjoel/EmbArBB | Test.hs | bsd-3-clause | 7,046 | 0 | 13 | 2,624 | 407 | 225 | 182 | 37 | 1 |
import Intel.ArBB
import Intel.ArBB.Util.Image
import qualified Data.Vector.Storable as V
import Prelude as P hiding (length,map)
import Data.Word
import System.IO
import Foreign hiding (new)
{-
| -1 0 1 |
Gx = | -2 0 2 |
| -1 0 1 |
| -1 -2 -1 |
Gy = | 0 0 0 |
| 1 2 1 |... | svenssonjoel/EmbArBB | Samples/sobel.hs | bsd-3-clause | 1,746 | 0 | 12 | 600 | 717 | 389 | 328 | 43 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Servant.Servant.Filestore where
import Data.FileStore (create)
import Data.FileStore.Git (gitFileStore)
import Servant.Servant.Types
startRepo :: GithubURL -> IO ()
commit :: FilePath -> IO ()
| jkarni/servant-servant | src/Servant/Servant/Filestore.hs | bsd-3-clause | 238 | 0 | 7 | 32 | 63 | 37 | 26 | 7 | 0 |
{-# LANGUAGE RecordWildCards, PatternGuards #-}
module ProcessQueue
( ProcessQueue
, Result(..)
, newQueue
, runQueue
, enqueue
, listen
, getResultWithTag
) where
import Control.Concurrent
import Control.Concurrent.STM.TChan
import Control.Monad
import Control.Monad.STM
import Data.Fun... | danr/agder | backend/ProcessQueue.hs | bsd-3-clause | 2,553 | 0 | 13 | 670 | 680 | 369 | 311 | 63 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Kafka.Specs.Kafka.EndToEnd.KeepAliveSpecs where
import Control.Concurrent.MVar
import Network.Kafka.Consumer.KeepAlive
import Network.Kafka.Producer
import Network.Kafka.Types
import Network.Kafka.Specs.IntegrationHelper
import System.IO
import System.Timeout
import Tes... | tcrayford/hafka | Network/Kafka/Specs/Kafka/EndToEnd/KeepAliveSpecs.hs | bsd-3-clause | 2,166 | 0 | 14 | 447 | 548 | 271 | 277 | 50 | 2 |
module CLaSH.Util.Pretty.Core
( pprBinding
)
where
-- GHC API
import qualified CoreSyn
import qualified CoreUtils
import Outputable (OutputableBndr, showSDoc, ppr, ($+$), (<+>), nest, empty, text, vcat)
import qualified Outputable
import qualified Var
-- Internal Modules
import CLaSH.Util.Core.Show ()
pprBinding... | christiaanb/clash-tryout | src/CLaSH/Util/Pretty/Core.hs | bsd-3-clause | 795 | 0 | 15 | 147 | 296 | 166 | 130 | 21 | 1 |
module Text.Highlighter
( module Text.Highlighter.Lexer
, module Text.Highlighter.Lexers
, module Text.Highlighter.Types
, lexerFromFilename
) where
import Text.Highlighter.Lexer
import Text.Highlighter.Lexers
import Text.Highlighter.Types
import System.FilePath
lexerFromFilename :: FilePath -> M... | chemist/highlighter | src/Text/Highlighter.hs | bsd-3-clause | 386 | 0 | 6 | 59 | 81 | 50 | 31 | 11 | 1 |
#!/usr/bin/env runhaskell
-----------------------------------------------------------------------------
-- |
-- Module : rbpatch.hs
--
-- Maintainer : adam.smyczek@gmail.com
-- Stability : experimental
-- Portability : portable
--
-- A command line tool to patch local repository from a review request diff
-... | asmyczek/hreviewboard | example/rbpatch.hs | bsd-3-clause | 6,625 | 0 | 15 | 1,878 | 1,788 | 942 | 846 | 115 | 4 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
module Language.Pretty (
pprint,
pretty,
) where
import Data.Char
import Data.Text
import Data.Text.IO
import Numeric
import Text.PrettyPrint
import Language.Syntax
pprint :: Expression -> IO ()
pprint = Data.Text.IO.put... | airtial/hellolisp.scala | src/Language/Pretty.hs | mit | 913 | 0 | 14 | 198 | 356 | 179 | 177 | 32 | 10 |
{-# LANGUAGE Haskell2010, TemplateHaskell #-}
module Numeric.Matrix.Sugar (
iMatrix, dMatrix
) where
import Numeric.Matrix
import Language.Haskell.TH
import Language.Haskell.TH.Quote
import Data.Data
import Data.Complex
import Data.Ratio
type ReadM a = String -> Matrix a
iMatrix = QuasiQuoter
... | erantapaa/bed-and-breakfast | src/Numeric/Matrix/Sugar.hs | mit | 705 | 0 | 14 | 172 | 211 | 116 | 95 | 21 | 1 |
{-# Language TypeFamilies, FlexibleInstances, FlexibleContexts #-}
module Csound.Control.Overload.MidiInstr(
MidiInstr(..)
) where
import Csound.Typed
import Csound.Typed.Opcode
ampCps :: Msg -> (D, D)
ampCps msg = (ampmidi msg 1, cpsmidi msg)
---------------------------------------------------------------------... | isomorphism/csound-expression | src/Csound/Control/Overload/MidiInstr.hs | bsd-3-clause | 10,754 | 0 | 13 | 2,790 | 5,610 | 3,140 | 2,470 | 211 | 1 |
module JavaScript.Web.Blob ( Blob
, size
, contentType
, slice
, isClosed
, close
) where
import JavaScript.Web.Blob.Internal
| tavisrudd/ghcjs-base | JavaScript/Web/Blob.hs | mit | 290 | 0 | 4 | 182 | 34 | 23 | 11 | 7 | 0 |
{-# OPTIONS_GHC -Wall #-}
module Optimize.Inline (inline) where
import Control.Arrow (second, (***))
import Control.Monad (foldM)
import qualified Data.List as List
import qualified Data.Map as Map
import AST.Expression.General (PortImpl(..))
import AST.Expression.Optimized (Expr(..), Decider(..), Choice(..))
import ... | 5outh/Elm | src/Optimize/Inline.hs | bsd-3-clause | 7,120 | 0 | 23 | 2,535 | 2,372 | 1,167 | 1,205 | 201 | 28 |
{-# LANGUAGE CPP, TupleSections #-}
-- |Vectorisation of expressions.
module Vectorise.Exp
( -- * Vectorise right-hand sides of toplevel bindings
vectTopExpr
, vectTopExprs
, vectScalarFun
, vectScalarDFun
)
where
#include "HsVersions.h"
import GhcPrelude
import Vectorise.Type.Type
import Vectorise... | ezyang/ghc | compiler/vectorise/Vectorise/Exp.hs | bsd-3-clause | 49,710 | 6 | 22 | 14,261 | 11,342 | 5,942 | 5,400 | -1 | -1 |
module Module where
foo = let obj = 2 in
let b = obj; c = obj in
let x = case b of
3 -> 2
5 -> 6 in
let y = c in
3
| hvr/jhc | regress/tests/0_parse/2_pass/fixed_bugs/case_in_stacking.hs | mit | 156 | 0 | 16 | 78 | 75 | 38 | 37 | 8 | 2 |
{-# language MagicHash #-}
{-# language UnboxedTuples #-}
module FillArray
( fill
) where
import GHC.Exts
import GHC.IO
data ByteArray = ByteArray ByteArray#
fill :: IO ByteArray
fill = IO $ \s0 -> case newByteArray# 24# s0 of
(# s1, m #) -> case setByteArray# m 0# 23# 1# s1 of
s2 -> case unsafeFreezeByte... | sdiehl/ghc | testsuite/tests/codeGen/should_gen_asm/bytearray-memset-unroll.hs | bsd-3-clause | 382 | 0 | 17 | 92 | 121 | 65 | 56 | 12 | 1 |
module SASUM where
import Random
import System.Random.MWC
import Data.Array.Unboxed
import Data.Array.Accelerate as Acc
-- Sum of absolute values
-- ----------------------
sasumAcc :: Vector Float -> Acc (Scalar Float)
sasumAcc xs
= Acc.fold (+) 0 . Acc.map abs $ Acc.use xs
sasumRef :: UArray Int Float -> UArra... | blambo/accelerate-examples | tests/simple/SASUM.hs | bsd-3-clause | 742 | 0 | 12 | 159 | 299 | 154 | 145 | 19 | 1 |
{-# LANGUAGE GADTs, EmptyDataDecls, KindSignatures #-}
module ShouldCompile where
import Data.Kind (Type)
-- Various forms of empty data type declarations
data T1
data T2 where
data T3 :: Type -> Type
data T4 a :: Type -> Type
data T5 a :: Type -> Type where
| sdiehl/ghc | testsuite/tests/typecheck/should_compile/tc247.hs | bsd-3-clause | 269 | 0 | 5 | 56 | 56 | 37 | 19 | -1 | -1 |
module Package10 where
x = emptyUFM
| urbanslug/ghc | testsuite/tests/package/package10.hs | bsd-3-clause | 36 | 0 | 4 | 6 | 9 | 6 | 3 | 2 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.WebGLCompressedTextureATC
(pattern COMPRESSED_RGB_ATC_WEBGL,
pattern COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_W... | ghcjs/jsaddle-dom | src/JSDOM/Generated/WebGLCompressedTextureATC.hs | mit | 1,368 | 0 | 6 | 157 | 331 | 217 | 114 | 24 | 0 |
module Language.Dash.Normalization.NormalizationState (
Norm
, emptyNormState
, enterContext
, leaveContext
, addBinding
, addAlias
, hasBinding
, addDynamicVar
, lookupName
, newTempVar
, freeVariables
, addSymbolName
, getSymbolNames
, constTable
, addConstant
, arity
, addArity
) where
import Control.M... | arne-schroppe/dash | src/Language/Dash/Normalization/NormalizationState.hs | mit | 7,417 | 0 | 17 | 1,860 | 1,984 | 1,026 | 958 | 174 | 4 |
------------------------------------------------------------------------------
-- | Defines the 'Point' type and associated functions, for identifying points
-- on a model to generate detail at.
module Graphics.DetailGen.Point
(
-- * Type
Point (..)
-- * Utilities
, stdUp
, stdCopy
, centroid
, poin... | zmthy/incidental-detail | src/Graphics/DetailGen/Point.hs | mit | 3,229 | 0 | 9 | 539 | 785 | 435 | 350 | 62 | 4 |
module Feature.User.Service where
import ClassyPrelude
import Control.Monad.Except
import Feature.User.Types
import Feature.Auth.Types
import Feature.Common.Util (orThrow)
-- * User
login :: (UserRepo m, TokenRepo m) => Auth -> m (Either UserError User)
login auth = runExceptT $ do
(uId, user) <- ExceptT $ findUse... | eckyputrady/haskell-scotty-realworld-example-app | src/Feature/User/Service.hs | mit | 2,481 | 0 | 12 | 420 | 890 | 453 | 437 | 48 | 2 |
module Test.Info2.Cyp.Term
( IdxName
, AbsTerm (..)
, Term
, RawTerm
, AbsProp (..)
, Prop
, RawProp
, collectFrees
, defaultConsts
, defaultToFree
, generalizeExcept
, generalizeExceptProp
, iparseTerm
, iparseProp
, isFree
, isSchematic
, listComb
... | noschinl/cyp | src/Test/Info2/Cyp/Term.hs | mit | 14,078 | 0 | 17 | 3,130 | 5,772 | 2,927 | 2,845 | 306 | 7 |
{-# LINE 1 "compiler/utils/Fingerprint.hsc" #-}
{-# LANGUAGE CPP #-}
-- ----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2006
--
-- Fingerprints for recompilation checking and ABI versioning.
--
-- http://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler... | antalsz/hs-to-coq | examples/ghc/gen-files/Fingerprint.hs | mit | 1,424 | 0 | 9 | 251 | 229 | 139 | 90 | 24 | 1 |
module PostgREST.RangeQuery (
rangeParse
, rangeRequested
, rangeLimit
, rangeOffset
, restrictRange
, NonnegRange
) where
import Control.Applicative
import Network.HTTP.Types.Header
import PostgREST.Types ()
import qualified Data.ByteString.Char8 as BS
import ... | NikolayS/postgrest | src/PostgREST/RangeQuery.hs | mit | 1,995 | 8 | 16 | 502 | 569 | 295 | 274 | 52 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module CreepyWaffle.UI
( drawUi
, eventHandler
, attrSet
) where
--
import CreepyWaffle.Types
--
import Data.Monoid ((<>))
import Control.Applicative
--
import qualified Graphics.Vty as V
import qualified Brick.Widgets.Center as C (center)
import qualified Brick.Widgets.B... | jaiyalas/creepy-waffle | _useless/UI.hs | mit | 4,102 | 0 | 20 | 1,207 | 1,461 | 798 | 663 | 96 | 14 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad
import Data.List
import Data.Time
import Document.Document
import qualified UnitB.Test as UB
import qualified Latex.Test as LT
import qualified Z3.Test as ZT
import qualified Document.Test as DOC
import qualified Utilities.Test as UT
import qu... | literate-unitb/literate-unitb | src/bench.hs | mit | 1,920 | 0 | 15 | 554 | 492 | 258 | 234 | 62 | 2 |
module Util where
import System.Environment (lookupEnv)
lookupSetting :: Read a => String -> a -> IO a
lookupSetting env def = maybe def read <$> lookupEnv env
| parsonsmatt/QuickLift | src/Util.hs | mit | 172 | 0 | 8 | 39 | 59 | 30 | 29 | 4 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.Urho3D.UI.ScrollBar(
ScrollBar
, scrollBarContext
, SharedScrollBar
, scrollBarSetOrientation
, scrollBarSetRange
, scrollBarSetValue
, scrollBarChangeValue
, scrollBarSetScrollStep
, scrollBarSetStepFactor
, scrollBarStepBack
, scrollBarStep... | Teaspot-Studio/Urho3D-Haskell | src/Graphics/Urho3D/UI/ScrollBar.hs | mit | 8,387 | 0 | 18 | 1,432 | 1,849 | 1,016 | 833 | -1 | -1 |
{-| Metadata functions.
-}
module Shikensu.Metadata
( transposeMetadata
, transposeToMetadata
) where
import Flow
import Shikensu.Internal.Types
import qualified Data.Aeson as Aeson (FromJSON, Result(..), ToJSON, fromJSON, toJSON)
import qualified Data.Aeson.KeyMap as KeyMap (empty, fromList)
{-| Trans... | icidasset/shikensu | src/Shikensu/Metadata.hs | mit | 1,373 | 0 | 11 | 362 | 266 | 144 | 122 | 25 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
-------------------------------------------------------------------... | JPMoresmau/leksah | src/IDE/Pane/Grep.hs | gpl-2.0 | 15,474 | 18 | 47 | 4,763 | 3,595 | 1,851 | 1,744 | 324 | 7 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
-- Module : Yi.Keymap.Vim.VisualMap
-- License : GPL-2
-- Maintainer : yi-devel@googlegroups.com
-- Stability : experimental
-- Portability : portable
--
-- I'm a module waiting for some kind soul to give me a commentary!
... | leksah/yi | src/library/Yi/Keymap/Vim/VisualMap.hs | gpl-2.0 | 11,029 | 0 | 23 | 4,372 | 2,798 | 1,444 | 1,354 | 232 | 6 |
main = do
putStrLn "thickness of the paper in mm:"
t <- readLn
let n1 = t * 3.1415
putStrLn "width of the paper in mm:"
w <- readLn
let n2 = w / n1
let n3 = logBase 2 n2
let n4 = 0.66667 * n3
let n5 = 1 + n4
let n6 = floor n... | nullx002/n-folds---paper-folding | n-folds.hs | gpl-2.0 | 386 | 0 | 10 | 169 | 126 | 55 | 71 | 12 | 1 |
{-| Implementation of DataCollectors CLI functions.
This module holds the common command-line related functions for the
collector binaries.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Licens... | damoxc/ganeti | src/Ganeti/DataCollectors/CLI.hs | gpl-2.0 | 4,025 | 0 | 14 | 1,040 | 640 | 380 | 260 | 80 | 1 |
module Main where
import Codec.Compression.GZip (decompress)
import Control.Monad (forM_)
import qualified Data.ByteString.Lazy.Char8 as LB
import Data.Maybe
import HROOT.Core
import HROOT.Hist
import HROOT.Graf
import HROOT.IO
--
import HEP.Storage.WebDAV.CURL
import HEP.Util.Either
import HEP.Parser.LHCOAnalysis... | wavewave/lhc-analysis-collection | exe/leptoquark.hs | gpl-3.0 | 2,237 | 0 | 18 | 530 | 428 | 228 | 200 | 37 | 1 |
class Functor f where
fmap :: (a -> b) -> f a -> f b
(<$>) :: Functor f => (a -> b) -> f a -> f b
infixl 4 <$>
(<$) :: Functor f => a -> f b -> f a
infixl 4 <$
-- The default definition is fmap . const,
--but this may be overridden with a more efficient version.
--------------------------------
--Minimal comp... | YPBlib/NaiveFunGame_hs | zju_lambda/typeclass.hs | gpl-3.0 | 9,594 | 0 | 12 | 2,379 | 2,082 | 1,113 | 969 | -1 | -1 |
module Hob.Ui.SidebarSearch (
newSideBarFileTreeSearch,
startSidebarSearch,
updateSidebarSearch,
continueSidebarSearch,
continueSidebarSearchBackwards,
initFileTreeIndex,
) where
import Control.Concurrent.MVar (newMVar, readMVar,
... | svalaskevicius/hob | src/lib/Hob/Ui/SidebarSearch.hs | gpl-3.0 | 14,500 | 1 | 22 | 3,946 | 4,132 | 2,037 | 2,095 | 251 | 11 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-importexport/gen/Network/AWS/ImportExport/GetShippingLabel.hs | mpl-2.0 | 7,034 | 0 | 11 | 1,735 | 1,278 | 749 | 529 | 126 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dlp/gen/Network/Google/Resource/DLP/Organizations/Locations/InspectTemplates/Patch.hs | mpl-2.0 | 6,348 | 0 | 16 | 1,316 | 781 | 458 | 323 | 122 | 1 |
{- hub-binl < pattern.hub port label wavetable > pattern.binl
hub = Horizontal Uncompressed Binary
States have been converted to binary wavetable entries
TODO Handle padding -- divisible by 6 for VM, 8 for SM
aldc subprocess does compression
-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import qua... | gitfoxi/vcd-haskell | app/hub-repeat-compress-hub.hs | agpl-3.0 | 4,281 | 0 | 15 | 1,113 | 1,531 | 797 | 734 | 94 | 2 |
{-# LANGUAGE RecordWildCards #-}
module C18.Actions where
import Control.Error
import C18.Actions.DeNest
import C18.Actions.Report
import C18.Types
action :: Actions -> Script ()
action Report = report
action DeNest{..} = deNest denestInput denestOutput denestTagNa... | erochest/c18sgml | src/C18/Actions.hs | apache-2.0 | 362 | 0 | 7 | 110 | 74 | 41 | 33 | 10 | 1 |
-- Copyright 2020 Google LLC
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in ... | google/cabal2bazel | bzl/tests/template_haskell/TestDependency.hs | apache-2.0 | 802 | 0 | 8 | 140 | 87 | 55 | 32 | 9 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Bucketeer.Testing.Util (specs) where
import Bucketeer.Types
import Bucketeer.Util
import Data.HashMap.Strict (HashMap,
singleton,
empty)
import Test.Hspec (Specs,
describe,
descripti... | MichaelXavier/Bucketeer | Bucketeer/Testing/Util.hs | bsd-2-clause | 1,127 | 0 | 12 | 305 | 285 | 164 | 121 | 25 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE OverloadedStrings #-}
module Database.Concelo.Subscriber
( Subscriber()
, subscriber
, receive
, Tree()
, emptyTree
, getTreeMessage
, getTreeACLTrie
, getTreeACLFromTries
, getTreeSync
, getTreeKey
... | Concelo/concelo | src/Database/Concelo/Subscriber.hs | bsd-3-clause | 22,971 | 0 | 35 | 6,964 | 5,964 | 3,076 | 2,888 | 510 | 7 |
module Util where
import Control.Monad
import qualified Debug.Trace
maximaBy :: (a -> a -> Ordering) -> [a] -> [a]
maximaBy comp = go []
where
go accum [] = accum
go [] (x:xs) = go [x] xs
go as@(a:_) (x:xs) = case x `comp` a of
GT -> go [x] xs
EQ -> go (x:as) xs
LT -> go as xs
m... | maertsen/netPropCheck | Util.hs | bsd-3-clause | 1,073 | 10 | 12 | 274 | 598 | 317 | 281 | 30 | 5 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TemplateHaskell #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Distributed.Process.Extras.Timer
-- Copyright : (c) Tim Watson ... | qnikst/distributed-process-extras | src/Control/Distributed/Process/Extras/Timer.hs | bsd-3-clause | 6,824 | 0 | 16 | 1,532 | 1,244 | 667 | 577 | 109 | 5 |
{-# LANGUAGE TemplateHaskell #-}
module Server.ClientT where
import Control.Lens (makeLenses)
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as UV
import qualified Constants
import Game.UserCmdT
import QCommon.SizeBufT
import QCommon.NetCh... | ksaveljev/hake-2 | src/Server/ClientT.hs | bsd-3-clause | 1,250 | 0 | 8 | 430 | 250 | 159 | 91 | 38 | 1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell, Trustworthy #-}
-- |
-- Maintainer : Ricky Elrod <ricky@elrod.me>
-- Stability : stable
--
-- The highest level of a response that Cruncher deals with. Contains only the
-- final result of a sandbox run, including compilation and execution.
module Evalso.Cruncher.Fin... | eval-so/cruncher-types | src/Evalso/Cruncher/FinalResult.hs | bsd-3-clause | 1,398 | 0 | 9 | 307 | 213 | 126 | 87 | 24 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Yelp.Types
( Credentials(..)
, Coordinates(..)
, coordsAsBS
, Locale(..)
, (.=)
) where
import Control.Applicative
import Control.Monad (mzero)
import Data.Aeson ((.:), (.:?))
import Data.ByteString (ByteString)
import Data.Text (Text)
import qua... | mcschroeder/yelp | Web/Yelp/Types.hs | bsd-3-clause | 2,720 | 0 | 9 | 601 | 685 | 399 | 286 | 57 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE Typ... | Garygunn94/DFS | FileServer/.stack-work/intero/intero83906gqM.hs | bsd-3-clause | 3,824 | 0 | 15 | 763 | 928 | 463 | 465 | 89 | 2 |
module Twitter.AuthToken where
import BasicPrelude hiding (ByteString,lookup)
import Data.Aeson
import qualified Data.ByteString as BS
import Data.ByteString.Lazy hiding (zip)
import Data.Map.Strict (Map,lookup)
import Data.Text.Encoding
import Network.HTTP.Client
import Network.HTTP.Client.TLS
import Network.HTTP.Ty... | TwitterFriends/twitter-friend-server | src/Twitter/AuthToken.hs | bsd-3-clause | 2,229 | 0 | 12 | 352 | 376 | 214 | 162 | 39 | 1 |
-- |
module Main where
import Graphics.UI.Gtk
import Gtk.Samples
import Control.Monad.IO.Class (liftIO)
main :: IO ()
main = do
initGUI
builder <- builderNew
builderAddFromFile builder "interface.glade"
window <- builderGetObject builder castToWindow "window1"
tview <- builderGetObject builder castToTre... | nishihs/gtk-samples | src/Main.hs | bsd-3-clause | 855 | 0 | 11 | 153 | 241 | 114 | 127 | 22 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module ETA.CodeGen.Rts where
import Data.Text (Text)
import Codec.JVM
import Codec.JVM.Const
import Data.Monoid((<>))
import qualified Data.Text as T
-- NOTE: If the RTS is refactored, this file must also be updated accordingly
-- merge "a" "b" == "a/b"
merge :: Text -> Text -> T... | pparkkin/eta | compiler/ETA/CodeGen/Rts.hs | bsd-3-clause | 9,553 | 0 | 11 | 2,084 | 2,683 | 1,444 | 1,239 | 237 | 8 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Conduit.Kafka
import Haskakafka as HK
import Data.Conduit
import qualified Data.Conduit.Combinators as CC (print, mapM, mapM_, sinkNull, repeat)
import Control.Monad (forever)
import Control.Monad.IO.Class (MonadIO, liftIO)
import Control.Monad.Trans.Resource (runResourceT... | Atidot/kafka-conduit | test/Spec.hs | bsd-3-clause | 1,377 | 4 | 11 | 267 | 390 | 205 | 185 | 38 | 1 |
{-# LANGUAGE CPP, FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances #-}
module Llvm.Query.Type where
import Llvm.ErrorLoc
#define FLC (FileLoc... | mlite/hLLVM | src/Llvm/Query/Type.hs | bsd-3-clause | 24,588 | 0 | 21 | 6,947 | 9,395 | 4,543 | 4,852 | 481 | 24 |
-- | A lexical environment analysis of ECMAScript programs
module Language.ECMAScript5.Analysis.LexicalEnvironment
( env
, localVars
, EnvTree (..)
) where
import Data.List
import Data.Maybe
import qualified Data.Map.Strict as M
import Data.Map.Strict (Map)
import qualified Data.Set as S
import Data.Set (Set)... | jswebtools/language-ecmascript-analysis | src/Language/ECMAScript5/Analysis/LexicalEnvironment.hs | bsd-3-clause | 5,864 | 0 | 14 | 1,294 | 2,125 | 1,062 | 1,063 | 120 | 20 |
{-# LANGUAGE CPP #-}
{-
GL-to-vulkan conversion from
https://github.com/KhronosGroup/KTX-Software/blob/bf849b7f/lib/vk_format.h
-}
{-
Copyright (c) 2016 Oculus VR, LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a... | expipiplus1/vulkan | utils/src/Vulkan/Utils/FromGL.hs | bsd-3-clause | 20,593 | 0 | 9 | 3,426 | 2,064 | 1,072 | 992 | -1 | -1 |
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list... | rCEx/feldspar-lang-small | src/Feldspar/Prelude.hs | bsd-3-clause | 2,212 | 0 | 6 | 486 | 195 | 144 | 51 | 38 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE CPP #-}
module Codec.Picture.Jpg.Types( MutableMacroBlock
, createEmptyMutableMacroBlock
, printMacroBlock
, printPureMacroBlock
... | clinty/Juicy.Pixels | src/Codec/Picture/Jpg/Types.hs | bsd-3-clause | 24,305 | 0 | 20 | 7,581 | 5,942 | 3,077 | 2,865 | 667 | 21 |
-- | This is the AST meant to be executed.
module Data.GraphQL.AST.Core where
import Data.Int (Int32)
import Data.List.NonEmpty (NonEmpty)
import Data.String
import Data.Text (Text)
type Name = Text
type Document = NonEmpty Operation
data Operation = Query (NonEmpty Field)
| Mutation (NonEmpty Fi... | jdnavarro/graphql-haskell | Data/GraphQL/AST/Core.hs | bsd-3-clause | 968 | 0 | 8 | 267 | 262 | 152 | 110 | 25 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
module B.Simple
( evalBuild
, evalBuildStringPath
) where
import Control.Concurrent.MVar
import Control.Concurrent.STM (STM)
import Control.Monad
import Control.Monad.IO.Class
import Control.Monad.Parallel (MonadParallel)
import Data.Typeable.Internal (TypeRep(TypeRep))
impo... | strager/b | B/Simple.hs | bsd-3-clause | 3,513 | 0 | 20 | 692 | 1,057 | 571 | 486 | 103 | 2 |
module Distribution.Utils.NubList
( NubList -- opaque
, toNubList -- smart construtor
, fromNubList
, overNubList
, NubListR
, toNubListR
, fromNubListR
, overNubListR
) where
import Distribution.Compat.Binary
import Data.Monoid
import Distribution.Simple.Utils (ordNub, listUn... | plumlife/cabal | Cabal/Distribution/Utils/NubList.hs | bsd-3-clause | 3,398 | 0 | 9 | 685 | 754 | 413 | 341 | 46 | 1 |
{-#LANGUAGE OverloadedStrings#-}
{-
Min Zhang
3/18/2015
filter certain length of the reads
v.0.1.0 (Oct 14, 2015): switch from Data.Text to Data.Text.Lazy
-}
module Main
where
import IO
import qualified Data.Text.Lazy as T
import qualified Data.Text.Lazy.IO as TextIO
import DataTypes
import System.Environ... | Min-/fourseq | src/utils/FilterLength.hs | bsd-3-clause | 707 | 0 | 12 | 127 | 185 | 105 | 80 | 16 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.