Search is not available for this dataset
repo_name
string
path
string
license
string
full_code
string
full_size
int64
uncommented_code
string
uncommented_size
int64
function_only_code
string
function_only_size
int64
is_commented
bool
is_signatured
bool
n_ast_errors
int64
ast_max_depth
int64
n_whitespaces
int64
n_ast_nodes
int64
n_ast_terminals
int64
n_ast_nonterminals
int64
loc
int64
cycloplexity
int64
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_REG_23_ATI :: GLenum gl_REG_23_ATI = 0x8938
46
gl_REG_23_ATI :: GLenum gl_REG_23_ATI = 0x8938
46
gl_REG_23_ATI = 0x8938
22
false
true
0
4
5
11
6
5
null
null
quinor/Fair-Functional-Language
src/Interpreter/Defs.hs
mit
prParenType :: Type -> PP.Doc prParenType t = case t of TLambda _ _ -> PP.parens $ prType t TAlgebraic _ _ -> PP.parens $ prType t _ -> prType t
169
prParenType :: Type -> PP.Doc prParenType t = case t of TLambda _ _ -> PP.parens $ prType t TAlgebraic _ _ -> PP.parens $ prType t _ -> prType t
169
prParenType t = case t of TLambda _ _ -> PP.parens $ prType t TAlgebraic _ _ -> PP.parens $ prType t _ -> prType t
139
false
true
0
9
55
78
35
43
null
null
GaloisInc/halvm-ghc
compiler/basicTypes/Literal.hs
bsd-3-clause
isZeroLit (MachFloat 0) = True
31
isZeroLit (MachFloat 0) = True
31
isZeroLit (MachFloat 0) = True
31
false
false
0
6
5
16
7
9
null
null
lamdu/lamdu
test/Tests/EventMap.hs
gpl-3.0
eventMap :: EventMap Integer eventMap = mconcat [ charEventMap "A" (Doc ["B"]) (const Nothing) , charEventMap "C" (Doc ["D"]) (const (Just 1)) ]
160
eventMap :: EventMap Integer eventMap = mconcat [ charEventMap "A" (Doc ["B"]) (const Nothing) , charEventMap "C" (Doc ["D"]) (const (Just 1)) ]
160
eventMap = mconcat [ charEventMap "A" (Doc ["B"]) (const Nothing) , charEventMap "C" (Doc ["D"]) (const (Just 1)) ]
131
false
true
0
10
38
73
37
36
null
null
nishiuramakoto/logiku
test/Handler/PrologSpec.hs
gpl-3.0
big = struct "big"
20
big = struct "big"
20
big = struct "big"
20
false
false
1
5
5
13
4
9
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_BUMP_ENVMAP_ATI :: GLenum gl_BUMP_ENVMAP_ATI = 0x877B
56
gl_BUMP_ENVMAP_ATI :: GLenum gl_BUMP_ENVMAP_ATI = 0x877B
56
gl_BUMP_ENVMAP_ATI = 0x877B
27
false
true
0
4
5
11
6
5
null
null
ancientlanguage/haskell-analysis
prepare/src/Prepare/Sblgnt/Unify.hs
mit
shortIdToLong "Jn" = "John"
27
shortIdToLong "Jn" = "John"
27
shortIdToLong "Jn" = "John"
27
false
false
0
5
3
9
4
5
null
null
jyp/Cake
Cake/Core.hs
gpl-2.0
-- | Produce files, using the given action. produces :: [FilePath] -> Act () -> Act () produces fs a = do ps <- mapM produced fs -- Do nothing if all files are already produced. when (not $ and ps) $ updates fs a -- | Produce a file, using with the given action. BUT: no problem to -- produce the same file multipl...
328
produces :: [FilePath] -> Act () -> Act () produces fs a = do ps <- mapM produced fs -- Do nothing if all files are already produced. when (not $ and ps) $ updates fs a -- | Produce a file, using with the given action. BUT: no problem to -- produce the same file multiple times.
284
produces fs a = do ps <- mapM produced fs -- Do nothing if all files are already produced. when (not $ and ps) $ updates fs a -- | Produce a file, using with the given action. BUT: no problem to -- produce the same file multiple times.
241
true
true
0
11
71
78
38
40
null
null
peterokagey/haskellOEIS
src/Sandbox/OpenishProblems/Problem105.hs
apache-2.0
symmetrizeHalfChain m n points | odd (m * n) = error "odd" | otherwise = points ++ reverse (map (rotate180 m n) points)
125
symmetrizeHalfChain m n points | odd (m * n) = error "odd" | otherwise = points ++ reverse (map (rotate180 m n) points)
125
symmetrizeHalfChain m n points | odd (m * n) = error "odd" | otherwise = points ++ reverse (map (rotate180 m n) points)
125
false
false
2
10
28
73
31
42
null
null
lynnard/cocos2d-hs
src/Graphics/UI/Cocos2d/Widget.hs
bsd-3-clause
castButtonToNonconst (ButtonConstGc fptr' ptr') = ButtonGc fptr' $ HoppyF.castPtr ptr'
86
castButtonToNonconst (ButtonConstGc fptr' ptr') = ButtonGc fptr' $ HoppyF.castPtr ptr'
86
castButtonToNonconst (ButtonConstGc fptr' ptr') = ButtonGc fptr' $ HoppyF.castPtr ptr'
86
false
false
0
7
9
29
13
16
null
null
mathhun/stack
src/System/Process/Read.hs
bsd-3-clause
doesExecutableExist :: MonadIO m => EnvOverride -> String -> m Bool doesExecutableExist menv name = liftM isJust $ findExecutable menv name
139
doesExecutableExist :: MonadIO m => EnvOverride -> String -> m Bool doesExecutableExist menv name = liftM isJust $ findExecutable menv name
139
doesExecutableExist menv name = liftM isJust $ findExecutable menv name
71
false
true
0
8
20
50
22
28
null
null
TomMD/ghc
compiler/basicTypes/RdrName.hs
bsd-3-clause
isExplicitItem :: ImpItemSpec -> Bool isExplicitItem ImpAll = False
90
isExplicitItem :: ImpItemSpec -> Bool isExplicitItem ImpAll = False
90
isExplicitItem ImpAll = False
52
false
true
0
7
31
24
10
14
null
null
jacekszymanski/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxID_SELECTALL :: Int wxID_SELECTALL = 5037
43
wxID_SELECTALL :: Int wxID_SELECTALL = 5037
43
wxID_SELECTALL = 5037
21
false
true
0
4
5
11
6
5
null
null
jkpl/tagenerator
src/TaGenerator/TaData.hs
mit
identifierLookup :: Identifier k => k -> M.Map String v -> Maybe v identifierLookup k m = M.lookup (identifier k) m
115
identifierLookup :: Identifier k => k -> M.Map String v -> Maybe v identifierLookup k m = M.lookup (identifier k) m
115
identifierLookup k m = M.lookup (identifier k) m
48
false
true
0
9
20
58
26
32
null
null
agentm/project-m36
src/lib/ProjectM36/Attribute.hs
unlicense
deleteAttributeName :: AttributeName -> Attributes -> Attributes deleteAttributeName attrName = deleteAttributeNames (S.singleton attrName)
139
deleteAttributeName :: AttributeName -> Attributes -> Attributes deleteAttributeName attrName = deleteAttributeNames (S.singleton attrName)
139
deleteAttributeName attrName = deleteAttributeNames (S.singleton attrName)
74
false
true
0
8
12
33
16
17
null
null
RyanBeatty/Falcon
src/ConnectFour/Board.hs
gpl-2.0
getBoardState :: Board -> BoardState getBoardState board | checkWon board = boardWon | checkPlayable board = boardPlayable | otherwise = boardDrawn
177
getBoardState :: Board -> BoardState getBoardState board | checkWon board = boardWon | checkPlayable board = boardPlayable | otherwise = boardDrawn
177
getBoardState board | checkWon board = boardWon | checkPlayable board = boardPlayable | otherwise = boardDrawn
140
false
true
2
8
50
45
21
24
null
null
nebasuke/CarneadesIntoDung
src/Language/CarneadesIntoDung/Translation.hs
bsd-3-clause
-- |Transforms a Carneades proposition into a Dung argument and labels it 'True'. propToLArg :: PropLiteral -> LConcreteArg propToLArg p = (True, Left p)
153
propToLArg :: PropLiteral -> LConcreteArg propToLArg p = (True, Left p)
71
propToLArg p = (True, Left p)
29
true
true
0
6
23
28
15
13
null
null
andrewMacmurray/haskell-book-solutions
src/ch24/Semver.hs
mit
semverEx' = "1.0.0-x.7.z.92"
28
semverEx' = "1.0.0-x.7.z.92"
28
semverEx' = "1.0.0-x.7.z.92"
28
false
false
0
4
2
6
3
3
null
null
ssaavedra/liquidhaskell
tests/pos/RBTree.hs
bsd-3-clause
deleteMin' x (Node B lx ll lr) r = (k, lbalS x l' r ) where (k, l') = deleteMin' lx ll lr --------------------------------------------------------------------------- -- | Rotations ------------------------------------------------------------ --------------------------------------------------------------------------...
475
deleteMin' x (Node B lx ll lr) r = (k, lbalS x l' r ) where (k, l') = deleteMin' lx ll lr --------------------------------------------------------------------------- -- | Rotations ------------------------------------------------------------ --------------------------------------------------------------------------...
475
deleteMin' x (Node B lx ll lr) r = (k, lbalS x l' r ) where (k, l') = deleteMin' lx ll lr --------------------------------------------------------------------------- -- | Rotations ------------------------------------------------------------ --------------------------------------------------------------------------...
475
false
false
0
7
98
63
34
29
null
null
alios/iho-presentation
Data/IHO/S52/SVG.hs
bsd-3-clause
xlinkns = SVG.customAttribute "xmlns:xlink" $ SVG.toValue ("http://www.w3.org/1999/xlink" :: String)
110
xlinkns = SVG.customAttribute "xmlns:xlink" $ SVG.toValue ("http://www.w3.org/1999/xlink" :: String)
110
xlinkns = SVG.customAttribute "xmlns:xlink" $ SVG.toValue ("http://www.w3.org/1999/xlink" :: String)
110
false
false
0
7
18
26
13
13
null
null
BartAdv/hoogle
src/Input/Haddock.hs
bsd-3-clause
typeItem _ = ""
15
typeItem _ = ""
15
typeItem _ = ""
15
false
false
0
5
3
9
4
5
null
null
hvr/lens
src/Control/Lens/Indexed.hs
bsd-3-clause
-- | Monadic fold right over the elements of a structure with an index. -- -- When you don't need access to the index then 'foldrM' is more flexible in what it accepts. -- -- @ -- 'foldrM' ≡ 'ifoldrM' '.' 'const' -- @ ifoldrM :: (FoldableWithIndex i f, Monad m) => (i -> a -> b -> m b) -> b -> f a -> m b ifoldrM f z0 xs...
381
ifoldrM :: (FoldableWithIndex i f, Monad m) => (i -> a -> b -> m b) -> b -> f a -> m b ifoldrM f z0 xs = ifoldl f' return xs z0 where f' i k x z = f i x z >>= k
163
ifoldrM f z0 xs = ifoldl f' return xs z0 where f' i k x z = f i x z >>= k
76
true
true
0
11
93
119
60
59
null
null
JPMoresmau/BuildWrapper
src/Language/Haskell/BuildWrapper/GHC.hs
bsd-3-clause
tokenTypesArbitrary' :: FilePath -> String -> Bool -> Ghc (Either BWNote [TokenDef]) tokenTypesArbitrary' projectRoot contents literate = generateTokens' projectRoot contents literate convertTokens id where convertTokens = map tokenToType -- | Extract occurrences based on lexing
287
tokenTypesArbitrary' :: FilePath -> String -> Bool -> Ghc (Either BWNote [TokenDef]) tokenTypesArbitrary' projectRoot contents literate = generateTokens' projectRoot contents literate convertTokens id where convertTokens = map tokenToType -- | Extract occurrences based on lexing
287
tokenTypesArbitrary' projectRoot contents literate = generateTokens' projectRoot contents literate convertTokens id where convertTokens = map tokenToType -- | Extract occurrences based on lexing
202
false
true
1
11
42
75
34
41
null
null
kelnage/tamarin-prover
lib/term/src/Term/Unification.hs
gpl-3.0
matchRaw :: IsConst c => (c -> LSort) -> LTerm c -- ^ Term @t@ -> LTerm c -- ^ Pattern @p@. -> ExceptT MatchFailure (State (Map LVar (VTerm c LVar))) () matchRaw sortOf t p = do mappings <- get guard (trace (show (mappings,t,p)) True) case (viewTerm t, viewTerm p) of ...
1,433
matchRaw :: IsConst c => (c -> LSort) -> LTerm c -- ^ Term @t@ -> LTerm c -- ^ Pattern @p@. -> ExceptT MatchFailure (State (Map LVar (VTerm c LVar))) () matchRaw sortOf t p = do mappings <- get guard (trace (show (mappings,t,p)) True) case (viewTerm t, viewTerm p) of ...
1,433
matchRaw sortOf t p = do mappings <- get guard (trace (show (mappings,t,p)) True) case (viewTerm t, viewTerm p) of (_, Lit (Var vp)) -> case M.lookup vp mappings of Nothing -> do unless (sortGeqLTerm sortOf vp t) $ throwError NoMa...
1,244
false
true
0
18
502
519
250
269
null
null
lukexi/ftgl3-haskell
Graphics/Rendering/FTGL3.hs
bsd-2-clause
marshalCharMap EncodingAppleRoman= encodeTag 'a' 'r' 'm' 'n'
60
marshalCharMap EncodingAppleRoman= encodeTag 'a' 'r' 'm' 'n'
60
marshalCharMap EncodingAppleRoman= encodeTag 'a' 'r' 'm' 'n'
60
false
false
1
5
6
23
8
15
null
null
dolio/vector
Data/Vector/Generic/Mutable.hs
bsd-3-clause
read v i = BOUNDS_CHECK(checkIndex) "read" i (length v) $ unsafeRead v i
81
read v i = BOUNDS_CHECK(checkIndex) "read" i (length v) $ unsafeRead v i
81
read v i = BOUNDS_CHECK(checkIndex) "read" i (length v) $ unsafeRead v i
81
false
false
0
8
21
38
18
20
null
null
duplode/threepenny-gui
samples/DrumMachine.hs
bsd-3-clause
setup :: Window -> UI () setup w = void $ do return w # set title "Ha-ha-ha-ks-ks-ks-ha-ha-ha-ell-ell-ell" elBpm <- UI.input # set value (show defaultBpm) elTick <- UI.span (kit, elInstruments) <- mkDrumKit let status = grid [[UI.string "BPM:" , element elBpm] ,[UI.string "Be...
1,014
setup :: Window -> UI () setup w = void $ do return w # set title "Ha-ha-ha-ks-ks-ks-ha-ha-ha-ell-ell-ell" elBpm <- UI.input # set value (show defaultBpm) elTick <- UI.span (kit, elInstruments) <- mkDrumKit let status = grid [[UI.string "BPM:" , element elBpm] ,[UI.string "Be...
1,014
setup w = void $ do return w # set title "Ha-ha-ha-ks-ks-ks-ha-ha-ha-ell-ell-ell" elBpm <- UI.input # set value (show defaultBpm) elTick <- UI.span (kit, elInstruments) <- mkDrumKit let status = grid [[UI.string "BPM:" , element elBpm] ,[UI.string "Beat:", element elTick]] ...
989
false
true
0
16
299
397
193
204
null
null
natearn/hastracer
test-scene.hs
isc
limit = 2 :: Int
16
limit = 2 :: Int
16
limit = 2 :: Int
16
false
false
0
4
4
9
5
4
null
null
fumieval/call
src/Call.hs
bsd-3-clause
linkMouse :: Call => (MouseEvent -> IO ()) -> IO () linkMouse f = do g <- readIORef $ coreMouse given writeIORef (coreMouse given) $ \k -> f k >> g k
153
linkMouse :: Call => (MouseEvent -> IO ()) -> IO () linkMouse f = do g <- readIORef $ coreMouse given writeIORef (coreMouse given) $ \k -> f k >> g k
153
linkMouse f = do g <- readIORef $ coreMouse given writeIORef (coreMouse given) $ \k -> f k >> g k
101
false
true
0
10
35
85
39
46
null
null
TransformingMusicology/tabcode-haskell
src/TabCode/Serialiser/MEIXML/Elements.hs
gpl-3.0
durSymb Quaver Simple NoDot = pack "E"
38
durSymb Quaver Simple NoDot = pack "E"
38
durSymb Quaver Simple NoDot = pack "E"
38
false
false
0
5
6
19
7
12
null
null
flyrry/phonypony
src/Vindinium/Runner/Tileset.hs
mit
loadSprites :: SDL.Renderer -> IO Tileset loadSprites renderer = do -- TODO: this begs for refactoring lowlandsTexture <- loadTexture renderer "resources/lowlands_24.png" treeTexture <- loadTexture renderer "resources/tree.png" tavernTexture <- loadTexture renderer "resources/beer.png" heroesTexture...
2,202
loadSprites :: SDL.Renderer -> IO Tileset loadSprites renderer = do -- TODO: this begs for refactoring lowlandsTexture <- loadTexture renderer "resources/lowlands_24.png" treeTexture <- loadTexture renderer "resources/tree.png" tavernTexture <- loadTexture renderer "resources/beer.png" heroesTexture...
2,202
loadSprites renderer = do -- TODO: this begs for refactoring lowlandsTexture <- loadTexture renderer "resources/lowlands_24.png" treeTexture <- loadTexture renderer "resources/tree.png" tavernTexture <- loadTexture renderer "resources/beer.png" heroesTexture <- loadTexture renderer "resources/heroes...
2,160
false
true
0
21
346
673
342
331
null
null
TypeDB/bloc
src/Data/Blob/FileOperations.hs
bsd-3-clause
writeToHandle :: S.Handle -> B.ByteString -> IO () writeToHandle = B.hPut
73
writeToHandle :: S.Handle -> B.ByteString -> IO () writeToHandle = B.hPut
73
writeToHandle = B.hPut
22
false
true
0
8
10
30
15
15
null
null
maximkulkin/aeson
Data/Aeson/TH.hs
bsd-3-clause
parseArgs :: Name -- ^ Name of the type to which the constructor belongs. -> Options -- ^ Encoding options. -> Con -- ^ Constructor for which to generate JSON parsing code. -> Either (String, Name) Name -- ^ Left (valFieldName, objName) or -- Right...
507
parseArgs :: Name -- ^ Name of the type to which the constructor belongs. -> Options -- ^ Encoding options. -> Con -- ^ Constructor for which to generate JSON parsing code. -> Either (String, Name) Name -- ^ Left (valFieldName, objName) or -- Right...
482
parseArgs tName _ (NormalC conName []) (Left (valFieldName, obj)) = getValField obj valFieldName $ parseNullaryMatches tName conName
134
true
true
0
13
152
97
50
47
null
null
lshemesh/Slide
src/Board.hs
mit
getNextMove :: Board -> Coords -> Maybe Coords getNextMove board coords = find (isBlank board) $ getNeighbors coords
116
getNextMove :: Board -> Coords -> Maybe Coords getNextMove board coords = find (isBlank board) $ getNeighbors coords
116
getNextMove board coords = find (isBlank board) $ getNeighbors coords
69
false
true
0
8
17
47
21
26
null
null
ctford/Idris-Elba-dev
src/Idris/ElabTerm.hs
bsd-3-clause
reifyTTApp t [t', Constant (I i)] | t == reflm "Proj" = do t'' <- reifyTT t' return $ Proj t'' i
143
reifyTTApp t [t', Constant (I i)] | t == reflm "Proj" = do t'' <- reifyTT t' return $ Proj t'' i
143
reifyTTApp t [t', Constant (I i)] | t == reflm "Proj" = do t'' <- reifyTT t' return $ Proj t'' i
143
false
false
0
9
68
61
27
34
null
null
parsonsmatt/lambda
src/Lambda/Untyped/Eval.hs
bsd-3-clause
alphaEquiv _ _ = Nothing
24
alphaEquiv _ _ = Nothing
24
alphaEquiv _ _ = Nothing
24
false
false
1
5
4
12
5
7
null
null
energyflowanalysis/efa-2.1
src/EFA/Equation/Arithmetic.hs
bsd-3-clause
ruleNegate :: (Sys.Value t a, Sum a) => Sys.Variable t s a -> Sys.Variable t s a -> Sys.T t s () ruleNegate = Rule.generic2 negate negate
143
ruleNegate :: (Sys.Value t a, Sum a) => Sys.Variable t s a -> Sys.Variable t s a -> Sys.T t s () ruleNegate = Rule.generic2 negate negate
143
ruleNegate = Rule.generic2 negate negate
40
false
true
0
9
32
74
36
38
null
null
onponomarev/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
-- * SSCONF keys ssClusterName :: String ssClusterName = "cluster_name"
72
ssClusterName :: String ssClusterName = "cluster_name"
54
ssClusterName = "cluster_name"
30
true
true
0
6
10
19
8
11
null
null
haslab/SecreC
src/Text/Derp.hs
gpl-3.0
extraLookup :: Int -> StableName () -> Map Int [(StableName (), a)] -> Maybe a extraLookup hashed key m = process $ Map.lookup hashed m where process x = case x of (Just []) -> Nothing (Just ((key', reified):xs)) | key == key' -> Just reified ...
420
extraLookup :: Int -> StableName () -> Map Int [(StableName (), a)] -> Maybe a extraLookup hashed key m = process $ Map.lookup hashed m where process x = case x of (Just []) -> Nothing (Just ((key', reified):xs)) | key == key' -> Just reified ...
420
extraLookup hashed key m = process $ Map.lookup hashed m where process x = case x of (Just []) -> Nothing (Just ((key', reified):xs)) | key == key' -> Just reified | otherwise -> process (Just xs) Nothing ...
341
false
true
1
13
180
167
78
89
null
null
elliottt/din
src/Watch.hs
bsd-3-clause
watchDir :: Chan Change -> INotify -> FilePath -> IO WatchDescriptor watchDir chan notify path = addWatch notify eventTypes path (processEvent chan)
148
watchDir :: Chan Change -> INotify -> FilePath -> IO WatchDescriptor watchDir chan notify path = addWatch notify eventTypes path (processEvent chan)
148
watchDir chan notify path = addWatch notify eventTypes path (processEvent chan)
79
false
true
0
9
21
55
25
30
null
null
blamario/incremental-parser
src/Text/ParserCombinators/Incremental.hs
gpl-3.0
prepend r (Choice p1 p2) = Choice (prepend r p1) (prepend r p2)
63
prepend r (Choice p1 p2) = Choice (prepend r p1) (prepend r p2)
63
prepend r (Choice p1 p2) = Choice (prepend r p1) (prepend r p2)
63
false
false
0
7
12
42
19
23
null
null
dhrosa/haskell-avr-simulator
AVR/AVRState.hs
gpl-3.0
-- | Pushes the PC onto the stack stackPush16 :: Word16 -> AVRState -> AVRState stackPush16 val = do let lo = fromIntegral (val .&. 0xFF) hi = fromIntegral (val `shiftR` 8) stackPush hi . stackPush lo -- | Looks at the PC saved on the stack
259
stackPush16 :: Word16 -> AVRState -> AVRState stackPush16 val = do let lo = fromIntegral (val .&. 0xFF) hi = fromIntegral (val `shiftR` 8) stackPush hi . stackPush lo -- | Looks at the PC saved on the stack
225
stackPush16 val = do let lo = fromIntegral (val .&. 0xFF) hi = fromIntegral (val `shiftR` 8) stackPush hi . stackPush lo -- | Looks at the PC saved on the stack
179
true
true
0
12
65
73
37
36
null
null
ancientlanguage/haskell-analysis
prepare/src/Prepare/Decompose.hs
mit
decomposeChar '\x1E74' = "\x0055\x0330"
39
decomposeChar '\x1E74' = "\x0055\x0330"
39
decomposeChar '\x1E74' = "\x0055\x0330"
39
false
false
1
5
3
13
4
9
null
null
geophf/1HaskellADay
exercises/HAD/Graph/KMeans.hs
mit
-- I'm feeling very LISPy rn --^ sumDown :: Fractional ä => [[ä]] -> (ä, [ä]) sumDown = uncurry (sd' 0) . (head &&& tail)
122
sumDown :: Fractional ä => [[ä]] -> (ä, [ä]) sumDown = uncurry (sd' 0) . (head &&& tail)
88
sumDown = uncurry (sd' 0) . (head &&& tail)
43
true
true
0
8
25
58
32
26
null
null
romanb/amazonka
amazonka-cognito-sync/gen/Network/AWS/CognitoSync/Types.hs
mpl-2.0
-- | The last modified date of the client device. rpDeviceLastModifiedDate :: Lens' RecordPatch (Maybe UTCTime) rpDeviceLastModifiedDate = lens _rpDeviceLastModifiedDate (\s a -> s { _rpDeviceLastModifiedDate = a }) . mapping _Time
255
rpDeviceLastModifiedDate :: Lens' RecordPatch (Maybe UTCTime) rpDeviceLastModifiedDate = lens _rpDeviceLastModifiedDate (\s a -> s { _rpDeviceLastModifiedDate = a }) . mapping _Time
205
rpDeviceLastModifiedDate = lens _rpDeviceLastModifiedDate (\s a -> s { _rpDeviceLastModifiedDate = a }) . mapping _Time
143
true
true
0
10
55
53
28
25
null
null
DavidAlphaFox/ghc
libraries/transformers/Control/Monad/Trans/RWS/Lazy.hs
bsd-3-clause
evalRWST :: (Monad m) => RWST r w s m a -- ^computation to execute -> r -- ^initial environment -> s -- ^initial value -> m (a, w) -- ^computation yielding final value and output evalRWST m r s = do ~(a, _, w) <- runRWST m r s ...
480
evalRWST :: (Monad m) => RWST r w s m a -- ^computation to execute -> r -- ^initial environment -> s -- ^initial value -> m (a, w) evalRWST m r s = do ~(a, _, w) <- runRWST m r s return (a, w) -- | Evaluate a computation with the give...
421
evalRWST m r s = do ~(a, _, w) <- runRWST m r s return (a, w) -- | Evaluate a computation with the given initial state and environment, -- returning the final state and output, discarding the final value.
213
true
true
0
11
172
106
55
51
null
null
rueshyna/gogol
gogol-datastore/gen/Network/Google/Datastore/Types/Product.hs
mpl-2.0
-- | The parsed form of the \`GqlQuery\` from the request, if it was set. rQuery :: Lens' RunQueryResponse (Maybe Query) rQuery = lens _rQuery (\ s a -> s{_rQuery = a})
168
rQuery :: Lens' RunQueryResponse (Maybe Query) rQuery = lens _rQuery (\ s a -> s{_rQuery = a})
94
rQuery = lens _rQuery (\ s a -> s{_rQuery = a})
47
true
true
0
9
31
46
25
21
null
null
anwb/fp-one-on-one
wadler-essence-00-standard-interpreter.hs
mit
test :: Term -> String test t = showI (interp t [])
80
test :: Term -> String test t = showI (interp t [])
80
test t = showI (interp t [])
42
false
true
0
8
40
31
15
16
null
null
torchhound/projects
haskell/startingOut.hs
gpl-3.0
--adds up the elements of a list prd x = product x
50
prd x = product x
17
prd x = product x
17
true
false
1
5
11
17
6
11
null
null
jfischoff/generic-maybe
tests/tasty.hs
bsd-3-clause
case_fromJust_Succ = fromJust (Succ Zero) @?= Zero
50
case_fromJust_Succ = fromJust (Succ Zero) @?= Zero
50
case_fromJust_Succ = fromJust (Succ Zero) @?= Zero
50
false
false
0
8
6
19
9
10
null
null
snoyberg/ghc
libraries/base/GHC/Real.hs
bsd-3-clause
x % y = reduce (x * signum y) (abs y)
56
x % y = reduce (x * signum y) (abs y)
56
x % y = reduce (x * signum y) (abs y)
56
false
false
1
8
29
32
15
17
null
null
juhp/network-uri
tests/uri001.hs
bsd-3-clause
testURIRefComponents :: String -> (Maybe URI) -> String -> Assertion testURIRefComponents _lab uv us = testEq ("testURIRefComponents:"++us) uv (parseURIReference us)
169
testURIRefComponents :: String -> (Maybe URI) -> String -> Assertion testURIRefComponents _lab uv us = testEq ("testURIRefComponents:"++us) uv (parseURIReference us)
169
testURIRefComponents _lab uv us = testEq ("testURIRefComponents:"++us) uv (parseURIReference us)
100
false
true
0
8
23
56
28
28
null
null
tjakway/ghcjvm
compiler/nativeGen/RegAlloc/Linear/StackMap.hs
bsd-3-clause
- | An empty stack map, with all slots available. emptyStackMap :: DynFlags -> StackMap emptyStackMap _ = StackMap 0 emptyUFM
126
emptyStackMap :: DynFlags -> StackMap emptyStackMap _ = StackMap 0 emptyUFM
75
emptyStackMap _ = StackMap 0 emptyUFM
37
true
true
1
9
21
48
23
25
null
null
CindyLinz/Haskell-HVG
demo.hs
bsd-3-clause
text :: String -> Builder Link () text str = local $ do tran <- getTransform Size w h <- getSize addEntity [] $ do transform tran textBaseline TextMiddle textAlign TextCenter font "15px sans-serif" fillStyle "#000" fillText str (Point (w / 2) (h / 2)) Nothing
291
text :: String -> Builder Link () text str = local $ do tran <- getTransform Size w h <- getSize addEntity [] $ do transform tran textBaseline TextMiddle textAlign TextCenter font "15px sans-serif" fillStyle "#000" fillText str (Point (w / 2) (h / 2)) Nothing
291
text str = local $ do tran <- getTransform Size w h <- getSize addEntity [] $ do transform tran textBaseline TextMiddle textAlign TextCenter font "15px sans-serif" fillStyle "#000" fillText str (Point (w / 2) (h / 2)) Nothing
257
false
true
0
16
77
127
54
73
null
null
ku-fpg/kansas-amber
System/Hardware/Haskino/Compiler.hs
bsd-3-clause
compileExpr (ShowW16 e) = compileSubExpr "showWord16" e
55
compileExpr (ShowW16 e) = compileSubExpr "showWord16" e
55
compileExpr (ShowW16 e) = compileSubExpr "showWord16" e
55
false
false
0
7
6
20
9
11
null
null
esengie/fpl-exploration-tool
src/langGenerator/Lang.hs
bsd-3-clause
nf (App v1 v2 v3) = nf' (U Bot) (App (nf v1) (nf v2) (nf1 v3))
62
nf (App v1 v2 v3) = nf' (U Bot) (App (nf v1) (nf v2) (nf1 v3))
62
nf (App v1 v2 v3) = nf' (U Bot) (App (nf v1) (nf v2) (nf1 v3))
62
false
false
0
9
15
59
28
31
null
null
arirahikkala/straylight-divergence
src/Game.hs
gpl-3.0
adjustPos E (Coord x y) = Coord (x+1) y
39
adjustPos E (Coord x y) = Coord (x+1) y
39
adjustPos E (Coord x y) = Coord (x+1) y
39
false
false
0
7
8
31
15
16
null
null
tolysz/yesod
yesod-persistent/Yesod/Persist/Core.hs
mit
-- | Constructed like 'notFound'', and for the same reasons. badRequest' :: MonadIO m => Texts -> m a badRequest' = liftIO . throwIO . HCError . InvalidArgs
156
badRequest' :: MonadIO m => Texts -> m a badRequest' = liftIO . throwIO . HCError . InvalidArgs
95
badRequest' = liftIO . throwIO . HCError . InvalidArgs
54
true
true
1
8
27
45
20
25
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/fromEnum_2.hs
mit
primModNatS Zero (Succ x) = Zero
32
primModNatS Zero (Succ x) = Zero
32
primModNatS Zero (Succ x) = Zero
32
false
false
0
7
5
17
8
9
null
null
frantisekfarka/ghc-dsi
compiler/cmm/CLabel.hs
bsd-3-clause
mkLocalStaticConEntryLabel c con = IdLabel con c StaticConEntry
64
mkLocalStaticConEntryLabel c con = IdLabel con c StaticConEntry
64
mkLocalStaticConEntryLabel c con = IdLabel con c StaticConEntry
64
false
false
0
5
8
18
8
10
null
null
plaprade/haskoin
haskoin-core/src/Network/Haskoin/Script/Evaluator.hs
unlicense
eval OP_NOP7 = void nopDiscourager
37
eval OP_NOP7 = void nopDiscourager
37
eval OP_NOP7 = void nopDiscourager
37
false
false
1
5
7
15
5
10
null
null
Teaspot-Studio/Urho3D-Haskell
src/Graphics/Urho3D/Input/InputConstants.hs
mit
keyBrightnessUp :: Int keyBrightnessUp = fromIntegral $ [C.pure| int {KEY_BRIGHTNESSUP} |]
90
keyBrightnessUp :: Int keyBrightnessUp = fromIntegral $ [C.pure| int {KEY_BRIGHTNESSUP} |]
90
keyBrightnessUp = fromIntegral $ [C.pure| int {KEY_BRIGHTNESSUP} |]
67
false
true
0
6
10
21
13
8
null
null
abakst/liquidhaskell
benchmarks/vector-0.10.0.1/Data/Vector/Generic.hs
bsd-3-clause
unsafeCopy dst src = UNSAFE_CHECK(check) "unsafeCopy" "length mismatch" (M.length dst == length src) $ (dst `seq` src `seq` basicUnsafeCopy dst src)
208
unsafeCopy dst src = UNSAFE_CHECK(check) "unsafeCopy" "length mismatch" (M.length dst == length src) $ (dst `seq` src `seq` basicUnsafeCopy dst src)
208
unsafeCopy dst src = UNSAFE_CHECK(check) "unsafeCopy" "length mismatch" (M.length dst == length src) $ (dst `seq` src `seq` basicUnsafeCopy dst src)
208
false
false
3
9
80
68
32
36
null
null
Thell/pandoc
src/Text/Pandoc/Writers/ICML.hs
gpl-2.0
inlineToICML opts style (Strong lst) = inlinesToICML opts (strongName:style) lst
80
inlineToICML opts style (Strong lst) = inlinesToICML opts (strongName:style) lst
80
inlineToICML opts style (Strong lst) = inlinesToICML opts (strongName:style) lst
80
false
false
0
7
9
33
16
17
null
null
ameingast/slisp
src/SLISP/Eval.hs
bsd-3-clause
newLambdaName :: SymbolTable -> String -> String newLambdaName t s = let (name,number) = break isDigit s name' = name ++ show (read number + 1 :: Integer) in case DM.lookup name t of Just _ -> newLambdaName t name' Nothing -> name'
250
newLambdaName :: SymbolTable -> String -> String newLambdaName t s = let (name,number) = break isDigit s name' = name ++ show (read number + 1 :: Integer) in case DM.lookup name t of Just _ -> newLambdaName t name' Nothing -> name'
250
newLambdaName t s = let (name,number) = break isDigit s name' = name ++ show (read number + 1 :: Integer) in case DM.lookup name t of Just _ -> newLambdaName t name' Nothing -> name'
201
false
true
0
13
61
105
50
55
null
null
spechub/Hets
VSE/Prove.hs
gpl-2.0
findState :: SExpr -> Maybe (String, String) findState sexpr = case sexpr of SList (SSymbol "API::SET-SENTENCE" : SSymbol nodeStr : SList (SSymbol "API::ASENTENCE" : SSymbol senStr : SSymbol "API::OBLIGATION" : SSymbol "API::PROVED" : _) : _) | isPrefixOf "API::" nodeStr && isPrefixOf "AP...
390
findState :: SExpr -> Maybe (String, String) findState sexpr = case sexpr of SList (SSymbol "API::SET-SENTENCE" : SSymbol nodeStr : SList (SSymbol "API::ASENTENCE" : SSymbol senStr : SSymbol "API::OBLIGATION" : SSymbol "API::PROVED" : _) : _) | isPrefixOf "API::" nodeStr && isPrefixOf "AP...
390
findState sexpr = case sexpr of SList (SSymbol "API::SET-SENTENCE" : SSymbol nodeStr : SList (SSymbol "API::ASENTENCE" : SSymbol senStr : SSymbol "API::OBLIGATION" : SSymbol "API::PROVED" : _) : _) | isPrefixOf "API::" nodeStr && isPrefixOf "API::" senStr -> Just (drop 5 nodeStr, drop...
345
false
true
0
19
91
145
66
79
null
null
GaloisInc/halvm-ghc
compiler/typecheck/TcType.hs
bsd-3-clause
getDFunTyKey (LitTy x) = getDFunTyLitKey x
56
getDFunTyKey (LitTy x) = getDFunTyLitKey x
56
getDFunTyKey (LitTy x) = getDFunTyLitKey x
56
false
false
0
7
19
18
8
10
null
null
nevrenato/HetsAlloy
Propositional/AS_BASIC_Propositional.der.hs
gpl-2.0
printSymbOrMap (Symb_map source dest _) = pretty source <+> mapsto <+> pretty dest
84
printSymbOrMap (Symb_map source dest _) = pretty source <+> mapsto <+> pretty dest
84
printSymbOrMap (Symb_map source dest _) = pretty source <+> mapsto <+> pretty dest
84
false
false
4
6
14
36
15
21
null
null
isovector/rocket-powered
src/Main.hs
bsd-2-clause
addStatus s = liftF $ AddStatus s ()
39
addStatus s = liftF $ AddStatus s ()
39
addStatus s = liftF $ AddStatus s ()
39
false
false
0
7
10
20
9
11
null
null
KiNaudiz/bachelor
CN/Tridiag.hs
gpl-3.0
diag (TDM (a,_,_)) (-1) = VV a
32
diag (TDM (a,_,_)) (-1) = VV a
32
diag (TDM (a,_,_)) (-1) = VV a
32
false
false
0
8
8
34
18
16
null
null
tsahyt/lmrbot
src/Commands/Crypto.hs
agpl-3.0
coinName BTG = "bitcoin-gold"
29
coinName BTG = "bitcoin-gold"
29
coinName BTG = "bitcoin-gold"
29
false
false
0
4
3
10
4
6
null
null
emaphis/Haskell-Practice
cis194/src/Week01/Lecture01.hs
bsd-3-clause
ex19 = 3 : (1 : [])
19
ex19 = 3 : (1 : [])
19
ex19 = 3 : (1 : [])
19
false
false
3
7
6
23
10
13
null
null
aaronc/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
mapPDeclFC f g (PInstance doc paramDocs syn fc constrs cn cnfc params instTy instN body) = PInstance doc paramDocs syn (f fc) (map (\(constrN, constrT) -> (constrN, mapPTermFC f g constrT)) constrs) cn (g cnfc) (map (mapPTermFC f g) params) (mapPTermFC f g instTy) ...
372
mapPDeclFC f g (PInstance doc paramDocs syn fc constrs cn cnfc params instTy instN body) = PInstance doc paramDocs syn (f fc) (map (\(constrN, constrT) -> (constrN, mapPTermFC f g constrT)) constrs) cn (g cnfc) (map (mapPTermFC f g) params) (mapPTermFC f g instTy) ...
372
mapPDeclFC f g (PInstance doc paramDocs syn fc constrs cn cnfc params instTy instN body) = PInstance doc paramDocs syn (f fc) (map (\(constrN, constrT) -> (constrN, mapPTermFC f g constrT)) constrs) cn (g cnfc) (map (mapPTermFC f g) params) (mapPTermFC f g instTy) ...
372
false
false
0
11
123
151
77
74
null
null
brendanhay/gogol
gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs
mpl-2.0
-- | Creates a value of 'InstructionOutput' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'ioOnlyCountValueBytes' -- -- * 'ioCodec' -- -- * 'ioName' -- -- * 'ioSystemName' -- -- * 'ioOriginalName' -- -- * 'ioOnlyCountKeyBytes' instru...
590
instructionOutput :: InstructionOutput instructionOutput = InstructionOutput' { _ioOnlyCountValueBytes = Nothing , _ioCodec = Nothing , _ioName = Nothing , _ioSystemName = Nothing , _ioOriginalName = Nothing , _ioOnlyCountKeyBytes = Nothing }
276
instructionOutput = InstructionOutput' { _ioOnlyCountValueBytes = Nothing , _ioCodec = Nothing , _ioName = Nothing , _ioSystemName = Nothing , _ioOriginalName = Nothing , _ioOnlyCountKeyBytes = Nothing }
233
true
true
0
6
118
64
46
18
null
null
nbloomf/shell.struct
src/ShellStack.hs
gpl-3.0
strictFileMap :: FilePath -> (String -> Maybe (a, String)) -> String -> IO a strictFileMap path f msg = do x <- S.readFile path let y = f x case y of Just (a,z) -> do writeFile path z return a Nothing -> do hPutStrLn stderr msg exitFailure
277
strictFileMap :: FilePath -> (String -> Maybe (a, String)) -> String -> IO a strictFileMap path f msg = do x <- S.readFile path let y = f x case y of Just (a,z) -> do writeFile path z return a Nothing -> do hPutStrLn stderr msg exitFailure
277
strictFileMap path f msg = do x <- S.readFile path let y = f x case y of Just (a,z) -> do writeFile path z return a Nothing -> do hPutStrLn stderr msg exitFailure
200
false
true
0
12
85
126
58
68
null
null
c19/Exercism-Haskell
etl/.stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/autogen/Paths_etl.hs
mit
datadir = "/Users/c19/Documents/projects/exercism/haskell/haskell/etl/.stack-work/install/x86_64-osx/lts-8.21/8.0.2/share/x86_64-osx-ghc-8.0.2/etl-1.0.0.3"
158
datadir = "/Users/c19/Documents/projects/exercism/haskell/haskell/etl/.stack-work/install/x86_64-osx/lts-8.21/8.0.2/share/x86_64-osx-ghc-8.0.2/etl-1.0.0.3"
158
datadir = "/Users/c19/Documents/projects/exercism/haskell/haskell/etl/.stack-work/install/x86_64-osx/lts-8.21/8.0.2/share/x86_64-osx-ghc-8.0.2/etl-1.0.0.3"
158
false
false
1
5
5
10
3
7
null
null
DavidAlphaFox/ghc
libraries/hoopl/src/Compiler/Hoopl/Graph.hs
bsd-3-clause
-- ----------------------------------------------------------------------------- -- Extracting Labels from graphs labelsDefined :: forall block n e x . NonLocal (block n) => Graph' block n e x -> LabelSet labelsDefined GNil = setEmpty
254
labelsDefined :: forall block n e x . NonLocal (block n) => Graph' block n e x -> LabelSet labelsDefined GNil = setEmpty
139
labelsDefined GNil = setEmpty
34
true
true
0
9
49
50
27
23
null
null
reuleaux/pire
src/Pire/Wrap.hs
bsd-3-clause
(Lam_ lamtok binder dot' sc) = Lam_ lamtok binder dot' $ abstract1 n $ wrap' $ splat (\x -> V x) (\() -> BndV n $ V n) sc where n = name' binder -- not for Lam'/Lams' -- don't want String wr
200
wrap' (Lam_ lamtok binder dot' sc) = Lam_ lamtok binder dot' $ abstract1 n $ wrap' $ splat (\x -> V x) (\() -> BndV n $ V n) sc where n = name' binder -- not for Lam'/Lams' -- don't want String
200
wrap' (Lam_ lamtok binder dot' sc) = Lam_ lamtok binder dot' $ abstract1 n $ wrap' $ splat (\x -> V x) (\() -> BndV n $ V n) sc where n = name' binder -- not for Lam'/Lams' -- don't want String
200
false
false
0
10
51
94
45
49
null
null
mono0926/ParallelConcurrentHaskell
fwaccel.hs
bsd-3-clause
test :: Bool test = toList (shortestPaths testGraph) == toList expectedResult
77
test :: Bool test = toList (shortestPaths testGraph) == toList expectedResult
77
test = toList (shortestPaths testGraph) == toList expectedResult
64
false
true
0
7
10
33
14
19
null
null
xldenis/xavio
src/PostsAPI.hs
bsd-3-clause
show :: PGS.Connection -> PostId -> Response Api.Show (Post Hask) show con id = do post <- liftIO . runQuery con $ findById id case post of [] -> throwError err404 (p:_) -> return $ T p
197
show :: PGS.Connection -> PostId -> Response Api.Show (Post Hask) show con id = do post <- liftIO . runQuery con $ findById id case post of [] -> throwError err404 (p:_) -> return $ T p
197
show con id = do post <- liftIO . runQuery con $ findById id case post of [] -> throwError err404 (p:_) -> return $ T p
131
false
true
0
11
48
98
46
52
null
null
danr/hipspec
src/HipSpec/Lang/PolyFOL.hs
gpl-3.0
clTyUniv :: Clause a b -> [Type a b] clTyUniv = universeBi
58
clTyUniv :: Clause a b -> [Type a b] clTyUniv = universeBi
58
clTyUniv = universeBi
21
false
true
0
7
11
28
14
14
null
null
mwotton/ctkl
src/Text/CTK/GetOpt.hs
bsd-3-clause
getNext a rest _ = (NonOpt a,rest)
52
getNext a rest _ = (NonOpt a,rest)
52
getNext a rest _ = (NonOpt a,rest)
52
false
false
0
6
24
22
11
11
null
null
danr/hipspec
tfp1/tests/SK.hs
gpl-3.0
sant = True
11
sant = True
11
sant = True
11
false
false
0
4
2
6
3
3
null
null
GaloisInc/halvm-ghc
compiler/basicTypes/Literal.hs
bsd-3-clause
litValue l = pprPanic "litValue" (ppr l)
40
litValue l = pprPanic "litValue" (ppr l)
40
litValue l = pprPanic "litValue" (ppr l)
40
false
false
1
7
6
23
9
14
null
null
brendanhay/gogol
gogol-pagespeed/gen/Network/Google/PageSpeed/Types/Product.hs
mpl-2.0
-- | The total duration of Lighthouse\'s run. tTotal :: Lens' Timing (Maybe Double) tTotal = lens _tTotal (\ s a -> s{_tTotal = a}) . mapping _Coerce
157
tTotal :: Lens' Timing (Maybe Double) tTotal = lens _tTotal (\ s a -> s{_tTotal = a}) . mapping _Coerce
111
tTotal = lens _tTotal (\ s a -> s{_tTotal = a}) . mapping _Coerce
73
true
true
2
9
35
62
28
34
null
null
mstksg/hledger
hledger-ui/Hledger/UI/AccountsScreen.hs
gpl-3.0
asDraw _ = error "draw function called with wrong screen type, should not happen"
81
asDraw _ = error "draw function called with wrong screen type, should not happen"
81
asDraw _ = error "draw function called with wrong screen type, should not happen"
81
false
false
0
5
13
12
5
7
null
null
tolysz/keter
Keter/Types/V04.hs
mit
fiveMinutes :: Int fiveMinutes = 5 * 60 * 1000
46
fiveMinutes :: Int fiveMinutes = 5 * 60 * 1000
46
fiveMinutes = 5 * 60 * 1000
27
false
true
0
6
9
19
10
9
null
null
hazel-el/hazel
Hazel/Parser/OWL/Functional.hs
gpl-3.0
objectHasValue :: Parser ClassExpression objectHasValue = bracketed "ObjectHasValue" $ ObjectHasValue <$> objectPropertyExpression <*> individual
194
objectHasValue :: Parser ClassExpression objectHasValue = bracketed "ObjectHasValue" $ ObjectHasValue <$> objectPropertyExpression <*> individual
194
objectHasValue = bracketed "ObjectHasValue" $ ObjectHasValue <$> objectPropertyExpression <*> individual
153
false
true
5
6
62
39
17
22
null
null
andreasbock/arxivd
src/Application/CommandLineParser.hs
mit
usageText :: Docopt usageText = [docoptFile|USAGE.docopt|]
58
usageText :: Docopt usageText = [docoptFile|USAGE.docopt|]
58
usageText = [docoptFile|USAGE.docopt|]
38
false
true
0
6
5
22
11
11
null
null
Taneb/webqueues
Main.hs
bsd-3-clause
main :: IO () main = do args <- getArgs let port = case args of [] -> 9123 [n] -> read n queuesRef <- newTVarIO M.empty scotty port $ do get "/:uuid" $ getAction queuesRef post "/:uuid" $ postAction queuesRef delete "/:uuid" $ deleteAction queuesRef
285
main :: IO () main = do args <- getArgs let port = case args of [] -> 9123 [n] -> read n queuesRef <- newTVarIO M.empty scotty port $ do get "/:uuid" $ getAction queuesRef post "/:uuid" $ postAction queuesRef delete "/:uuid" $ deleteAction queuesRef
285
main = do args <- getArgs let port = case args of [] -> 9123 [n] -> read n queuesRef <- newTVarIO M.empty scotty port $ do get "/:uuid" $ getAction queuesRef post "/:uuid" $ postAction queuesRef delete "/:uuid" $ deleteAction queuesRef
271
false
true
0
13
81
123
52
71
null
null
peterokagey/haskellOEIS
src/SubprimeFib/A214674.hs
apache-2.0
a214674_list :: [Integer] a214674_list = subprimeFib 1 1
56
a214674_list :: [Integer] a214674_list = subprimeFib 1 1
56
a214674_list = subprimeFib 1 1
30
false
true
0
5
7
19
10
9
null
null
DougBurke/swish
src/Swish/RDF/Formatter/N3.hs
lgpl-2.1
formatLabel _ lab = return $ B.fromString $ show lab
52
formatLabel _ lab = return $ B.fromString $ show lab
52
formatLabel _ lab = return $ B.fromString $ show lab
52
false
false
0
7
9
24
11
13
null
null
kosmoskatten/hats
src/Network/Nats/Message/Parser.hs
mit
boolean :: Parser Bool boolean = string "false" *> return False <|> string "true" *> return True
96
boolean :: Parser Bool boolean = string "false" *> return False <|> string "true" *> return True
96
boolean = string "false" *> return False <|> string "true" *> return True
73
false
true
2
7
16
45
19
26
null
null
oisdk/constrained-monads
bench/Prob.hs
mit
scaled :: Prob a -> Double -> Prob a scaled (Prob xs) n = Prob (Map.map (n*) xs)
80
scaled :: Prob a -> Double -> Prob a scaled (Prob xs) n = Prob (Map.map (n*) xs)
80
scaled (Prob xs) n = Prob (Map.map (n*) xs)
43
false
true
0
8
17
53
26
27
null
null
ndmitchell/nsis
src/Development/NSIS/Plugins/WinMessages.hs
bsd-3-clause
wm_MENURBUTTONUP = 0x0122
40
wm_MENURBUTTONUP = 0x0122
40
wm_MENURBUTTONUP = 0x0122
40
false
false
0
4
17
6
3
3
null
null
spinda/liquidhaskell
src/Language/Haskell/Liquid/Spec/Reify.hs
bsd-3-clause
splitTupleRTy t = [t]
21
splitTupleRTy t = [t]
21
splitTupleRTy t = [t]
21
false
false
0
5
3
12
6
6
null
null
Catchouli/snailgas
src/Snailgas.hs
bsd-3-clause
getImageSize :: String -> IO (Int) getImageSize path = do eitherImgErr <- readImage path case eitherImgErr of Left err -> putStrLn ("Error leading image " ++ path ++ ": " ++ err) >> return 0 Right img -> return $ dynamicMap imageHeight img -- | Sort a list of images by size
294
getImageSize :: String -> IO (Int) getImageSize path = do eitherImgErr <- readImage path case eitherImgErr of Left err -> putStrLn ("Error leading image " ++ path ++ ": " ++ err) >> return 0 Right img -> return $ dynamicMap imageHeight img -- | Sort a list of images by size
294
getImageSize path = do eitherImgErr <- readImage path case eitherImgErr of Left err -> putStrLn ("Error leading image " ++ path ++ ": " ++ err) >> return 0 Right img -> return $ dynamicMap imageHeight img -- | Sort a list of images by size
259
false
true
0
15
71
94
44
50
null
null
pikajude/haspell
Language/Aspell.hs
mit
strEnumToList :: CStringEnumeration -> IO [ByteString] strEnumToList enum = go enum where go e = do nw <- aspell_string_enumeration_next enum if nw == nullPtr then return [] else do curWord <- packCString nw next <- go e ...
357
strEnumToList :: CStringEnumeration -> IO [ByteString] strEnumToList enum = go enum where go e = do nw <- aspell_string_enumeration_next enum if nw == nullPtr then return [] else do curWord <- packCString nw next <- go e ...
357
strEnumToList enum = go enum where go e = do nw <- aspell_string_enumeration_next enum if nw == nullPtr then return [] else do curWord <- packCString nw next <- go e return $ curWord:next
302
false
true
0
11
154
98
45
53
null
null
diegomachadosoares/hcomp
HelperTools.hs
gpl-3.0
rev1 (x:xs) = reverse xs ++ [x]
31
rev1 (x:xs) = reverse xs ++ [x]
31
rev1 (x:xs) = reverse xs ++ [x]
31
false
false
0
7
6
26
13
13
null
null
bairyn/bitmaps
src/Data/Bitmap/Pixel.hs
bsd-3-clause
toGenPixelRGB :: GenPixel -> GenPixel toGenPixelRGB b@(GenPixelRGB _) = b
76
toGenPixelRGB :: GenPixel -> GenPixel toGenPixelRGB b@(GenPixelRGB _) = b
76
toGenPixelRGB b@(GenPixelRGB _) = b
37
false
true
0
8
12
27
14
13
null
null