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
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-} module Ch00_Tests where import Ch05_02_rank_n_types import Ch05_03_universal_quantification import Ch05_04_existential_quantification import Ch05_05_phantom_types import Ch05_06_gadt import Ch05_07_typecase import Ch05_08_dynamic_types_01 main = do runTests_Ch05_02 ru...
haroldcarr/learn-haskell-coq-ml-etc
haskell/book/2015-Haskell_Design_Patterns/src/Ch00_Tests.hs
unlicense
433
0
6
48
52
28
24
17
1
module Handler.JournalEdit where import Import getJournalEditR :: JournalId -> Handler RepHtml getJournalEditR = error "Not yet implemented: getJournalEditR"
MasseR/introitu
Handler/JournalEdit.hs
bsd-2-clause
160
0
6
20
29
16
13
4
1
{-# LANGUAGE FlexibleContexts, FlexibleInstances, UndecidableInstances, CPP #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- | -- Literal notation for regular expression. -- -- Importing this module with the 'QuasiQuotes' and 'OverloadedStrings' -- extensions making possible to directly specify reqular expression -- liter...
kazu-yamamoto/relit
Text/Regex/Literal.hs
bsd-3-clause
2,085
0
9
339
240
153
87
17
1
import Control.Monad import Control.Monad.Trans import Simulation.Aivika.Trans import Simulation.Aivika.Lattice meanUpTime = 1.0 meanRepairTime = 0.5 specs = Specs { spcStartTime = 0.0, spcStopTime = 1000.0, spcDT = 0.1, spcMethod = RungeKutta4, spcGen...
dsorokin/aivika-lattice
tests/TraversingLattice1.hs
bsd-3-clause
1,059
0
16
402
256
126
130
33
1
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TemplateHaskell #-} module Juno.Types.Message.Signed ( MsgType(..) , Provenance(..) , Digest(..), digNodeId, digSig, digPubkey, digType , SignedRPC(..) -- for testing & benchmarks , verifySignedRPC ...
haroldcarr/juno
src/Juno/Types/Message/Signed.hs
bsd-3-clause
3,424
0
12
794
731
397
334
82
5
{-# LANGUAGE GADTs #-} module HNN ( module HNN.Tensor , module HNN.NN , module HNN.Layers , module HNN.Data , module HNN.Optimize , module HNN.Init ) where import HNN.Tensor import HNN.NN import HNN.Layers import HNN.Data import HNN.Optimize import HNN.Init
alexisVallet/hnn
src/HNN.hs
bsd-3-clause
275
0
5
55
73
47
26
14
0
module Constants where import SharedTypes (Point(..)) zoomIncrement :: Double zoomIncrement = 5 initialZoom :: Double initialZoom = 20 minZoom :: Double minZoom = 5 maxZoom :: Double maxZoom = 40 tickRadius :: Double tickRadius = 0.4 pointerRadius :: Double pointerRadius = 0.3 optionRadius :: Double optionRadiu...
lubomir/dot-race
fay/Constants.hs
bsd-3-clause
1,014
0
10
422
487
272
215
40
1
-- | -- Module : Foreign.OpenCL.Bindings.Internal.Error -- Copyright : (c) 2011, Martin Dybdal -- License : BSD3 -- -- Maintainer : Martin Dybdal <dybber@dybber.dk> -- Stability : experimental -- Portability : non-portable (GHC extensions) -- module Foreign.OpenCL.Bindings.Internal.Error ( checkClEr...
HIPERFIT/hopencl
Foreign/OpenCL/Bindings/Internal/Error.hs
bsd-3-clause
1,797
0
14
406
495
261
234
26
2
{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleContexts #-} module Language.Mojito.Syntax.ExprBuilder where import Control.Monad.Except import Control.Monad.State import Data.List (partition) import Language.Mojito.Syntax.SExpr import Language.Mojito.Syntax.Expr import Language.Mojito.Syntax.Types ---------------...
noteed/mojito
Language/Mojito/Syntax/ExprBuilder.hs
bsd-3-clause
8,334
0
18
2,017
3,185
1,585
1,600
197
14
{-# LANGUAGE MultiParamTypeClasses, FlexibleContexts, OverloadedStrings #-} module Cauterize.GHC7.Support.PrototypesSpec ( spec ) where import Cauterize.GHC7.Support.Prototypes import Cauterize.GHC7.Support.Result import qualified Data.Vector as V (fromList) import qualified Data.ByteString.Lazy as B import Test....
cauterize-tools/caut-ghc7-ref
test/Cauterize/GHC7/Support/PrototypesSpec.hs
bsd-3-clause
7,226
0
25
1,605
2,470
1,258
1,212
144
1
module AERN2.Poly.Cheb.MaximumPrime( maximum, maximumOptimised, maximumOptimisedWithAccuracy, minimum, minimumOptimised, minimumOptimisedWithAccuracy ) where import MixedTypesNumPrelude hiding (maximum, minimum) --import Text.Printf import AERN2.MP.Ball import AERN2.MP.Dyadic import Data.Ratio import Data.Map (Map) ...
michalkonecny/aern2
aern2-fun-univariate/src/AERN2/Poly/Cheb/MaximumPrime.hs
bsd-3-clause
13,647
0
25
4,324
4,239
2,195
2,044
-1
-1
import Distribution.PackageDescription (PackageDescription(extraSrcFiles)) import Distribution.Simple (UserHooks(buildHook)) import qualified Distribution.Simple as DS import Distribution.Simple.LocalBuildInfo (LocalBuildInfo) import Distribution.Simple.Setup (BuildFlags) import qualified System.Process as Proc import ...
nakaji-dayo/yesod-job-queue
Setup.hs
bsd-3-clause
858
0
11
100
215
119
96
15
1
{-# LANGUAGE RecordWildCards, ImplicitParams, ScopedTypeVariables #-} module Debug.SetExplorer(RSetExplorer, Section, setExplorerNew, setExplorerSetRelation, setExplorerReset, setExplorerGetVarAssignment, ...
termite2/debug
Debug/SetExplorer.hs
bsd-3-clause
16,094
0
24
5,726
4,410
2,220
2,190
278
9
module Language.Lambda.AST ( Name, Exp, Environment , module C , Term(..) ) where import Language.Lambda.Const as C {- import Data.Foldable import Data.Traversable import Control.Applicative import Control.Monad import Bound import Prelude...
WraithM/fingmodules
src/Language/Lambda/AST.hs
bsd-3-clause
1,726
0
9
534
226
134
92
19
0
module LearnParsers where import Control.Applicative import Text.Trifecta stop :: Parser a stop = unexpected "stop" one = char '1' one' = one >> stop oneTwo = char '1' >> char '2' <* eof oneTwo' = oneTwo >> stop oneTwoThree = string "123" <|> string "12" <|> string "1" string' :: String -> Parser String string' ...
taojang/haskell-programming-book-exercise
src/ch24/LearnParsers.hs
bsd-3-clause
841
0
10
177
315
144
171
32
1
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.AmountOfMoney.BG.Tests ( tests ) where import Data.String import Prelude import Test.Tasty im...
facebookincubator/duckling
tests/Duckling/AmountOfMoney/BG/Tests.hs
bsd-3-clause
522
0
9
78
79
50
29
11
1
{- | Copyright : 2007 Eric Kidd License : BSD3 Stability : experimental An alternative version of @Control.Monad.Distribution@ based on exact rational numbers. -} module Control.Monad.Distribution.Rational ( module Control.Monad.Distribution.Base, DDist, ddist, BDDist, bddist ) where import Con...
emk/haskell-probability-monads
Control/Monad/Distribution/Rational.hs
bsd-3-clause
1,031
0
8
178
140
84
56
13
1
{-# LANGUAGE DeriveGeneric #-} module Bullet ( Bullet(..), initBullet ) where import Types import Ship import Data.Aeson import qualified Data.ByteString.Lazy.Char8 as BL8 import Network.WebSockets import GHC.Generics (Generic) bulletSpeed :: Float bulletSpeed = 300 data Bullet = Bullet { bulLoc :: Pos...
cmc-haskell-2016/asteroids
src/Bullet.hs
bsd-3-clause
1,080
0
12
296
337
194
143
39
1
module Parametres where -- Ce module regroupe tous les paramètres que l'utilisateur peut -- modifier dans le programme -- *** Parametres du corps fini GF(p^n) -- p doit etre un nombre premier. L'implementation specialisee des corps -- premiers utilisee dans cette version ne permet pas de changer p p :: Int p = 2 -- l...
Polybulle/reedsolomon
src/Parametres.hs
bsd-3-clause
1,017
0
5
177
124
85
39
11
1
module Physics.Falling.Math.UnitSphere ( UnitSphere(..) ) where class UnitSphere v where unitSphereSamples :: [ v ] nUnitSphereSamples :: Int -> [ v ] nUnitSphereSamples n = take n unitSphereSamples
sebcrozet/falling
Physics/Falling/Math/UnitSphere.hs
bsd-3-clause
207
0
8
36
59
34
25
7
0
{-# Language TemplateHaskell, OverloadedLists, OverloadedStrings #-} {-| Module : Client.Image.Palette Description : Palette of colors used to render the UI Copyright : (c) Eric Mertens, 2016 License : ISC Maintainer : emertens@gmail.com This module provides names for all of the colors used in the UI. -} m...
glguy/irc-core
src/Client/Image/Palette.hs
isc
5,945
0
9
1,716
1,004
618
386
124
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} -- | Use an email address as an identifier via Google's login system. -- -- Note that this is a replacement for "Yesod.Auth.GoogleEmail", which depends -- on Google's now deprecated OpenID system. For more informati...
MaxGabriel/yesod
yesod-auth/Yesod/Auth/GoogleEmail2.hs
mit
24,230
0
50
8,594
4,044
2,253
1,791
393
11
{- | Module : ./CASL/SymbolParser.hs Description : Parser for symbols in translations and reductions Copyright : (c) Christian Maeder, Uni Bremen 2002-2006 License : GPLv2 or higher, see LICENSE.txt Maintainer : Christian.Maeder@dfki.de Stability : provisional Portability : portable Parsing symbo...
spechub/Hets
CASL/SymbolParser.hs
gpl-2.0
4,432
0
22
1,313
1,491
747
744
109
4
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- ...
fmapfmapfmap/amazonka
amazonka-storagegateway/gen/Network/AWS/StorageGateway/RetrieveTapeArchive.hs
mpl-2.0
5,504
0
13
1,189
676
407
269
90
1
-- #4306 -- Check that the worker for 'upd' has only one argument module T4306 where data D = D {-# UNPACK #-} !Double {-# UNPACK #-} !Double data UPD = UPD {-# UNPACK #-} !Double D upd (UPD _ (D x _)) = sqrt $! (x*x + x*x + sin x + x*x + x*x + cos x + x*x + x*x + tan x + x*x + x*x +...
sdiehl/ghc
testsuite/tests/simplCore/should_compile/T4306.hs
bsd-3-clause
543
0
50
215
269
134
135
6
1
{-# OPTIONS_GHC -F -pgmF htfpp #-} {-# LANGUAGE OverloadedStrings #-} module Ignore.VCS.GitSpec (htf_thisModulesTests) where import Ignore import Test.Framework import qualified Data.Text as T ignoreFile :: IgnoreFile ignoreFile = IgnoreFile { if_vcs = VCSGit , if_data = Right $ T.unlines...
agrafix/ignore
test/Ignore/VCS/GitSpec.hs
bsd-3-clause
1,379
0
10
391
335
170
165
47
1
import Codec.Binary.UTF8.String import Test.HUnit import System.Exit (exitFailure) import Control.Monad (when) main = do counts <- runTestTT tests when (errors counts > 0 || failures counts > 0) exitFailure tests = TestList [test_1, test_2, test_3, test_4, test_5] test_1 = TestLabel "1 Some correct UTF-8 t...
abuiles/turbinado-blog
tmp/dependencies/utf8-string-0.3.3/tests/Tests.hs
bsd-3-clause
8,749
0
15
1,693
3,206
1,809
1,397
140
1
{-# LANGUAGE Haskell2010 #-} {-# LINE 1 "Data/IP/Mask.hs" #-} module Data.IP.Mask where import Data.Bits import Data.IP.Addr import Data.Word maskIPv4 :: Int -> IPv4 maskIPv4 len = IP4 $ complement $ 0xffffffff `shift` (-len) maskIPv6 :: Int -> IPv6 maskIPv6 len = IP6 $ toIP6Addr $ bimapTup complement $ ...
phischu/fragnix
tests/packages/scotty/Data.IP.Mask.hs
bsd-3-clause
1,293
0
10
309
565
327
238
36
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns, CPP #-} {-# LANGUAGE NamedFieldPuns #-} module Network.Wai.Handler.Warp.HTTP2.Sender (frameSender) where #if __GLASGOW_HASKELL__ < 709 import Control.Applicative #endif import Control.Concurrent.STM import qualified Control.Exception as E import Control.Mo...
frontrowed/wai
warp/Network/Wai/Handler/Warp/HTTP2/Sender.hs
mit
18,736
12
21
5,614
4,741
2,299
2,442
355
26
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE CPP #-} -- | GHC stage restriction: have to write Lift in a separate module from where -- TH is used (Utils.hs) module Internal where #if __GLASGOW_HASKELL__ < 710 import Control.Applicative #endif import Data.Aeson (FromJSON(parseJSON), gen...
k-bx/riak-haskell-client
tests/Internal.hs
apache-2.0
934
0
16
167
236
140
96
22
0
import Control.Applicative ((<$>), (<*>), pure) import qualified Control.Exception as Ex import Control.Monad (when) import Data.Char (isSpace) import Data.List (isPrefixOf, isSuffixOf) import Data.Maybe (maybe, listToMa...
manyoo/ghcjs
Setup.hs
mit
9,534
13
18
2,836
2,013
1,028
985
140
2
yes = \ x -> (x && x)
mpickering/hlint-refactor
tests/examples/Bracket13.hs
bsd-3-clause
22
1
7
8
21
10
11
1
1
{-# LANGUAGE CPP #-} module UnitTests.Distribution.Utils.NubList ( tests ) where #if __GLASGOW_HASKELL__ < 710 import Data.Monoid #endif import Distribution.Utils.NubList import Test.Framework import Test.Framework.Providers.HUnit (testCase) import Test.Framework.Providers.QuickCheck2 import Test.HUnit (Assert...
DavidAlphaFox/ghc
libraries/Cabal/Cabal/tests/UnitTests/Distribution/Utils/NubList.hs
bsd-3-clause
1,486
0
11
252
356
205
151
32
1
{- A normal comment, to check if we can still pick up the CPP directive after it. -} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE CPP #-} -- Check that we can parse a file which requires CPP module BCppTC where bob :: Int -> Int -> Int #if __GLASGOW_HASKELL__ > 704 bob x y = x + y #else bob x y = x + y * 2 #endif...
RefactoringTools/HaRe
test/testdata/BCppTC.hs
bsd-3-clause
322
0
6
73
38
24
14
5
1
{-# LANGUAGE CPP #-} {-# LANGUAGE PatternGuards #-} #ifdef TRUSTWORTHY {-# LANGUAGE Trustworthy #-} #endif #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 1 #endif #ifndef MIN_VERSION_template_haskell #define MIN_VERSION_template_haskell(x,y,z) (defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 706) #en...
danidiaz/lens
src/Control/Lens/TH.hs
bsd-3-clause
24,880
0
17
5,174
4,842
2,703
2,139
334
6
module Reverse (x) where import Language.Haskell.Liquid.Prelude import Prelude hiding (reverse) data L a = N | C a (L a) {-@ data L [llen] @-} {-@ measure llen :: (L a) -> Int llen(N) = 0 llen(C x xs) = 1 + (llen xs) @-} {-@ invariant {v: L a | (llen v) >= 0} @-} reverse N xs = xs reverse (C ...
abakst/liquidhaskell
tests/pos/ListReverse-LType.hs
bsd-3-clause
378
0
9
108
114
64
50
7
1
{-# LANGUAGE UnboxedSums, MagicHash, BangPatterns, UnboxedTuples #-} module Main where import GHC.Prim import GHC.Types import Data.Void (Void) import System.Mem (performMajorGC) showAlt0 :: (# Void# | (# #) | () #) -> String showAlt0 (# | (# #) | #) = "(# | (# #) | #)" showAlt0 (# | | () #) = "(# | | () #)" showA...
ezyang/ghc
testsuite/tests/unboxedsums/unboxedsums3.hs
bsd-3-clause
873
0
12
236
317
171
146
24
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# OPTIONS_GHC -Wall -Werror -Wno-unticked-promoted-constructors #-} module Data.Nat ( type Nat(..) , Sing(SNat) , zero , succ , slit , natToInt , el...
mckeankylej/ava
src/Data/Nat.hs
mit
926
0
14
193
358
196
162
-1
-1
module SFML.Graphics.VertexArray ( createVA , copy , destroy , getVertexCount , getVertex , clearVA , resizeVA , appendVA , setPrimitiveType , getPrimitiveType , getVABounds ) where import SFML.Graphics.PrimitiveType import SFML.Graphics.Rect import SFML.Graphics.Types import SFML.Graphics.Ver...
SFML-haskell/SFML
src/SFML/Graphics/VertexArray.hs
mit
5,351
0
10
803
765
432
333
-1
-1
import System.Random leftBeaks, rightBeaks :: [String] leftBody, rightBody :: [String] heads :: [String] leftBeaks = [">", "="] rightBeaks = ["<", "="] leftBody = ["_/", "__/", "_~", "__~"] rightBody = ["\\_", "\\__", "~_", "~__"] heads = ["o", "O", "0", "@", "©", "®", "ð", "*", "ò", "ô", "ó", "ø", "⊕", "Ω", ...
sdroege/snippets.hs
duck.hs
mit
874
0
11
242
377
217
160
23
1
module Fingerfood.Grid ( Grid(..) , Position(..) , grid , toGrid , getList , Dimensions , dimensions , getPosition , setPosition , Subgrid(..) , RelativeDimensions , subgrid ) where import Fingerfood.Sequence class Position a where empty :: a type Column a = Sequence a newtype Grid a = Grid (Sequence (Colum...
burz/Fingerfood
Grid.hs
mit
1,548
0
13
371
770
407
363
42
1
module Rebase.Data.Bifunctor.Flip ( module Data.Bifunctor.Flip ) where import Data.Bifunctor.Flip
nikita-volkov/rebase
library/Rebase/Data/Bifunctor/Flip.hs
mit
101
0
5
12
23
16
7
4
0
/*Owner & Copyrights: Vance King Saxbe. A.*//* Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe...
VanceKingSaxbeA/GoldSaxMachineStore
GoldSaxMachineModule2/src/Chapter2/SimpleFunctions.hs
mit
1,937
23
17
659
524
275
249
19
4
{-| Unsafe API for constructing Children' and Attributes', useful for writing new Children and Attributes instances -} module GHCJS.VDOM.Unsafe ( Attributes(..), Children(..) , Attributes', Children' , unsafeToAttributes, unsafeToChildren ) where...
ghcjs/ghcjs-vdom
src/GHCJS/VDOM/Unsafe.hs
mit
1,036
0
5
243
78
51
27
9
1
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} module Eventful.ProjectionCache.Types ( ProjectionCache (..) , VersionedProjectionCache , GlobalStreamProjectionCache , runProjectionCacheUsing , serializedProjectionCache , getLatestVersionedProjectionWithCache , getLatestGlobalProjectionWithC...
jdreaver/eventful
eventful-core/src/Eventful/ProjectionCache/Types.hs
mit
6,011
0
13
944
944
495
449
94
2
{-# LANGUAGE CPP #-} import GetURL import Control.Concurrent import Control.Exception import qualified Data.ByteString as B import Control.Concurrent.STM data Async a = Async ThreadId (TMVar (Either SomeException a)) async :: IO a -> IO (Async a) async action = do var <- newEmptyTMVarIO t <- forkF...
Forec/learn
2017.3/Parallel Haskell/ch10/geturls7.hs
mit
1,382
0
14
337
577
280
297
42
2
module Generator where import Control.Monad.Trans.Except import Data.List(partition) import Data.Text(strip) import Generator.Common import Generator.Expression import Generator.Statement import Generator.Type import Reporter import TypeChecker import TypeChecker.Common import TypeChecker.Expression import Types impor...
PelleJuul/popl
src/Generator.hs
mit
3,531
0
17
714
1,118
574
544
80
3
----------------------------------------------------------------------------- -- -- Module : Drool.UI.Visuals.Visual -- Copyright : Tobias Fuchs -- License : AllRightsReserved -- -- Maintainer : twh.fuchs@gmail.com -- Stability : experimental -- Portability : POSIX -- -- | -- -----------------------...
fuchsto/drool
src/Drool/UI/Visuals/Visual.hs
mit
836
0
12
174
140
89
51
12
0
{-# htermination readIO :: String -> IO Float #-}
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/Prelude_readIO_6.hs
mit
50
0
2
9
3
2
1
1
0
import Data.List (permutations, sort, nub) readInputLines :: String -> IO [String] readInputLines f = readFile f >>= (\c -> (return . lines) c) main1 :: IO () main1 = do content <- readInputLines "input.txt" let neigbourValues = map parseLine content let peopleNames = nub $ map extractPerson neigbourV...
Dr-Horv/Advent-of-code
day13/day13.hs
mit
2,512
0
15
616
964
506
458
49
3
{-# LANGUAGE DeriveDataTypeable #-} module Hpack.Util ( List(..) , GhcOption , GhcProfOption , CppOption , CCOption , LdOption , parseMain , toModule , getFilesRecursive , tryReadFile , expandGlobs , sort , lexicographically ) where import Prelude () import Prelude.Compat import Contro...
yamadapc/hpack-convert
src/Hpack/Util.hs
mit
3,836
0
15
914
1,298
694
604
99
3
{-# LANGUAGE GADTs #-} {-# LANGUAGE TypeApplications #-} module Vyom.Term.CharSym where import Vyom import Util (safeRead) -- Literal values class CharSym r where char :: Char -> r h Char -- TODO: Add more char ops instance CharSym Run where char = rop0 instance CharSym Pretty where char = sop0 instance Ch...
ajnsit/vyom
src/Vyom/Term/CharSym.hs
mit
1,022
0
11
229
379
190
189
27
2
{-# LANGUAGE CPP, NoImplicitPrelude, PackageImports #-} module Control.Concurrent.Compat ( module Base ) where import "base-compat" Control.Concurrent.Compat as Base
haskell-compat/base-compat
base-compat-batteries/src/Control/Concurrent/Compat.hs
mit
169
0
4
21
23
17
6
4
0
{-# OPTIONS_HADDOCK show-extensions #-} {-| Module : Numeric.Neural Description : neural networks Copyright : (c) Lars Brünjes, 2016 License : MIT Maintainer : brunjlar@gmail.com Stability : experimental Portability : portable This module reexports all the neural network related modules for convenience....
brunjlar/neural
src/Numeric/Neural.hs
mit
699
0
5
113
75
52
23
12
0
module Main where import System.Environment(getArgs) import Graphics.UI.Gtk hiding (get) import Language.Astview.Gui.Actions (actionEmptyGUI,actionLoadHeadless) import Language.Astview.Gui.Types(getGui,window) import Language.Astview.Gui.Init(setupGUI) -- | loads LanguageRegistration, inits GTK-GUI, checks for a -- ...
jokusi/Astview
src/gui/Main.hs
mit
631
0
10
106
161
89
72
16
3
{-# htermination enumFromThen :: Ordering -> Ordering -> [Ordering] #-}
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/Prelude_enumFromThen_8.hs
mit
72
0
2
10
3
2
1
1
0
----------------------------------------------------------------------------- -- | -- Module : Algebra.Graph -- Copyright : (c) Andrey Mokhov 2016-2022 -- License : MIT (see the file LICENSE) -- Maintainer : andrey.mokhov@gmail.com -- Stability : experimental -- -- __Alga__ is a library for algebraic construct...
snowleopard/alga
src/Algebra/Graph.hs
mit
53,294
0
19
13,303
6,956
4,017
2,939
386
8
module Hash (runScript, runInteractive) where import Control.Applicative import qualified Data.Map as M import Parsing.HashParser import Language.Commands (commands) import Language.Exec (runHashProgram, ScriptState(..), prompt) import System.Directory import System.FilePath import System.IO -- The top-level module...
mfolnovic/puh-hash
Hash.hs
gpl-2.0
1,805
0
12
341
472
231
241
42
2
{-# LANGUAGE TemplateHaskell, ViewPatterns, ScopedTypeVariables, TupleSections #-} module Ruab.Frontend -- exports {{{1 ( run ) where -- imports {{{1 import Control.Arrow (first) import Data.List (intercalate, find, isPrefixOf, nub) import Data.Maybe (fromJust, listToMaybe) import Graphics.UI.Gtk hiding (response) i...
copton/ocram
ruab/src/Ruab/Frontend.hs
gpl-2.0
17,437
16
25
4,509
5,812
2,946
2,866
424
26
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, DeriveDataTypeable , FlexibleInstances, UndecidableInstances, ExistentialQuantification #-} {- | Module : ./Logic/Logic.hs Description : central interface (type class) for logics in Hets Copyright : (c) Till Mossakowski, and Uni Bremen 2002-2006 Li...
spechub/Hets
Logic/Logic.hs
gpl-2.0
41,575
0
20
11,366
6,621
3,459
3,162
-1
-1
-- | El m&#243;dulo de expresiones de f&#243;rmulas de primer orden. {-# Language OverloadedStrings #-} module Equ.Theories.FOL ( -- * Constructores y operadores. folTrue , folFalse , folForall , folExist , folEqual , folEquiv, folDiscrep, folAnd, folOr, folNeg, folImpl, folConseq -- ** Listas de con...
miguelpagano/equ
Equ/Theories/FOL.hs
gpl-3.0
17,720
0
11
5,492
3,804
2,244
1,560
336
1
{-# OPTIONS -O2 -Wall #-} {-# LANGUAGE GeneralizedNewtypeDeriving, TemplateHaskell #-} -- | View and Branch have a cyclic dependency. This module -- | contains the parts of both that both may depend on, to avoid the -- | cycle. module Data.Store.Rev.ViewBranchInternal (ViewData(..), atVdBranch, View(..), ...
nimia/bottle
bottlelib/Data/Store/Rev/ViewBranchInternal.hs
gpl-3.0
2,722
0
11
485
725
408
317
56
2
{- | Module : FMP.Canvas Copyright : (c) 2003-2010 Peter Simons (c) 2002-2003 Ferenc Wágner (c) 2002-2003 Meik Hellmund (c) 1998-2002 Ralf Hinze (c) 1998-2002 Joachim Korittky (c) 1998-2002 Marco Kuhlmann License...
peti/funcmp
FMP/Canvas.hs
gpl-3.0
3,176
0
10
1,266
636
342
294
40
1
module Command(initialHelp, commandLoop) where import Control.Concurrent.MVar import System.Exit(ExitCode(ExitSuccess)) import System.Posix.Process(exitImmediately) import Data.Lists(strFromAL) import Data.List(isPrefixOf) import Debug.Trace(trace) import DataBase -- Initial massage initialHelp = "Hello! This is a ...
PeterPiggyDevelopment/TitaniumCloud
src/Command.hs
gpl-3.0
2,783
0
22
841
698
369
329
53
9
{- Copyright 2010 John Morrice This source file is part of The Obelisk Programming Language and is distributed under the terms of the GNU General Public License This file is part of The Obelisk Programming Language. The Obelisk Programming Language is free software: you can redistribute it and/or modify it...
elginer/Obelisk
tests/scope.hs
gpl-3.0
1,128
0
6
233
49
27
22
6
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-cloudkms/gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/GetIAMPolicy.hs
mpl-2.0
6,890
0
16
1,414
809
473
336
126
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-games/gen/Network/Google/Resource/Games/TurnBasedMatches/Decline.hs
mpl-2.0
3,398
0
14
764
389
233
156
63
1
{--License: license.txt --} module CCAR.Model.Survey (manageSurvey) where import Control.Monad.IO.Class import Control.Monad.Logger import Control.Applicative as Appl import Database.Persist import Database.Persist.Postgresql as Postgresql import Database.Persist.TH import CCAR.Main.DBUtils import CCAR.Comman...
asm-products/ccar-websockets
CCAR/Model/Survey.hs
agpl-3.0
3,978
0
18
1,177
969
515
454
90
4
{-# LANGUAGE BangPatterns,OverloadedStrings, FlexibleContexts #-} module TclLib.CoreCmds (coreCmds, coreInits) where import Common import Internal.Types (procArgs) import Control.Monad.Except import TclLib.LibUtil -- import Control.Monad (liftM) import Data.Char (isDigit) import TclErr import VarName (parseProc, NSQua...
tolysz/hiccup
TclLib/CoreCmds.hs
lgpl-2.1
7,732
79
23
2,476
2,559
1,341
1,218
186
11
{-# LANGUAGE BangPatterns #-} import CoALP import CoALP.UI import Control.Applicative ( (<$>) ) import Control.DeepSeq import Control.Monad import Data.List (intercalate) import Data.Time.Clock import qualified Data.HashSet as Set fibP :: String fibP = "add (0, Y, Y).\n" ++ "add (s (X), Y, s (Z)) :- add (X, Y...
vkomenda/CoALP
benchmarks/Fibs.hs
lgpl-3.0
2,390
2
13
658
780
368
412
69
1
{-# LANGUAGE OverloadedStrings, UnicodeSyntax, Safe, CPP #-} module Network.HTTP.Link.Writer ( writeLink , writeLinkHeader ) where import Data.Text hiding (map) #if !MIN_VERSION_base(4,8,0) import Data.Monoid (mconcat) #endif import Network.URI import Network.HTTP.Link.Types ...
myfreeweb/http-link-header
library/Network/HTTP/Link/Writer.hs
unlicense
1,119
0
10
212
317
174
143
25
1
{- Copyright 2020 The CodeWorld Authors. All rights reserved. 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 applicab...
google/codeworld
codeworld-auth/src/CodeWorld/Auth/LocalAuth.hs
apache-2.0
9,756
6
33
2,166
2,067
1,041
1,026
181
5
-- -- Copyright (c) 2013, Carl Joachim Svenn -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice...
karamellpelle/MEnv
source/OpenAL/IOS/Values.hs
bsd-2-clause
6,516
0
4
2,454
698
430
268
135
1
{-# LANGUAGE CPP #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} module Model where import Yesod (liftIO, Html, Textarea) import Database.Persist import Database.Persist.GenericSql import Database.Persist.TH (share2) import Da...
snoyberg/orangeroster
Model.hs
bsd-2-clause
2,031
0
17
475
267
142
125
23
1
{-# LANGUAGE RecordWildCards #-} module NW.Player where import Data.List import NW.Map import NW.Stats data Player = Player { playerCoord :: Coord , playerStats :: [Stat] } deriving (Eq, Show) data Direction = East | West | North | South deriving (Eq, Show) initPlayer :: GameMap -> Player initPlayer gm = ...
listx/netherworld
src/NW/Player.hs
bsd-2-clause
2,098
14
12
436
673
370
303
53
5
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} -- | -- Module: $HEADER$ -- Description: Enumeration of shells that YX supports natively. -- Copyright: (c) 2016 Peter Trško -- License: BSD3 -- -- Maintainer: peter.trsko@gmail.com -- Stability: experiment...
trskop/yx
src/YX/Type/Shell.hs
bsd-3-clause
2,110
0
9
388
469
282
187
45
2
{-# LANGUAGE BangPatterns, MagicHash #-} {-# LANGUAGE FlexibleInstances #-} module Search.Collection ( DocCollection, DocMeta, FileDocCollection, FragmentDocCollection , FileFragment(..) , loadDocCollection, loadTokenDoc, loadTokenDocs, loadDocMeta, loadTokenMap , tfCounter , collectionSize, ...
jdimond/diplomarbeit
lib/Search/Collection.hs
bsd-3-clause
8,520
0
18
2,023
2,702
1,403
1,299
-1
-1
{- Data/Metrology.Factor.hs The units Package Copyright (c) 2013 Richard Eisenberg eir@cis.upenn.edu This file defines the Factor kind and operations over lists of Factors. Factors represents dimensions and units raised to a power of integers, and the lists of Factors represents monomials of dimension...
hesiod/units
Data/Metrology/Factor.hs
bsd-3-clause
5,971
0
12
1,561
1,626
915
711
70
0
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiWayIf #-} ---------------------------------------------------------- -- | -- 3 Way QuickSort. -- (c) 2014-16 Jeffrey Rosenbluth ---------------------------------------------------------- module Sorting.Quick3 ( sortBy' , sortBy , sort' , sort , sortO...
jeffreyrosenbluth/Halgorithms
src/Sorting/Quick3.hs
bsd-3-clause
2,073
0
24
750
694
350
344
50
3
module AbstractInterpreter.AbstractInterpreter (module AS) where import AbstractInterpreter.AbstractSet as AS import AbstractInterpreter.Assignment as AS import AbstractInterpreter.ASSubtract as AS import AbstractInterpreter.FunctionAnalysis as AS import AbstractInterpreter.MinimalTypes as AS import AbstractInterprete...
pietervdvn/ALGT
src/AbstractInterpreter/AbstractInterpreter.hs
bsd-3-clause
479
0
4
43
75
53
22
10
0
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-} module Math.Budget.Lens.MethodL where import Math.Budget.Method class MethodL cat target | target -> cat where methodL :: cat target Method
tonymorris/hbudget
src/Math/Budget/Lens/MethodL.hs
bsd-3-clause
208
0
7
29
42
25
17
5
0
-- | This module contains all of the Parsing operations for this library. In our nonmenclature -- Assemble is the opposite of parse so you should look at that module if you wish to perform the -- opposite operations. module Sound.Wav.Parse ( withWaveFile , parseWaveStream , getWaveFile ) where import qual...
CIFASIS/wavy
Sound/Wav/Parse.hs
bsd-3-clause
4,175
0
13
932
910
480
430
65
3
{-# LANGUAGE OverloadedStrings #-} module TestImport ( module Yesod.Test , module Model , module Database.Persist , runDB , Specs ) where import Yesod.Test import Database.Persist hiding (get) import Database.Persist.GenericSql (runSqlPool, SqlPersist, Connection) import Control.Monad.Trans.Res...
mkrauskopf/ouch-web
tests/TestImport.hs
bsd-3-clause
704
0
10
160
167
98
69
19
1
-- | Provides an interface similar to Data.Binary.Builder that -- permits computing the length of the bytes without -- evaluating the underling ByteString values. module Data.Binary.Builder.Sized ( -- * The Builder type Builder , toLazyByteString , length -- * Constructing Builders , empty , singleton...
joehendrix/sized-builder
src/Data/Binary/Builder/Sized.hs
bsd-3-clause
2,604
0
10
494
715
394
321
69
1
{-# OPTIONS_GHC -fno-warn-tabs #-} import AES import Base64 import Common import Xor import qualified Data.Vector.Generic as V import Data.Word import System.IO import System.Random import Control.Exception import Debug.Trace recover :: ByteVector -> (ByteVector -> Int -> ByteVector -> ByteVector) -> ByteVe...
andrewcchen/matasano-cryptopals-solutions
set4/Challange25.hs
bsd-3-clause
1,081
0
13
203
392
194
198
29
1
{-# LANGUAGE NoImplicitPrelude #-} module Mismi.IAM ( ) where
ambiata/mismi
mismi-iam/src/Mismi/IAM.hs
bsd-3-clause
65
0
3
12
10
7
3
2
0
-- Copyright : (C) 2009 Corey O'Connor -- License : BSD-style (see the file LICENSE) import Distribution.Simple main = defaultMain
coreyoconnor/bind-marshal
Setup.hs
bsd-3-clause
142
0
4
31
13
8
5
2
1
module Distribution.Simple.GHCJS ( configure, getInstalledPackages, getPackageDBContents, buildLib, buildExe, replLib, replExe, startInterpreter, installLib, installExe, libAbiHash, hcPkgInfo, registerPackage, componentGhcOptions, getLibDir...
garetxe/cabal
Cabal/Distribution/Simple/GHCJS.hs
bsd-3-clause
39,772
0
23
12,870
7,838
4,051
3,787
680
6
{-# LANGUAGE UnicodeSyntax #-} module Shake.It.Js ( npm , yarn , vue ) where import Control.Monad import Shake.It.Core npm ∷ [String] → IO () npm α = rawSystem "npm" α >>= checkExitCode yarn ∷ [String] → IO () yarn α = rawSystem "yarn" α >>= checkExitCode vue ∷ [String] → IO () vue α = ...
Heather/Shake.it.off
src/Shake/It/Js.hs
bsd-3-clause
374
0
7
93
132
71
61
13
1
{-# LANGUAGE TemplateHaskell #-} module Main where import Arhelk.Lexer import Data.Monoid import Data.Text as T import Data.Version import Language import Options.Applicative.Simple import qualified Data.Text.IO as T import System.Exit import TextShow -- | Runtime options to lexer tool data LexOptions = LexOptions { ...
Teaspot-Studio/arhelk-lexer
app/Main.hs
bsd-3-clause
2,035
0
18
434
581
292
289
-1
-1
{-# LANGUAGE PatternSynonyms #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.Core42 -- Copyright : (c) Sven Panne 2019 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portability : portab...
haskell-opengl/OpenGLRaw
src/Graphics/GL/Core42.hs
bsd-3-clause
46,094
0
5
5,795
6,793
4,186
2,607
1,560
0
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.BuildPaths -- Copyright : Isaac Jones 2003-2004, -- Duncan Coutts 2008 -- -- Maintainer : cabal-devel@haskell.org -- Portability : portable -- -- A bunch of dirs, paths and file ...
IreneKnapp/Faction
libfaction/Distribution/Simple/BuildPaths.hs
bsd-3-clause
5,437
0
10
974
613
355
258
64
3
module Util ( readEvalShow ) where import Lib import Util.Internal readEvalShow :: String -> String readEvalShow x = do let evaled = show <$> readEval x extractValue $ trapError evaled
ksoda/scheme48
src/Util.hs
bsd-3-clause
198
0
11
43
60
31
29
8
1
{-# LANGUAGE DeriveDataTypeable #-} module JavaScript.Web.ErrorEvent.Internal where import GHCJS.Types import Data.Typeable newtype ErrorEvent = ErrorEvent JSVal deriving Typeable
ghcjs/ghcjs-base
JavaScript/Web/ErrorEvent/Internal.hs
mit
184
0
5
22
30
20
10
5
0
{- | Module : $Header$ Description : CMDL interface commands Copyright : uni-bremen and DFKI License : GPLv2 or higher, see LICENSE.txt Maintainer : r.pascanu@jacobs-university.de Stability : provisional Portability : portable CMDL.ProveConsistency contains prove and consistency check command -} module...
keithodulaigh/Hets
CMDL/ProveConsistency.hs
gpl-2.0
26,159
118
41
12,006
5,143
2,617
2,526
497
12
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- ...
fmapfmapfmap/amazonka
amazonka-ssm/gen/Network/AWS/SSM/DescribeDocument.hs
mpl-2.0
4,006
0
13
884
578
344
234
75
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
kim/amazonka
amazonka-cloudhsm/gen/Network/AWS/CloudHSM/CreateLunaClient.hs
mpl-2.0
3,867
0
9
844
524
316
208
62
1
{-# LANGUAGE OverloadedStrings #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Network.AWS.Redshift.Types -- Copyright : (c) 2013-2015 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : a...
fmapfmapfmap/amazonka
amazonka-redshift/gen/Network/AWS/Redshift/Types.hs
mpl-2.0
37,218
0
13
6,371
5,091
2,770
2,321
649
1
-------------------------------------------------------------------------------- -- | Exposes the datastructure describing an IRC message module NumberSix.Message ( Prefix (..) , Message (..) , makeMessage , (<>) , (==?) , toLower ) where ---------------------------------------------------...
itkovian/number-six
src/NumberSix/Message.hs
bsd-3-clause
1,700
0
9
303
333
196
137
33
5
{-# LANGUAGE Haskell98 #-} {-# LINE 1 "Data/Streaming/Filesystem.hs" #-} {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE ScopedTypeVariables #-} -- | Streaming functions for interacting with the filesystem. module...
phischu/fragnix
tests/packages/scotty/Data.Streaming.Filesystem.hs
bsd-3-clause
1,851
0
20
601
424
217
207
48
4