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
module Handler.LibraryItemAdd where import Data.Maybe (fromJust) import Import -- | Process the addition of new BOoks to the Library. postLibraryItemAddR :: Handler Html postLibraryItemAddR = do ((result, libraryWidget), libraryEnctype) <- runFormPost libraryItemIsbnForm continueEditing <...
prikhi/MyBookList
Handler/LibraryItemAdd.hs
gpl-3.0
1,302
0
23
451
261
124
137
24
4
{-# 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/Projects/InspectTemplates/Create.hs
mpl-2.0
6,750
0
17
1,372
796
471
325
118
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/Datafeeds/Insert.hs
mpl-2.0
5,003
0
18
1,202
803
466
337
114
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-consumersurveys/gen/Network/Google/Resource/ConsumerSurveys/Surveys/Start.hs
mpl-2.0
3,116
0
14
700
388
233
155
62
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-compute/gen/Network/Google/Resource/Compute/Snapshots/Delete.hs
mpl-2.0
3,836
0
15
873
396
241
155
64
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Maps/Create.hs
mpl-2.0
2,506
0
12
585
304
187
117
47
1
module Logic.Propositional ( Proposition(Val, Var, Not, And, Or) , (&), (<|>), (-->), (<->), (</>) , eval , equiv , depth , varNames , satisfiable, satisfying, tautology , dnf, cnf , isDnf, isCnf ) where import Data.List (union) import Data.Maybe (fromJust) -- | Data type for propositions. data Proposition = Val Bo...
LocalToasty/formal-logic
Logic/Propositional.hs
lgpl-3.0
6,551
0
13
1,986
2,320
1,224
1,096
132
3
addThree :: Int -> Int -> Int -> Int addThree x y z = x + y + z factorial :: Integer -> Integer factorial n = product [1..n] --we can do this recursively too, but that's actually for later. --factorial :: Int -> Int --factorial 0 = 1 --factorial n = n * (factorial (n - 1)) --factorial2 :: Integer -> Integer --fact...
alexliew/learn_you_a_haskell
2_types_and_typeclasses.hs
unlicense
503
0
7
109
120
65
55
8
1
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PackageImports #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TupleSections #-} {- Copyright 2020 The CodeWorld Authors. All rights reser...
google/codeworld
codeworld-requirements/src/CodeWorld/Requirements/Framework.hs
apache-2.0
4,228
0
14
764
1,160
647
513
92
4
module Marvin.API.Algorithms.LinearRegressionSpec where import Test.Hspec import Marvin.API import Marvin.API.Algorithms.LinearRegression import Marvin.Test.TestUtils spec :: Spec spec = describe "linear regression" $ do it "can be fit and evaluated" $ trained `shouldSatisfy` \res -> case res of ...
gaborhermann/marvin
test-suite/Marvin/API/Algorithms/LinearRegressionSpec.hs
apache-2.0
2,361
0
19
635
705
385
320
68
4
{-# LANGUAGE OverloadedStrings #-} module Web.Twitter.Enumerator.Utils ( enumLine , enumJSON , skipNothing , debugEE , fromJSON' , fromJSONSearch' , toMaybeByteString , handleParseError ) where import Web.Twitter.Enumerator.Types import Data.Aeson...
himura/twitter-enumerator
Web/Twitter/Enumerator/Utils.hs
bsd-2-clause
1,788
0
14
367
587
319
268
43
2
{-# LANGUAGE DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-} ----------------------------------------------------------------------------- -- | -- Module : XMonad.Hooks.ScreenCorners -- Copyright : (c) 2009 Nils Schweinsberg, 2015 Evgeny Kurnevsky -- License : BSD3-style (see LICENSE) -- ...
pjones/xmonad-test
vendor/xmonad-contrib/XMonad/Hooks/ScreenCorners.hs
bsd-2-clause
6,428
0
15
1,564
1,094
600
494
86
2
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Main ( main ) where import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString.Lazy.Char8 as BL8 import qualified Data.HashMap.Strict as HM import Data.I...
mikeizbicki/cassava
tests/UnitTests.hs
bsd-3-clause
11,371
0
18
2,786
3,351
1,880
1,471
216
3
{-# LANGUAGE DeriveGeneric #-} module Vulgr.XML.Types where import qualified Data.Text as T import Data.Time data NvdEntry = NvdEntry { entryVulnConf :: VulnConf , entryVulnSoftList :: VulnSoftList , entryCveId :: CveId , entryPublishedTime :: LocalTime , entry...
wayofthepie/vulgr
vulgr-lib/src/Vulgr/XML/Types.hs
bsd-3-clause
1,989
0
9
553
516
311
205
63
0
{-# LANGUAGE DeriveDataTypeable, TemplateHaskell, TypeFamilies #-} {-# LANGUAGE NamedFieldPuns #-} module Dice ( DiceRoll(..), DiceRoller(..), DiceSpec(..), Dicetabase(..), resultText, withState ) where import Control.Applicative ((<$), (<$>)) import Control.Category ((.)) import Control.Monad (guard, rep...
bmillwood/dice
src/Dice.hs
bsd-3-clause
4,392
0
18
825
1,441
802
639
107
2
{-# LANGUAGE MagicHash #-} module Data.Array.Repa.Repr.Delayed ( D, Array(..) , fromFunction, toFunction , delay) where import Data.Array.Repa.Eval.Load import Data.Array.Repa.Eval.Target import Data.Array.Repa.Eval.Chunked import Data.Array.Repa.Eval.Cursored import Data.Array.Repa.Eval.Elt imp...
kairne/repa-lts
Data/Array/Repa/Repr/Delayed.hs
bsd-3-clause
3,629
0
13
926
899
476
423
-1
-1
----------------------------------------------------------------------------- -- | -- Module : csvzip -- Copyright : (c) Keith Sheppard 2009-2010 -- License : BSD3 -- Maintainer : keithshep@gmail.com -- Stability : experimental -- Portability : portable -- -- Joins CSV files by pasting the columns t...
keithshep/txt-sushi
csvzip.hs
bsd-3-clause
2,161
0
15
518
439
237
202
25
4
{-# LANGUAGE GADTs, TypeFamilies, TypeOperators, EmptyDataDecls, FlexibleInstances, MultiParamTypeClasses, RankNTypes, QuasiQuotes, TemplateHaskell, ViewPatterns #-} {-# OPTIONS_GHC -fwarn-incomplete-patterns #-} ------------------------------------------------------------------------- -- lambda lifting for the lambda...
eddywestbrook/hobbits
archival/LambdaLiftingDB2.hs
bsd-3-clause
13,283
0
22
3,109
4,683
2,409
2,274
-1
-1
module DimensionalExample where import Prelude hiding ((/)) import Numeric.Units.Dimensional.Prelude ( (*~) , (/) , Quantity, Recip, DTime, Length, Time , one, minute ) -- | "Ideal" turnover for steps while running is 180 steps per minute. turnover :: Quantity (Recip DTime) Double t...
FranklinChen/twenty-four-days2015-of-hackage
src/DimensionalExample.hs
bsd-3-clause
510
0
7
116
135
80
55
15
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} module Documentation.Haddocset.Index ( SearchIndex , ReadWrite , ReadOnly , EntryType(..) , IndexEntry(..) , withSearchIndex , withReadWrite , insert , sinkEntries ) where ...
philopon/haddocset
Documentation/Haddocset/Index.hs
bsd-3-clause
3,085
0
11
791
594
326
268
-1
-1
{-# LANGUAGE CPP #-} module UU.Parsing.Derived ( -- * Checking acceptsepsilon , mnz -- * Prelude defs , (<..>) , pExcept , opt -- * Sequential compositions , asList , asList1 , asOpt , (<+>) , (<**>) , (<$$>) , (<??>) , (<?>) , pPacked -- * Iterating parsers , pFoldr_...
guillep19/uulib
src/UU/Parsing/Derived.hs
bsd-3-clause
10,521
0
12
3,086
3,747
1,978
1,769
-1
-1
module Network.Anarchy.Server.Internal where import Data.Hashable import Network.Anarchy import Network.Anarchy distance :: HostPort -> HostPort -> Int distance myHp hp = let myHpHash = p . hash $ myHp hpHash = p . hash $ hp in case (hpHash >= myHpHash) of True -> hpHash - myHpHash False -> (maxBound - ...
davidhinkes/anarchy
src/Network/Anarchy/Server/Internal.hs
bsd-3-clause
383
0
12
85
146
80
66
12
3
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} -- | This module is similare to `Network.Docker.Registry` but uses HUnit -- assertions to check the returned HTTP status codes. module Network.Docker.Registry.Checks where import Data.ByteString (ByteString) import qualified Data.ByteString.Lazy as LB...
noteed/rescoyl-checks
Network/Docker/Registry/Checks.hs
bsd-3-clause
3,175
0
10
478
603
315
288
38
1
{-| Module : Numeric.AERN.Basics.PartialOrdering Description : extension of Prelude.Ordering with non-comparable variant Copyright : (c) Michal Konecny License : BSD3 Maintainer : mikkonecny@gmail.com Stability : experimental Portability : portable Extension ...
michalkonecny/aern
aern-order/src/Numeric/AERN/Basics/PartialOrdering.hs
bsd-3-clause
14,021
0
20
3,483
2,475
1,373
1,102
201
9
{-| Module: Data.Astro.Planet.PlanetDetails Description: Planet Details Copyright: Alexander Ignatyev, 2016-2017 Planet Details. -} module Data.Astro.Planet.PlanetDetails ( Planet(..) , PlanetDetails(..) , j2010PlanetDetails , isInnerPlanet ) where import Data.Astro.Types (DecimalDegrees(..), AstronomicalUn...
Alexander-Ignatyev/astro
src/Data/Astro/Planet/PlanetDetails.hs
bsd-3-clause
3,003
0
9
747
563
312
251
45
1
-- | A word frequence count program -- module Data.Text.Benchmarks.Micro.WordCount ( benchmark ) where import qualified Data.Text as T import Data.Map (Map) import qualified Data.Map as M import Data.List (foldl') import Criterion.Main (Benchmark, bench) import Data.Text.Benchmarks.Micro.Util benchmark...
JensTimmerman/text-benchmarks
src/Data/Text/Benchmarks/Micro/WordCount.hs
bsd-3-clause
541
0
11
96
174
102
72
13
1
-- -- Parser AST. -- -- Copyright (C) 2014, Galois, Inc. -- All rights reserved. -- module Ivory.Language.Syntax.Concrete.ParseAST where import Data.List (foldl') import Prelude () import Prelude.Compat ...
GaloisInc/ivory
ivory/src/Ivory/Language/Syntax/Concrete/ParseAST.hs
bsd-3-clause
16,126
0
15
4,851
4,400
2,380
2,020
425
3
{-# LANGUAGE NoImplicitPrelude #-} module Mismi.CloudwatchLogs ( ) where
ambiata/mismi
mismi-cloudwatch-logs/src/Mismi/CloudwatchLogs.hs
bsd-3-clause
76
0
3
12
10
7
3
2
0
{-# OPTIONS_GHC -Wall #-} module Lazy06 where import Data.List -- Exercise 1 ----------------------------------------- fib :: Integer -> Integer fib n | n < 0 = 0 fib 0 = 1 fib 1 = 1 fib n = fib (n-1) + fib (n-2) fibs1 :: [Integer] fibs1 = map fib [0..] -- Exercise 2 ----------------------------------------- fibs2...
Enzo-Liu/cis194
src/Lazy06.hs
bsd-3-clause
3,171
0
15
725
1,394
717
677
71
3
{-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE Arrows #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE PolyKinds #-} module Queries where import Control.Arrow (returnA) import Control.Lens import Data....
martyall/kafaka-test
src/Queries.hs
bsd-3-clause
6,189
1
14
1,632
865
505
360
54
1
-- |A module for managing the collection of links held by the Tor node. module Tor.State.LinkManager( LinkManager , newLinkManager , newLinkCircuit , setIncomingLinkHandler ) where import Control.Concurrent import Control.Monad import Crypto.Random import Data.Maybe import Data.Wo...
GaloisInc/haskell-tor
src/Tor/State/LinkManager.hs
bsd-3-clause
4,827
0
19
1,593
1,157
607
550
96
3
module Network.UV.Internal.TCP ( TCPWatcher(..) ) where import Foreign.Ptr -- | A TCP watcher. newtype TCPWatcher = TCPWatcher (Ptr ())
aardvarrk/hlibuv
src/Network/UV/Internal/TCP.hs
bsd-3-clause
148
0
8
31
39
25
14
4
0
module Algebra.Lattice.Lifted ( Lifted(..) ) where import Algebra.Lattice -- -- Lifted -- -- | Graft a distinct bottom onto an otherwise unbounded lattice. -- As a bonus, the bottom will be an absorbing element for the meet. data Lifted a = Lift a | Bottom instance JoinSemiLattice a => JoinSemiL...
batterseapower/lattices
Algebra/Lattice/Lifted.hs
bsd-3-clause
932
0
8
211
292
154
138
19
0
module Lang.LF.Internal.Typecheck where import qualified Data.Set as Set import qualified Data.Map.Strict as Map import Text.PrettyPrint.ANSI.Leijen hiding ((<$>)) import Lang.LF.Internal.Basics import Lang.LF.Internal.Model import Lang.LF.Internal.Print import Lang.LF.Internal.Weak validateKindLF :: fora...
robdockins/canonical-lf
src/Lang/LF/Internal/Typecheck.hs
bsd-3-clause
12,407
283
16
4,314
4,230
2,168
2,062
-1
-1
{-# OPTIONS_GHC -fno-warn-type-defaults #-} import Data.Map (fromList) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import ETL (transform) main :: IO () main = hspecWith defaultConfig {configFastFail = True} specs specs :: Spec ...
enolive/exercism
haskell/etl/test/Tests.hs
mit
1,634
0
14
598
648
400
248
36
1
module Main where import Graph.Op import Expression.Op import Autolib.Dot ( peng, Layout_Program (..) ) import Autolib.Graph.Graph import Gateway.CGI import Inter.Evaluate import Autolib.ToDoc import Autolib.Reporter import Text.XHtml ( Html ) main :: IO () main = Gateway.CGI.execute "Graph.cgi" $ Gateway.CGI.wrap $ ...
Erdwolf/autotool-bonn
src/Graph/Shell.hs
gpl-2.0
1,055
0
14
336
303
159
144
-1
-1
module Grammatik.Produktiv -- -- $Id$ ( produktiv ) where -- verallgemeiner von CFG auf beliebige Grammatiken -- produktivität ist natürlich nicht entscheidbar -- hier ist sichere Approximation in diesem sinne: -- nach löschen aller nicht produktiven variablen -- gibts immer noch die gleiche sprache import Contro...
Erdwolf/autotool-bonn
src/Grammatik/Produktiv.hs
gpl-2.0
796
0
16
169
149
83
66
14
1
module FunIn1 where --In this example, the sub-expression '(y+1)' in function 'f' is generalised as parameter 'z' y=0 f x =x + ( y + 1) g = f 1
kmate/HaRe
old/testing/generaliseDef/FunIn1.hs
bsd-3-clause
148
0
7
34
37
21
16
4
1
module WithRenamingIn1 where --The application of a function is replaced by the right-hand side of the definition, --with actual parameters replacing formals. --In this example, unfold the first 'sq' in 'sumSquares' --This example aims to test renaming in order to avoid name clash or capture. sumSquares x y pow_1=(...
kmate/HaRe
old/testing/foldDef/WithRenamingIn1_TokOut.hs
bsd-3-clause
361
0
8
65
54
30
24
4
1
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances, UndecidableInstances #-} module Tc173a where class FormValue value where isFormValue :: value -> () isFormValue _ = () class FormTextField value instance FormTextField String instance {-# OVERLAPPABLE #-} FormTextField value => FormTextFieldIO value clas...
lukexi/ghc
testsuite/tests/typecheck/should_compile/Tc173a.hs
bsd-3-clause
480
0
8
70
106
51
55
-1
-1
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Control.Applicative -- Copyright : Conor McBride and Ross Paterson 2005 -- License : BSD-style (see the LICENSE file in the distribution) -- -- Maintainer : l...
ssaavedra/liquidhaskell
benchmarks/base-4.5.1.0/Control/Applicative.hs
bsd-3-clause
7,813
137
23
1,812
1,956
1,117
839
110
1
{-# LANGUAGE FlexibleContexts, FlexibleInstances #-} {-# LANGUAGE CPP #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE TypeFamilies #-} ----------------------------------------------------------------------------- {- | Module : Numeric.LinearAlgebra.Algorithms Copyrig...
mightymoose/liquidhaskell
benchmarks/hmatrix-0.15.0.1/lib/Numeric/LinearAlgebra/Algorithms.hs
bsd-3-clause
25,190
25
16
6,549
7,040
3,693
3,347
-1
-1
----------------------------------------------------------------------------- -- | -- Module : Test -- Copyright : (c) Simon Marlow 2002 -- License : BSD-style -- -- Maintainer : libraries@haskell.org -- Stability : provisional -- Portability : portable -- -- This module illustrates & tests most of...
spacekitteh/smcghc
testsuite/tests/haddock/haddock_examples/Test.hs
bsd-3-clause
8,851
75
10
2,221
1,184
775
409
-1
-1
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -ddump-splices -dsuppress-uniques #-} module Bug where $([d| type family Foo a b type instance Foo (Maybe a) b = Either (Maybe a) (Maybe b) data family Bar a b data instance Bar (Maybe a) b = BarMaybe (Maybe a) (Maybe b) ...
ezyang/ghc
testsuite/tests/printer/T13550.hs
bsd-3-clause
1,356
0
6
400
19
14
5
8
0
{-# LANGUAGE TemplateHaskell #-} module T12130a where import Language.Haskell.TH data Block = Block { blockSelector :: () } block :: Q Exp block = [| Block { -- Using record syntax is necessary to trigger the bug. blockSelector = () } |]
shlevy/ghc
testsuite/tests/th/T12130a.hs
bsd-3-clause
283
0
9
87
44
28
16
9
1
{-# LANGUAGE TemplateHaskell #-} module T5434 where import T5434a $(genShadow1) v :: Bool v = True $(genShadow2)
wxwxwwxxx/ghc
testsuite/tests/th/T5434.hs
bsd-3-clause
118
0
6
22
32
18
14
7
1
{-# LANGUAGE RecordWildCards #-} import Data.Foldable (for_) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import Acronym (abbreviate) main :: IO () main = hspecWith defaultConfig {configFastFail = True} specs specs :: Spec specs = de...
enolive/exercism
haskell/acronym/test/Tests.hs
mit
1,755
0
9
693
319
195
124
32
1
module Rebase.Control.Selective.Rigid.Freer ( module Control.Selective.Rigid.Freer ) where import Control.Selective.Rigid.Freer
nikita-volkov/rebase
library/Rebase/Control/Selective/Rigid/Freer.hs
mit
131
0
5
12
26
19
7
4
0
module ARD.SamplerSpec where import ARD.Randomize import ARD.Sampler import ARD.Vector import Test.Hspec spec :: Spec spec = describe "Sampler" $ do jitteredSamplerSpec standardSamplerSpec randomSamplerSpec regularSamplerSpec randomSampler :: [Double] -> Randomize Sampler -> Sampler randomSampler rs sampler...
crazymaik/ard-haskell
test/ARD/SamplerSpec.hs
mit
2,074
0
16
351
714
363
351
41
1
module PscInspect ( getImportableModules, hasPursExtension ) where import Control.Applicative import Control.Arrow import Data.List import Data.Maybe import qualified System.Directory as Directory import qualified System.FilePath as FilePath import System.FilePath ((</>)) bowerComponentDir :: FilePath bowerCo...
sgronblo/psc-inspect
src/PscInspect.hs
mit
2,106
0
11
425
523
270
253
53
3
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell, OverloadedStrings, QuasiQuotes, NamedFieldPuns #-} module Control.OperationalTransformation.Text0.Specs where import qualified Control.OperationalTransformation as C import Control.OperationalTransformation.JSON.QuasiQuote import Control.OperationalTr...
thomasjm/ot.hs
test/Control/OperationalTransformation/Text0/Specs.hs
mit
8,237
0
15
1,392
1,472
952
520
76
2
{-# LANGUAGE DeriveGeneric #-} module Data.Schema where import Utils.Utils import Data.Types import Data.Name import CodeGen.HaskellCode import qualified Data.UnionFind as UF import Data.Tuple.HT import Data.Maybe import Data.List import Control.Monad import qualified Data.Map as Map import Data.Serialize import qua...
jvictor0/JoSQL
Data/Schema.hs
mit
5,946
2
21
1,288
2,428
1,285
1,143
108
2
{-# htermination showSigned :: (Float -> (String -> String)) -> Int -> Float -> String -> String #-}
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/Prelude_showSigned_3.hs
mit
101
0
2
18
3
2
1
1
0
{-# LANGUAGE OverloadedLists #-} -- | Miscellaneous utility functions module Iris.Util where import qualified Linear as L import Iris.SceneGraph import Iris.Visuals makeCube :: IO DrawNode makeCube = meshInit $ meshSpec { meshSpecData = Faces cubeVerts cubeIndices , ...
jdreaver/iris
src/Iris/Util.hs
mit
1,561
0
8
835
499
270
229
43
1
-- Mathematics/Fundamentals/Filling Jars module Main where import qualified HackerRank.Mathematics.FillingJarsVect as M main :: IO () main = M.main
4e6/sandbox
haskell/hackerrank/FillingJarsVect.hs
mit
152
0
6
22
31
20
11
4
1
module Test where import System.IO import System.Process import System.Directory import Control.Monad import TypeSystem import GenerateCalculi import FromLambdaProlog import ToLambdaProlog import Library import ToLatex...
mcimini/Gradualizer
Test.hs
mit
2,052
0
13
619
477
233
244
45
1
{- Duplicate the elements of a list a given number of times. -} duplicateX :: [a] -> Int -> [a] duplicateX [] _ = [] duplicateX _ 0 = [] duplicateX l 1 = l duplicateX (h:t) x = [h | _ <- [1..x]] ++ (duplicateX t x)
andrewaguiar/s99-haskell
p15.hs
mit
216
0
9
48
102
54
48
5
1
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.PerformanceResourceTiming (js_getInitiatorType, getInitiatorType, js_getRedirectStart, getRedirectStart, js_getRedirectEnd, getRedirectEnd, js_getFetchStart, getFetchStart, js_getDomainLooku...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/PerformanceResourceTiming.hs
mit
6,408
66
10
887
1,065
603
462
84
1
{- geniserver Copyright (C) 2011 Eric Kow (on behalf of SRI) This program 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 2 of the License, or (at your option) any later version. This program is d...
kowey/GenI
geniserver/src/NLP/GenI/Server/Instruction.hs
gpl-2.0
1,522
0
14
377
230
125
105
17
0
module CSP.Trace where import CSP.Syntax import CSP.STS import CSP.Step import Autolib.NFA import qualified Data.Set as S import Autolib.ToDoc auto p = let s = sts p q = CSP.STS.states s a = NFA { nfa_info = text "Spursprache" , Autolib.NFA.alphabet = CSP.Syntax.alphabet p ...
marcellussiegburg/autotool
collection/src/CSP/Trace.hs
gpl-2.0
548
0
12
214
156
88
68
18
1
{- | Module : FMP.Tree 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/Tree.hs
gpl-3.0
29,709
1
17
13,315
9,324
4,828
4,496
504
6
{- ============================================================================ | Copyright 2011 Matthew D. Steele <mdsteele@alum.mit.edu> | | | | This file is part of Fallback. | ...
mdsteele/fallback
src/Fallback/Scenario/Triggers/Holmgare.hs
gpl-3.0
13,293
0
23
3,868
1,312
610
702
117
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
dysinger/amazonka
amazonka-ec2/gen/Network/AWS/EC2/CopySnapshot.hs
mpl-2.0
6,884
0
9
1,443
793
483
310
86
1
{-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-duplicate-exports #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Network.AWS.Route53 -- Copyright : (c) 2013-2015 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Br...
fmapfmapfmap/amazonka
amazonka-route53/gen/Network/AWS/Route53.hs
mpl-2.0
11,721
0
5
2,603
1,057
778
279
209
0
{-# 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 #-} -- ...
olorin/amazonka
amazonka-s3/gen/Network/AWS/S3/GetBucketLogging.hs
mpl-2.0
3,845
0
13
767
530
318
212
67
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Cancel.hs
mpl-2.0
3,388
0
15
832
392
237
155
63
1
{-# LANGUAGE FlexibleInstances, OverloadedStrings #-} module Web.SpiraJira.Transition ( decodeTransitions, transitionJson, Transition ) where import Data.Aeson(Value(..), (.:), (.=), FromJSON(..), ToJSON(..), eitherDecode, encode, object) import Control.Monad import Control.Applicative import Data.Text (Text, ...
tobytripp/SpiraJira
src/Web/SpiraJira/Transition.hs
lgpl-3.0
1,175
0
11
218
382
212
170
32
1
{- Created : 2013 Sep 09 (Mon) 17:41:15 by carr. Last Modified : 2017 Jul 26 (Wed) 17:42:13 by Harold Carr. -} module Main where import qualified Data.Text as T import MakeMP3Copies import Shelly fromRoot :: Shelly.FilePath fromRoot = fromText $ T.pack "." main :: IO () main = shelly $...
haroldcarr/make-mp3-copies
Main.hs
unlicense
374
0
7
98
67
39
28
9
1
module Data.P440.Domain.ZSO where import Data.P440.Domain.SimpleTypes import Data.P440.Domain.ComplexTypes import Data.Text (Text) -- 2.8 Запрос НО об остатках data Файл = Файл { идЭС :: GUID ,типИнф :: Text ,версПрог :: Text ,телОтпр :: Text ,должнОтпр :: Text ,фамОтпр :...
Macil-dev/p440
src/Data/P440/Domain/ZSO.hs
unlicense
2,278
42
11
633
1,002
531
471
56
0
-- |Formatted and colored output to the console. module Crawling.Hephaestos.CLI.Format ( format, error, report, input, emphasize, cliAction,) where import Prelude hiding (error) import Control.Concurrent.STM.Utils import Control.Monad.IO.Class import System.Console.ANSI import System.IO.Unsafe (unsa...
jtapolczai/Hephaestos
Crawling/Hephaestos/CLI/Format.hs
apache-2.0
1,753
0
11
346
387
208
179
27
1
----------------------------------------------------------------------------- -- | -- Module : Application.HXournal.Type.Coroutine -- Copyright : (c) 2011, 2012 Ian-Woo Kim -- -- License : BSD3 -- Maintainer : Ian-Woo Kim <ianwookim@gmail.com> -- Stability : experimental -- Portability : GHC -- ---------...
wavewave/hxournal
lib/Application/HXournal/Type/Coroutine.hs
bsd-2-clause
999
0
8
137
180
114
66
14
0
module TyClCoRec.DList where import GhcPlugins plugin :: Plugin plugin = defaultPlugin -- { -- }
frantisekfarka/tycl-corec-plu
src/TyClCoRec/DList.hs
bsd-2-clause
101
0
4
19
21
14
7
4
1
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Controller ( withGraphmind ) where import Graphmind import Settings import Yesod.Helpers.Static import Yesod.Helpers.Auth import Database.Persist.GenericSql -- Import all relevant handler modules here. import Handler.Handlers -- Th...
shepheb/graphmind
Controller.hs
bsd-2-clause
1,339
0
12
218
195
106
89
21
1
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, RankNTypes, TupleSections, TypeOperators, UndecidableInstances #-} module Control.Monad.Generator ( GeneratorT (..), yield ) where import Control.Arrow (second) import Control.Applicative (Alternative, Applicative, (<*>), (<|>), pure, empty) impo...
YellPika/nregions
src/Control/Monad/Generator.hs
bsd-3-clause
2,547
0
15
601
945
505
440
58
1
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} module Ivory.Language.Array where import Ivory.Language.IBool import Ivory.Language.Area import Ivory.Language.Pro...
Hodapp87/ivory
ivory/src/Ivory/Language/Array.hs
bsd-3-clause
3,979
0
14
964
1,213
656
557
78
3
module Rachel.Doc ( primitivesReport , showEntity , printEnvironment ) where import Rachel.Types import Rachel.Primitive import Rachel.Evaluation import qualified Data.Map as Map import Data.Char (isLetter) primitivesReport :: String primitivesReport = unlines $ fmap showEntity allPrimitives showEntity :...
Daniel-Diaz/rachel
Rachel/Doc.hs
bsd-3-clause
848
0
13
262
295
151
144
27
2
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Text.CSL.Data -- Copyright : (c) John MacFarlane -- License : BSD-style (see LICENSE) -- -- Maintainer : John MacFarlane <fiddlosopher@gmail.com> -- Stability : unstable -- Portability ...
timtylin/scholdoc-citeproc
src/Text/CSL/Data.hs
bsd-3-clause
3,469
0
23
1,098
784
471
313
66
4
{-# LANGUAGE EmptyDataDecls, FlexibleInstances #-} module System.Linux.Cgroups.Types ( -- * datatypes Cgroup(..) , Subsystem(..) , Hierarchy(..) , Spec -- * classes , HasCgroup(..) , CgroupValue(..) , CgroupRead(..) , CgroupBox(..) , TextSerial(..) -- * helper datatypes , Relative , Ab...
qnikst/cgroups-hs
System/Linux/Cgroups/Types.hs
bsd-3-clause
3,453
0
15
885
1,043
567
476
-1
-1
{-# LANGUAGE NoMonomorphismRestriction #-} -- |Includes event handling concerns and mouse, application and keyboard state -- query mechanisms. module Tea.Event ( Event (..) , EventQuery (..) , (+>) , eventHandler , handleEvents , upda...
liamoc/tea-hs
Tea/Event.hs
bsd-3-clause
9,877
0
19
3,360
2,484
1,344
1,140
-1
-1
module Cube where import Graphics.Rendering.OpenGL import Graphics.UI.GLUT cube w = do renderPrimitive Quads $ do vertex $ Vertex3 w w w vertex $ Vertex3 w w (-w) vertex $ Vertex3 w (-w) (-w) vertex $ Vertex3 w (-w) w vertex $ Vertex3 w w w vertex $ Vertex3 w w (-w) vertex $ Vertex3 (-w) ...
fnoble/3dconnexion-haskell
Cube.hs
bsd-3-clause
878
0
13
263
550
271
279
29
1
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE PatternSynonyms #-} ------------------------------------------------------------------- -- | -- Module : Irreverent.Bitbucket.Cli.Commands.SetPipelineSSHKeys -- Copyright : (C) 2017 - 2018 Irreverent Pixel Feats -- License : BSD-style (see the file /LICENSE....
irreverent-pixel-feats/bitbucket
bitbucket-cli/src/Irreverent/Bitbucket/Cli/Commands/SetPipelineSSHKeys.hs
bsd-3-clause
2,462
0
17
313
560
335
225
43
1
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP, DisambiguateRecordFields, RecordWildCards #-} module Nettle.OpenFlow.Packet ( -- * Sending packets PacketOut (..) , bufferedPacketOut , unbufferedPacketOut , receivedPacketOut , BufferID -- * Packets not handled by a switch , PacketInfo (..) , Pa...
brownsys/nettle-openflow
src/Nettle/OpenFlow/Packet.hs
bsd-3-clause
3,836
0
12
898
510
303
207
71
2
{-# LANGUAGE RankNTypes ,FlexibleContexts ,ScopedTypeVariables #-} -- | Enumeratees - pass terminals variant. -- -- Provides enumeratees that pass terminal markers ('EOF') to the inner -- 'iteratee'. -- -- Most enumeratees, upon receipt of @EOF@, will enter a done state and return -- the inne...
JohnLato/iteratee
src/Data/Iteratee/PTerm.hs
bsd-3-clause
11,664
0
22
3,672
3,194
1,610
1,584
196
11
{-# LANGUAGE MultiParamTypeClasses #-} module Opaleye.Internal.Distinct where import Opaleye.QueryArr (Query) import Opaleye.Column (Column) import Opaleye.Aggregate (Aggregator, groupBy, aggregate) import Control.Applicative (Applicative, pure, (<*>)) import qualified Data.P...
k0001/haskell-opaleye
Opaleye/Internal/Distinct.hs
bsd-3-clause
1,432
0
9
273
351
194
157
25
1
module TriangleKata.Day2Spec (spec) where import Test.Hspec import TriangleKata.Day2 (triangle, TriangleType(..)) spec :: Spec spec = do it "equilateral triangle has all sides equal" $ do triangle (10, 10, 10) `shouldBe` Equilateral it "isosceles triangle with first two si...
Alex-Diez/haskell-tdd-kata
old-katas/test/TriangleKata/Day2Spec.hs
bsd-3-clause
1,392
0
13
424
355
188
167
25
1
{-# LANGUAGE CPP #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TemplateHaskell #-} -- | Perform a build module Stack.Build.Execute...
robstewart57/stack
src/Stack/Build/Execute.hs
bsd-3-clause
58,886
0
31
23,506
12,832
6,359
6,473
-1
-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. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. {-# LANGUAGE Overl...
rfranek/duckling
Duckling/Ordinal/HE/Corpus.hs
bsd-3-clause
721
0
9
137
107
68
39
15
1
module Abstract.Impl.Memcache.Counter.Dec ( module Abstract.Interfaces.Counter.Dec, mkCounter'Memcache'Int'Dec ) where import Abstract.Interfaces.Counter.Dec import qualified Abstract.Impl.Memcache.Counter.Internal as MEMCACHE (mkCounter'Memcache'Int) mkCounter'Memcache'Int'Dec s t = do v <- MEMCACHE.mkCounter'Me...
adarqui/Abstract-Impl-Memcache
src/Abstract/Impl/Memcache/Counter/Dec.hs
bsd-3-clause
360
0
9
37
79
48
31
8
1
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE ScopedTypeVariables #-} module Control.Monad.Skeleton (MonadView(..) , hoistMV , iterMV , Skeleton(..) , bone , debone , deboneBy , boned , hoistSkeleton ) where import Control.Arrow import Control.Applicative import Control.Monad import ...
fumieval/monad-skeleton
src/Control/Monad/Skeleton.hs
bsd-3-clause
3,339
0
14
785
1,223
630
593
77
2
{-# 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-cognito-identity/gen/Network/AWS/CognitoIdentity/CreateIdentityPool.hs
mpl-2.0
6,153
0
13
1,297
746
449
297
99
1
import qualified System.Directory as D main :: IO () main = do putStrLn "Hello World Haskell!" D.getDirectoryContents "/" >>= mapM_ putStrLn
caiorss/Emacs-Elisp-Hacking
codes/myApp.hs
unlicense
148
0
9
28
45
22
23
5
1
{-# LANGUAGE ExistentialQuantification #-} import Control.Concurrent.STM import Benchmark import Data.STM.Bag.Class as Bag import Data.STM.Bag.Internal.ListBag import Data.STM.Bag.Internal.TListBag import Data.STM.Bag.Internal.PTLB import Data.STM.Bag.Internal.PTTLB data Box = forall b. Bag.Bag b => Box (STM (b In...
Alllex/stm-data-collection
benchmarks/BagBench.hs
bsd-3-clause
1,802
0
14
420
621
327
294
46
3
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} module Tholos.App where import Control.Monad.IO.Class (MonadIO) import Data.Monoid ((<>)) import Network.Wai as Wai import Network.Wai.Middlewar...
charlescrain/chainblock
src/Tholos/App.hs
bsd-3-clause
1,255
0
10
398
264
152
112
26
1
{- (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 -} {-# LANGUAGE CPP, DeriveDataTypeable, DeriveFunctor #-} -- | CoreSyn holds all the main data types for use by for the Glasgow Haskell Compiler midsection module CoreSyn ( -- * Main data types Expr(..), A...
vTurbine/ghc
compiler/coreSyn/CoreSyn.hs
bsd-3-clause
73,224
0
14
19,898
8,509
4,839
3,670
600
5
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import qualified GitHub.Endpoints.Users.PublicSSHKeys as PK import qualified GitHub.Auth as Auth import Data.List (intercalate) import Data.Vector (toList) main :: IO () main = do -- Fetch the SSH public keys of another user ePublicSSHKeys <- PK.publicSS...
jwiegley/github
samples/Users/PublicSSHKeys/ListPublicSSHKeys.hs
bsd-3-clause
798
0
13
143
237
123
114
17
3
-- Copyright (c) 2015 Eric McCorkle. 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, this list of conditi...
emc2/chill
src/IR/FlatIR/LLVMGen/VarAccess.hs
bsd-3-clause
10,478
1
19
2,370
2,119
1,096
1,023
169
6
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} -- from https://ocharles.org.uk/blog/guest-posts/2014-12-15-deriving.html import Data.Data import Control.Monad.IO.Class import Control.Mona...
mpickering/ghc-exactprint
tests/examples/ghc710/DerivingOC.hs
bsd-3-clause
1,060
0
9
318
201
117
84
23
0
module Network.MQTT.Gateway ( module Network.MQTT.Gateway.Core , module Network.MQTT.Gateway.Socket ) where import Network.MQTT.Gateway.Core import Network.MQTT.Gateway.Socket
rasendubi/arachne
src/Network/MQTT/Gateway.hs
bsd-3-clause
183
0
5
21
39
28
11
5
0
{-# LANGUAGE OverloadedStrings #-} {-| /proc/stat file parser This module holds the definition of the parser that extracts information about the CPU load of the system from the @/proc/stat@ file. -} {- Copyright (C) 2013 Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or wit...
andir/ganeti
src/Ganeti/Cpu/LoadParser.hs
bsd-2-clause
2,837
0
18
538
306
177
129
32
1
module Data.Char (chr ,ord ,isAscii ,isLatin1 ,toUpper ,toLower ,isAsciiLower ,isAsciiUpper ,isDigit ,isOctDigit ,isHexDigit ,isSpace ) where import Fay.FFI chr :: Int -> Char chr = ffi "String.fromCharCode(%1)" ord :: Char -> Int ord = ffi "%1.charCodeAt(0)" isAscii :: Char -> Bool isAsci...
fpco/fay-base
src/Data/Char.hs
bsd-3-clause
963
0
13
243
344
185
159
39
1