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
Rydgel/advent-of-code-2016
src/Day2.hs
bsd-3-clause
parseDirections :: Parser [Direction] parseDirections = many1 parseDirection
76
parseDirections :: Parser [Direction] parseDirections = many1 parseDirection
76
parseDirections = many1 parseDirection
38
false
true
0
6
7
20
10
10
null
null
alexander-at-github/eta
compiler/ETA/Prelude/PrimOp.hs
bsd-3-clause
tagOf_PrimOp WordMulOp = _ILIT(40)
34
tagOf_PrimOp WordMulOp = _ILIT(40)
34
tagOf_PrimOp WordMulOp = _ILIT(40)
34
false
false
0
6
3
15
7
8
null
null
input-output-hk/pos-haskell-prototype
wallet/test/unit/Util/Histogram.hs
mit
-- | Sum across all bins add :: Histogram -> Histogram -> Histogram add = unionWith (+)
87
add :: Histogram -> Histogram -> Histogram add = unionWith (+)
62
add = unionWith (+)
19
true
true
0
8
16
31
15
16
null
null
randalloveson/dotfiles
xmonad/.xmonad/xmonad.hs
mit
myFocusedBorderColor = colorBorder'
35
myFocusedBorderColor = colorBorder'
35
myFocusedBorderColor = colorBorder'
35
false
false
0
4
2
6
3
3
null
null
YoEight/eventstore
Database/EventStore/Internal/Types.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | Create an 'Event' meant to be persisted. createEvent :: EventType -- ^ Event type -> Maybe UUID -- ^ Event ID, generated if 'Nothing' -> EventData -- ^ Event data -> Event createEvent = Event
315
createEvent :: EventType -- ^ Event type -> Maybe UUID -- ^ Event ID, generated if 'Nothing' -> EventData -- ^ Event data -> Event createEvent = Event
188
createEvent = Event
19
true
true
0
7
75
31
18
13
null
null
shlevy/ghc
compiler/coreSyn/CoreSyn.hs
bsd-3-clause
mkLets binds body = foldr mkLet body binds
44
mkLets binds body = foldr mkLet body binds
44
mkLets binds body = foldr mkLet body binds
44
false
false
0
5
9
18
8
10
null
null
nevrenato/HetsAlloy
Propositional/Morphism.hs
gpl-2.0
-- | Composition of morphisms in propositional Logic composeMor :: Morphism -> Morphism -> Result Morphism composeMor f g = let fSource = source f gTarget = target g fMap = propMap f gMap = propMap g in return Morphism { source = fSource , target = gTarget , propMap = if Map.null gMap then f...
520
composeMor :: Morphism -> Morphism -> Result Morphism composeMor f g = let fSource = source f gTarget = target g fMap = propMap f gMap = propMap g in return Morphism { source = fSource , target = gTarget , propMap = if Map.null gMap then fMap else Set.fold ( \ i -> let j = applyMap gMa...
467
composeMor f g = let fSource = source f gTarget = target g fMap = propMap f gMap = propMap g in return Morphism { source = fSource , target = gTarget , propMap = if Map.null gMap then fMap else Set.fold ( \ i -> let j = applyMap gMap (applyMap fMap i) in if i ==...
413
true
true
0
19
177
173
87
86
null
null
tjakway/ghcjvm
compiler/prelude/THNames.hs
bsd-3-clause
-- data AnnTarget = ... valueAnnotationIdKey, typeAnnotationIdKey, moduleAnnotationIdKey :: Unique valueAnnotationIdKey = mkPreludeMiscIdUnique 490
148
valueAnnotationIdKey, typeAnnotationIdKey, moduleAnnotationIdKey :: Unique valueAnnotationIdKey = mkPreludeMiscIdUnique 490
124
valueAnnotationIdKey = mkPreludeMiscIdUnique 490
49
true
true
0
5
14
19
12
7
null
null
nevrenato/Hets_Fork
Common/MathLink.hs
gpl-2.0
dfEVALUATEPKT = 13
18
dfEVALUATEPKT = 13
18
dfEVALUATEPKT = 13
18
false
false
1
5
2
10
3
7
null
null
peter-fogg/pardoc
src/Text/Pandoc/Readers/LaTeX.hs
gpl-2.0
grave 'E' = "È"
15
grave 'E' = "È"
15
grave 'E' = "È"
15
false
false
0
5
3
9
4
5
null
null
abakst/liquidhaskell
benchmarks/bytestring-0.9.2.1/Data/ByteString.T.hs
bsd-3-clause
-- | 'scanl1' is a variant of 'scanl' that has no starting value argument. -- This function will fuse. -- -- > scanl1 f [x1, x2, ...] == [x1, x1 `f` x2, ...] {-@ scanl1 :: (Word8 -> Word8 -> Word8) -> b:ByteStringNE -> (ByteStringSZ b) @-} scanl1 :: (Word8 -> Word8 -> Word8) -> ByteString -> ByteString scanl1 f ps ...
397
scanl1 :: (Word8 -> Word8 -> Word8) -> ByteString -> ByteString scanl1 f ps | null ps = empty | otherwise = scanl f (unsafeHead ps) (unsafeTail ps)
157
scanl1 f ps | null ps = empty | otherwise = scanl f (unsafeHead ps) (unsafeTail ps)
93
true
true
0
9
84
86
41
45
null
null
jbaum98/graphics
app/Main.hs
bsd-3-clause
execScript :: FilePath -> Bool -> IO () execScript path verbose = do s <- B.readFile path let !ast = parseStr s when verbose $ mapM_ print ast execute ast
158
execScript :: FilePath -> Bool -> IO () execScript path verbose = do s <- B.readFile path let !ast = parseStr s when verbose $ mapM_ print ast execute ast
158
execScript path verbose = do s <- B.readFile path let !ast = parseStr s when verbose $ mapM_ print ast execute ast
118
false
true
0
11
33
81
33
48
null
null
harendra-kumar/asyncly
src/Streamly/Internal/Data/Fold.hs
bsd-3-clause
mkPure :: Monad m => (s -> a -> s) -> s -> (s -> b) -> Fold m a b mkPure step initial extract = Fold (\s a -> return $ step s a) (return initial) (return . extract)
168
mkPure :: Monad m => (s -> a -> s) -> s -> (s -> b) -> Fold m a b mkPure step initial extract = Fold (\s a -> return $ step s a) (return initial) (return . extract)
168
mkPure step initial extract = Fold (\s a -> return $ step s a) (return initial) (return . extract)
102
false
true
0
11
43
106
52
54
null
null
keithodulaigh/Hets
Proofs/Composition.hs
gpl-2.0
compositionCreatingEdgesFromList :: LibName -> [LEdge DGLinkLab] -> LibEnv -> LibEnv compositionCreatingEdgesFromList libname ls proofStatus = let dgraph = lookupDGraph libname proofStatus pathsToCompose = filter ((> 1) . length) $ getAllPathsOfTypeFromGoal...
468
compositionCreatingEdgesFromList :: LibName -> [LEdge DGLinkLab] -> LibEnv -> LibEnv compositionCreatingEdgesFromList libname ls proofStatus = let dgraph = lookupDGraph libname proofStatus pathsToCompose = filter ((> 1) . length) $ getAllPathsOfTypeFromGoal...
468
compositionCreatingEdgesFromList libname ls proofStatus = let dgraph = lookupDGraph libname proofStatus pathsToCompose = filter ((> 1) . length) $ getAllPathsOfTypeFromGoalList dgraph isGlobalThm ls newDGraph = compositionCreatingEdgesAux dgraph pathsToCompose in Map.insert...
350
false
true
0
13
121
101
50
51
null
null
sopvop/snap
src/Snap/Snaplet/Heist.hs
bsd-3-clause
------------------------------------------------------------------------------ -- | Analogous to 'fileServeSingle'. If the given template is not found, -- this throws an error. cHeistServeSingle :: HasHeist b => ByteString -- ^ Template name -> Handler b v () cHeis...
387
cHeistServeSingle :: HasHeist b => ByteString -- ^ Template name -> Handler b v () cHeistServeSingle t = withTop' heistLens (Unclassed.cHeistServeSingle t)
210
cHeistServeSingle t = withTop' heistLens (Unclassed.cHeistServeSingle t)
72
true
true
0
8
94
51
26
25
null
null
green-haskell/ghc
compiler/cmm/CmmExpr.hs
bsd-3-clause
-- an address -- Careful though: what is stored at the stack slot may be bigger than -- an address cmmLitType :: DynFlags -> CmmLit -> CmmType cmmLitType _ (CmmInt _ width) = cmmBits width
199
cmmLitType :: DynFlags -> CmmLit -> CmmType cmmLitType _ (CmmInt _ width) = cmmBits width
99
cmmLitType _ (CmmInt _ width) = cmmBits width
55
true
true
0
7
45
38
20
18
null
null
uuhan/Idris-dev
src/Idris/IdrisDoc.hs
bsd-3-clause
-- ---------------------------------------------------------------- [ Public ] -- | Generates HTML documentation for a series of loaded namespaces -- and their dependencies. generateDocs :: IState -- ^ IState where all necessary information is -- extracted from. -> [Name] ...
1,268
generateDocs :: IState -- ^ IState where all necessary information is -- extracted from. -> [Name] -- ^ List of namespaces to generate -- documentation for. -> FilePath -- ^ The directory to which documentation will ...
1,091
generateDocs ist nss' out = do let nss = map toNsName nss' docs <- fetchInfo ist nss let (c, io) = foldl (checker docs) (0, return ()) nss io if c < length nss then catchIOError (createDocs ist docs out) (err . show) else err "No namespaces to generate documentation for" ...
711
true
true
2
13
396
265
134
131
null
null
ezyang/ghc
compiler/prelude/THNames.hs
bsd-3-clause
unboxedSumTName = libFun (fsLit "unboxedSumT") unboxedSumTIdKey
70
unboxedSumTName = libFun (fsLit "unboxedSumT") unboxedSumTIdKey
70
unboxedSumTName = libFun (fsLit "unboxedSumT") unboxedSumTIdKey
70
false
false
0
7
12
17
8
9
null
null
stgm/prac-testing
week5/Week5Sol_Q3_NRC.hs
mit
example1 :: Grid example1 = [[5,3,0,0,7,0,0,0,0], [6,0,0,1,9,5,0,0,0], [0,9,8,0,0,0,0,6,0], [8,0,0,0,6,0,0,0,3], [4,0,0,8,0,3,0,0,1], [7,0,0,0,2,0,0,0,6], [0,6,0,0,0,0,2,8,0], [0,0,0,4,1,9,0,0,5], [0,0,0,0,8,0,0,7,9]]
313
example1 :: Grid example1 = [[5,3,0,0,7,0,0,0,0], [6,0,0,1,9,5,0,0,0], [0,9,8,0,0,0,0,6,0], [8,0,0,0,6,0,0,0,3], [4,0,0,8,0,3,0,0,1], [7,0,0,0,2,0,0,0,6], [0,6,0,0,0,0,2,8,0], [0,0,0,4,1,9,0,0,5], [0,0,0,0,8,0,0,7,9]]
313
example1 = [[5,3,0,0,7,0,0,0,0], [6,0,0,1,9,5,0,0,0], [0,9,8,0,0,0,0,6,0], [8,0,0,0,6,0,0,0,3], [4,0,0,8,0,3,0,0,1], [7,0,0,0,2,0,0,0,6], [0,6,0,0,0,0,2,8,0], [0,0,0,4,1,9,0,0,5], [0,0,0,0,8,0,0,7,9]]
296
false
true
0
7
109
288
187
101
null
null
martine/gat
Commit_test.hs
gpl-2.0
testSearchBS :: Test testSearchBS = test $ do let str = makeBS "foo\nbar\nbaz\n\nnewlines\n" let (Just ofs) = searchBS (makeBS "\n\n") str assertEqual "found double-nl" (makeBS "\n\nnewlines\n") (B.drop ofs str)
221
testSearchBS :: Test testSearchBS = test $ do let str = makeBS "foo\nbar\nbaz\n\nnewlines\n" let (Just ofs) = searchBS (makeBS "\n\n") str assertEqual "found double-nl" (makeBS "\n\nnewlines\n") (B.drop ofs str)
221
testSearchBS = test $ do let str = makeBS "foo\nbar\nbaz\n\nnewlines\n" let (Just ofs) = searchBS (makeBS "\n\n") str assertEqual "found double-nl" (makeBS "\n\nnewlines\n") (B.drop ofs str)
200
false
true
2
13
38
88
38
50
null
null
scsibug/hbeanstalk
Network/Beanstalk.hs
bsd-3-clause
foundIdLenParser :: Parser (Int, Int) foundIdLenParser = P.string "FOUND " *> ((,) <$> P8.decimal <* P8.space <*> P8.decimal)
125
foundIdLenParser :: Parser (Int, Int) foundIdLenParser = P.string "FOUND " *> ((,) <$> P8.decimal <* P8.space <*> P8.decimal)
125
foundIdLenParser = P.string "FOUND " *> ((,) <$> P8.decimal <* P8.space <*> P8.decimal)
87
false
true
0
10
17
53
28
25
null
null
egison/egison
hs-src/Language/Egison/Desugar.hs
mit
transVarIndex (VMultiSuperscript x s e) = [MultiSup (Just (stringToVar x)) s (Just (stringToVar e))]
100
transVarIndex (VMultiSuperscript x s e) = [MultiSup (Just (stringToVar x)) s (Just (stringToVar e))]
100
transVarIndex (VMultiSuperscript x s e) = [MultiSup (Just (stringToVar x)) s (Just (stringToVar e))]
100
false
false
0
10
13
53
26
27
null
null
ftomassetti/hplatetectonics
src/PlatesGeneration.hs
apache-2.0
hbMapHeight :: HB.HeightMap (HB.Point Float) -> Int hbMapHeight hbMap = L.length $ L.nub $ L.map HB.getY points where points = R.toList hbMap
161
hbMapHeight :: HB.HeightMap (HB.Point Float) -> Int hbMapHeight hbMap = L.length $ L.nub $ L.map HB.getY points where points = R.toList hbMap
161
hbMapHeight hbMap = L.length $ L.nub $ L.map HB.getY points where points = R.toList hbMap
109
false
true
0
9
41
67
32
35
null
null
brendanhay/gogol
gogol-adexchangebuyer2/gen/Network/Google/AdExchangeBuyer2/Types/Product.hs
mpl-2.0
-- | An open-ended realtime time range, defined by the aggregation start -- timestamp. fsRealtimeTimeRange :: Lens' FilterSet (Maybe RealtimeTimeRange) fsRealtimeTimeRange = lens _fsRealtimeTimeRange (\ s a -> s{_fsRealtimeTimeRange = a})
246
fsRealtimeTimeRange :: Lens' FilterSet (Maybe RealtimeTimeRange) fsRealtimeTimeRange = lens _fsRealtimeTimeRange (\ s a -> s{_fsRealtimeTimeRange = a})
159
fsRealtimeTimeRange = lens _fsRealtimeTimeRange (\ s a -> s{_fsRealtimeTimeRange = a})
94
true
true
2
9
38
56
26
30
null
null
ajnsit/glambda
src/Language/Glambda/Globals.hs
bsd-3-clause
-- | An empty global variable environment emptyGlobals :: Globals emptyGlobals = Globals Map.empty
98
emptyGlobals :: Globals emptyGlobals = Globals Map.empty
56
emptyGlobals = Globals Map.empty
32
true
true
0
6
13
24
10
14
null
null
fryguybob/LaTeXGrapher
tests/ExpressionTests.hs
bsd-3-clause
func = "g(x)=x|x<-3\n"
22
func = "g(x)=x|x<-3\n"
22
func = "g(x)=x|x<-3\n"
22
false
false
1
5
2
10
3
7
null
null
DavidAlphaFox/ghc
libraries/haskeline/System/Console/Haskeline/LineState.hs
bsd-3-clause
atEnd _ _ = False
17
atEnd _ _ = False
17
atEnd _ _ = False
17
false
false
1
5
4
12
5
7
null
null
sol/aeson
benchmarks/AesonMap.hs
bsd-3-clause
benchDecodeMap :: String -> LBS.ByteString -> Benchmark benchDecodeMap name val = bgroup name [ bench "Text" $ nf (decodeMap proxyText) val , bench "Identity" $ nf (decodeMap proxyT1) val , bench "Coerce" $ nf (decodeMap proxyT2) val , bench "Parser" $...
355
benchDecodeMap :: String -> LBS.ByteString -> Benchmark benchDecodeMap name val = bgroup name [ bench "Text" $ nf (decodeMap proxyText) val , bench "Identity" $ nf (decodeMap proxyT1) val , bench "Coerce" $ nf (decodeMap proxyT2) val , bench "Parser" $...
355
benchDecodeMap name val = bgroup name [ bench "Text" $ nf (decodeMap proxyText) val , bench "Identity" $ nf (decodeMap proxyT1) val , bench "Coerce" $ nf (decodeMap proxyT2) val , bench "Parser" $ nf (decodeMap proxyT3) val ]
287
false
true
0
10
119
122
56
66
null
null
eddywestbrook/hobbits
src/Data/Binding/Hobbits/NuMatching.hs
bsd-3-clause
{-| Just like 'mapNamesPf', except uses the NuMatching class. -} mapNames :: NuMatching a => NameRefresher -> a -> a mapNames = mapNamesPf nuMatchingProof
154
mapNames :: NuMatching a => NameRefresher -> a -> a mapNames = mapNamesPf nuMatchingProof
89
mapNames = mapNamesPf nuMatchingProof
37
true
true
0
9
23
37
16
21
null
null
HairyDude/heal
EveApi/Types.hs
bsd-2-clause
typeString ABool = "bool"
31
typeString ABool = "bool"
31
typeString ABool = "bool"
31
false
false
1
5
9
13
4
9
null
null
blanu/arbre
bin/test.hs
gpl-2.0
testOr3 = modul [ Def "main" (Call (env "or") [false, false]) ]
69
testOr3 = modul [ Def "main" (Call (env "or") [false, false]) ]
69
testOr3 = modul [ Def "main" (Call (env "or") [false, false]) ]
69
false
false
0
11
17
37
19
18
null
null
brow/noise
tests/Text/Noise/Parser/Test.hs
mit
range :: Int -> Int -> SourceRange range = oneLineRange ""
58
range :: Int -> Int -> SourceRange range = oneLineRange ""
58
range = oneLineRange ""
23
false
true
0
6
10
22
11
11
null
null
cirquit/Personal-Repository
Haskell/freemonad/bf-interpreter/src/BFInterpreter.hs
mit
moveR :: BFF () moveR = liftF $ MoveRight ()
44
moveR :: BFF () moveR = liftF $ MoveRight ()
44
moveR = liftF $ MoveRight ()
28
false
true
1
7
9
28
12
16
null
null
siddhanathan/yi
yi-keymap-vim/src/Yi/Keymap/Vim/StateUtils.hs
gpl-2.0
resetCount :: VimState -> VimState resetCount s = s { vsCount = Nothing }
73
resetCount :: VimState -> VimState resetCount s = s { vsCount = Nothing }
73
resetCount s = s { vsCount = Nothing }
38
false
true
0
6
13
26
14
12
null
null
markus-git/imperative-edsl-vhdl
src/Language/Embedded/Hardware/Expression/Represent/Bit.hs
bsd-3-clause
bitMinBound :: Bits n bitMinBound = B 0
39
bitMinBound :: Bits n bitMinBound = B 0
39
bitMinBound = B 0
17
false
true
0
5
7
17
8
9
null
null
spechub/Hets
Common/XmlPickler.hs
gpl-2.0
-- | unpickles last element first puList :: PU a b -> PU [a] [b] puList pab = PU { pickle = map (pickle pab) , unpickle = foldr (joinResultWith (:) . unpickle pab) $ return [] }
183
puList :: PU a b -> PU [a] [b] puList pab = PU { pickle = map (pickle pab) , unpickle = foldr (joinResultWith (:) . unpickle pab) $ return [] }
149
puList pab = PU { pickle = map (pickle pab) , unpickle = foldr (joinResultWith (:) . unpickle pab) $ return [] }
118
true
true
0
12
43
89
45
44
null
null
dagit/hs6502
src/Emulator/Instructions.hs
bsd-3-clause
modifyOperand SP op = do sp <- getReg rSP sp' <- op sp setSP sp'
80
modifyOperand SP op = do sp <- getReg rSP sp' <- op sp setSP sp'
80
modifyOperand SP op = do sp <- getReg rSP sp' <- op sp setSP sp'
80
false
false
0
8
30
39
15
24
null
null
andorp/hs-bluesnap
src/Bluesnap/API/Request.hs
gpl-3.0
elementBank_name :: XMLParser Xsd.XsdString elementBank_name = parseSchemaType "bank-name"
90
elementBank_name :: XMLParser Xsd.XsdString elementBank_name = parseSchemaType "bank-name"
90
elementBank_name = parseSchemaType "bank-name"
46
false
true
0
6
7
19
9
10
null
null
GaloisInc/saw-script
saw-core-what4/src/Verifier/SAW/Simulator/What4.hs
bsd-3-clause
intToNatOp :: forall sym. Sym sym => sym -> SPrim sym intToNatOp sym = Prims.intFun $ \i -> Prims.Prim $ case W.asInteger i of Just i' | 0 <= i' -> pure (VNat (fromInteger i')) | otherwise -> pure (VNat 0) Nothing -> do z <- W.intLit sym 0 pneg <- W.intLt sym i z...
439
intToNatOp :: forall sym. Sym sym => sym -> SPrim sym intToNatOp sym = Prims.intFun $ \i -> Prims.Prim $ case W.asInteger i of Just i' | 0 <= i' -> pure (VNat (fromInteger i')) | otherwise -> pure (VNat 0) Nothing -> do z <- W.intLit sym 0 pneg <- W.intLt sym i z...
439
intToNatOp sym = Prims.intFun $ \i -> Prims.Prim $ case W.asInteger i of Just i' | 0 <= i' -> pure (VNat (fromInteger i')) | otherwise -> pure (VNat 0) Nothing -> do z <- W.intLit sym 0 pneg <- W.intLt sym i z i' <- W.intIte sym pneg z i pur...
385
false
true
4
15
152
191
86
105
null
null
xmonad/xmonad-contrib
XMonad/Layout/MosaicAlt.hs
bsd-3-clause
expandWindowAlt = ExpandWindowAlt
33
expandWindowAlt = ExpandWindowAlt
33
expandWindowAlt = ExpandWindowAlt
33
false
false
0
4
2
6
3
3
null
null
jameseb7/haskell-roguelike
HaskellRoguelike/State.hs
bsd-3-clause
runRoguelikeM :: RoguelikeM s a -> s -> RLState -> StdGen -> (a, s, RLState, StdGen, [RLDisplayAction]) runRoguelikeM f s rls g = (a, s', rls', g', w) where ((((a, s'), rls'), g'), w) = runWriter (runRandT (runStateT (runStateT f s) rls) g)
302
runRoguelikeM :: RoguelikeM s a -> s -> RLState -> StdGen -> (a, s, RLState, StdGen, [RLDisplayAction]) runRoguelikeM f s rls g = (a, s', rls', g', w) where ((((a, s'), rls'), g'), w) = runWriter (runRandT (runStateT (runStateT f s) rls) g)
298
runRoguelikeM f s rls g = (a, s', rls', g', w) where ((((a, s'), rls'), g'), w) = runWriter (runRandT (runStateT (runStateT f s) rls) g)
163
false
true
0
13
104
133
75
58
null
null
ulrikrasmussen/BoxProver
src/RenderData.hs
mit
renderFragment (VarIntroduction _ _) = throwError "Cannot export variable introduction"
87
renderFragment (VarIntroduction _ _) = throwError "Cannot export variable introduction"
87
renderFragment (VarIntroduction _ _) = throwError "Cannot export variable introduction"
87
false
false
0
6
9
21
9
12
null
null
yiannist/ganeti
src/Ganeti/UDSServer.hs
bsd-2-clause
recvMsgExt :: Client -> IO RecvResult recvMsgExt s = Control.Exception.catch (liftM RecvOk (recvMsg s)) $ \e -> return $ if isEOFError e then RecvConnClosed else RecvError (show e)
216
recvMsgExt :: Client -> IO RecvResult recvMsgExt s = Control.Exception.catch (liftM RecvOk (recvMsg s)) $ \e -> return $ if isEOFError e then RecvConnClosed else RecvError (show e)
216
recvMsgExt s = Control.Exception.catch (liftM RecvOk (recvMsg s)) $ \e -> return $ if isEOFError e then RecvConnClosed else RecvError (show e)
178
false
true
0
11
63
74
37
37
null
null
gambogi/csh-eval
src/CSH/Eval/Cacheable/Fetch.hs
mit
memberStatusFromVal "alumni_bad" = AlumniBad
46
memberStatusFromVal "alumni_bad" = AlumniBad
46
memberStatusFromVal "alumni_bad" = AlumniBad
46
false
false
0
5
5
9
4
5
null
null
mainland/dph
dph-lifted-vseg/examples/Test.hs
bsd-3-clause
ex_1 = replicatePR 10 (5 :: Int)
32
ex_1 = replicatePR 10 (5 :: Int)
32
ex_1 = replicatePR 10 (5 :: Int)
32
false
false
0
6
6
17
9
8
null
null
siddhanathan/ghc
compiler/basicTypes/IdInfo.hs
bsd-3-clause
ppArityInfo :: Int -> SDoc ppArityInfo 0 = empty
48
ppArityInfo :: Int -> SDoc ppArityInfo 0 = empty
48
ppArityInfo 0 = empty
21
false
true
0
5
8
18
9
9
null
null
ooz/Hafer
src/Hafer/Import/ClassDiagram/ClassDiagramParser.hs
mit
visibility :: Parser Char Visibility visibility = option VisDefault $ do expect '-'; return VisPrivate <|> do expect '~'; return VisPackage <|> do expect '+'; return VisPublic
272
visibility :: Parser Char Visibility visibility = option VisDefault $ do expect '-'; return VisPrivate <|> do expect '~'; return VisPackage <|> do expect '+'; return VisPublic
272
visibility = option VisDefault $ do expect '-'; return VisPrivate <|> do expect '~'; return VisPackage <|> do expect '+'; return VisPublic
235
false
true
0
10
123
70
30
40
null
null
mightymoose/liquidhaskell
benchmarks/xmonad-0.10/XMonad/Core.hs
bsd-3-clause
-- | 'recompile force', recompile @~\/.xmonad\/xmonad.hs@ when any of the -- following apply: -- -- * force is 'True' -- -- * the xmonad executable does not exist -- -- * the xmonad executable is older than xmonad.hs or any file in -- ~\/.xmonad\/lib -- -- The -i flag is used to restrict recompila...
2,742
recompile :: MonadIO m => Bool -> m Bool recompile force = io $ do dir <- getXMonadDir let binn = "xmonad-"++arch++"-"++os bin = dir </> binn base = dir </> "xmonad" err = base ++ ".errors" src = base ++ ".hs" lib = dir </> "lib" libTs <- mapM getModTime . Prelude...
2,097
recompile force = io $ do dir <- getXMonadDir let binn = "xmonad-"++arch++"-"++os bin = dir </> binn base = dir </> "xmonad" err = base ++ ".errors" src = base ++ ".hs" lib = dir </> "lib" libTs <- mapM getModTime . Prelude.filter isSource =<< allFiles lib src...
2,056
true
true
2
22
804
621
323
298
null
null
josuf107/Adverb
Adverb/Common.hs
gpl-3.0
facilely = id
13
facilely = id
13
facilely = id
13
false
false
0
4
2
6
3
3
null
null
Crossroadsman/ProgrammingInHaskell
05/pairs.hs
apache-2.0
-- pairs [1,2,3,4] -> [(1,2),(2,3),(3,4)] pairs :: [a] -> [(a, a)] pairs xs = zip xs (tail xs)
102
pairs :: [a] -> [(a, a)] pairs xs = zip xs (tail xs)
52
pairs xs = zip xs (tail xs)
27
true
true
0
9
25
48
24
24
null
null
nbloomf/carl
test/Tests/Util.hs
gpl-3.0
isLDistributiveOverBy :: (a -> a -> Either err a) -> (a -> a -> Either err a) -> (a -> a -> Either err Bool) -> (a,a,a) -> Bool isLDistributiveOverBy op up eq (x,y,z) = checkEither foo where foo = do t <- (x `op`) =<< (y `up` z) u <- join $ liftM2 up (x `op` y) (x `op` z) t `eq` u
311
isLDistributiveOverBy :: (a -> a -> Either err a) -> (a -> a -> Either err a) -> (a -> a -> Either err Bool) -> (a,a,a) -> Bool isLDistributiveOverBy op up eq (x,y,z) = checkEither foo where foo = do t <- (x `op`) =<< (y `up` z) u <- join $ liftM2 up (x `op` y) (x `op` z) t `eq` u
311
isLDistributiveOverBy op up eq (x,y,z) = checkEither foo where foo = do t <- (x `op`) =<< (y `up` z) u <- join $ liftM2 up (x `op` y) (x `op` z) t `eq` u
177
false
true
1
12
93
193
101
92
null
null
BartAdv/Idris-dev
src/Idris/IdeMode.hs
bsd-3-clause
sexpToCommand (SexpList [SymbolAtom "elaborate-term", StringAtom encoded]) = let (bnd, tm) = decodeTerm encoded in Just (TermElab bnd tm)
240
sexpToCommand (SexpList [SymbolAtom "elaborate-term", StringAtom encoded]) = let (bnd, tm) = decodeTerm encoded in Just (TermElab bnd tm)
240
sexpToCommand (SexpList [SymbolAtom "elaborate-term", StringAtom encoded]) = let (bnd, tm) = decodeTerm encoded in Just (TermElab bnd tm)
240
false
false
0
9
120
60
28
32
null
null
fmapfmapfmap/amazonka
amazonka-emr/gen/Network/AWS/EMR/Types/Product.hs
mpl-2.0
-- | The creation date and time of the cluster. ctCreationDateTime :: Lens' ClusterTimeline (Maybe UTCTime) ctCreationDateTime = lens _ctCreationDateTime (\ s a -> s{_ctCreationDateTime = a}) . mapping _Time
207
ctCreationDateTime :: Lens' ClusterTimeline (Maybe UTCTime) ctCreationDateTime = lens _ctCreationDateTime (\ s a -> s{_ctCreationDateTime = a}) . mapping _Time
159
ctCreationDateTime = lens _ctCreationDateTime (\ s a -> s{_ctCreationDateTime = a}) . mapping _Time
99
true
true
1
10
29
58
28
30
null
null
sgillespie/lambda-calculus
src/Language/SystemF/Expression.hs
mit
pprTy pdoc _ (TyForAll n t) = pprTyForAll pdoc n t
55
pprTy pdoc _ (TyForAll n t) = pprTyForAll pdoc n t
55
pprTy pdoc _ (TyForAll n t) = pprTyForAll pdoc n t
55
false
false
1
6
15
34
13
21
null
null
gcross/PauliQSC
Data/Quantum/Small/Operator/ReducedEschelonForm.hs
bsd-2-clause
constructReducedEschelonForm :: [Operator] → ReducedEschelonForm -- {{{ constructReducedEschelonForm = flip addAllToReducedEschelonForm mempty
142
constructReducedEschelonForm :: [Operator] → ReducedEschelonForm constructReducedEschelonForm = flip addAllToReducedEschelonForm mempty
135
constructReducedEschelonForm = flip addAllToReducedEschelonForm mempty
70
true
true
0
6
11
24
13
11
null
null
j1r1k/portager
src/Portager/Flatten.hs
bsd-3-clause
-- |Merges two sets together, performing 'sconcat' on elements that are determined to be equal by result -- of a function given in argument. merge :: (Ord a, Semigroup a, Eq b) => (a -> b) -> Set a -> Set a -> Set a merge get lefts rights = Set.fromList $ map sconcat $ mapMaybe nonEmpty $ List.groupBy (\a...
403
merge :: (Ord a, Semigroup a, Eq b) => (a -> b) -> Set a -> Set a -> Set a merge get lefts rights = Set.fromList $ map sconcat $ mapMaybe nonEmpty $ List.groupBy (\a b -> get a == get b) $ mergeLists (Set.toAscList lefts) (Set.toAscList rights)
262
merge get lefts rights = Set.fromList $ map sconcat $ mapMaybe nonEmpty $ List.groupBy (\a b -> get a == get b) $ mergeLists (Set.toAscList lefts) (Set.toAscList rights)
187
true
true
4
9
90
147
69
78
null
null
LouisJenkinsCS/Minimal-JVM
MateVMRuntime/JavaObjectsGC.hs
bsd-3-clause
printChildren :: Ptr a -> IO () printChildren ptr = do children <- refs ptr printfGc $ "children" ++ show children
137
printChildren :: Ptr a -> IO () printChildren ptr = do children <- refs ptr printfGc $ "children" ++ show children
137
printChildren ptr = do children <- refs ptr printfGc $ "children" ++ show children
105
false
true
0
8
43
50
22
28
null
null
steveshogren/haskell-katas
src/PoemSlicer.hs
bsd-3-clause
makeDict :: (Enum a, Num a, Ord a, MonadRandom m) => a -> m (M.Map a a) makeDict n = do rvs <- Rand.shuffleM [2..n+1] let kvs = zip [2..n+1] rvs randed = foldl (\m (k,v) -> M.insert k v m) M.empty kvs return randed
226
makeDict :: (Enum a, Num a, Ord a, MonadRandom m) => a -> m (M.Map a a) makeDict n = do rvs <- Rand.shuffleM [2..n+1] let kvs = zip [2..n+1] rvs randed = foldl (\m (k,v) -> M.insert k v m) M.empty kvs return randed
226
makeDict n = do rvs <- Rand.shuffleM [2..n+1] let kvs = zip [2..n+1] rvs randed = foldl (\m (k,v) -> M.insert k v m) M.empty kvs return randed
154
false
true
0
14
56
147
73
74
null
null
michalkonecny/aern2
aern2-mfun/src/AERN2/BoxFunMinMax/Expressions/Type.hs
bsd-3-clause
simplifyF (FConn Or (FComp Eq f1l f1r) (FComp Lt f2l f2r)) = simplifyF $ FConn Or (FComp Lt f2l f2r) (FComp Eq f1l f1r)
121
simplifyF (FConn Or (FComp Eq f1l f1r) (FComp Lt f2l f2r)) = simplifyF $ FConn Or (FComp Lt f2l f2r) (FComp Eq f1l f1r)
121
simplifyF (FConn Or (FComp Eq f1l f1r) (FComp Lt f2l f2r)) = simplifyF $ FConn Or (FComp Lt f2l f2r) (FComp Eq f1l f1r)
121
false
false
0
9
25
70
34
36
null
null
hvr/vector
Data/Vector/Unboxed.hs
bsd-3-clause
findIndex = G.findIndex
23
findIndex = G.findIndex
23
findIndex = G.findIndex
23
false
false
0
5
2
8
4
4
null
null
emmanueltouzery/cigale-timesheet
src/EventProviders/Ical.hs
mit
makeEvents :: TimeZone -> TsEvent -> LocalTime -> LocalTime -> [TsEvent] makeEvents tz base start end | localDay end == localDay start = [base { eventDate = startUtc, extraInfo = T.concat["End: ", T.pack $ formatTime defaultTimeLocale "%R" end, "; duration: ",...
658
makeEvents :: TimeZone -> TsEvent -> LocalTime -> LocalTime -> [TsEvent] makeEvents tz base start end | localDay end == localDay start = [base { eventDate = startUtc, extraInfo = T.concat["End: ", T.pack $ formatTime defaultTimeLocale "%R" end, "; duration: ",...
658
makeEvents tz base start end | localDay end == localDay start = [base { eventDate = startUtc, extraInfo = T.concat["End: ", T.pack $ formatTime defaultTimeLocale "%R" end, "; duration: ", Util.formatDurationSec $ diffUTCTime endUtc startUtc] }] | o...
585
false
true
2
12
185
215
109
106
null
null
thalerjonathan/phd
public/ArtIterating/code/haskell/PureAgentsSeq/src/HeroesAndCowards/RunHAC.hs
gpl-3.0
modelToPicture :: HACSimHandle -> IO GLO.Picture modelToPicture hdl = return (Front.renderFrame observableAgentStates) where as = PA.extractHdlAgents hdl observableAgentStates = map hacAgentToObservableState as
230
modelToPicture :: HACSimHandle -> IO GLO.Picture modelToPicture hdl = return (Front.renderFrame observableAgentStates) where as = PA.extractHdlAgents hdl observableAgentStates = map hacAgentToObservableState as
230
modelToPicture hdl = return (Front.renderFrame observableAgentStates) where as = PA.extractHdlAgents hdl observableAgentStates = map hacAgentToObservableState as
181
false
true
1
8
41
64
28
36
null
null
erikd/hs-tls
core/Network/TLS/Handshake/Common.hs
bsd-3-clause
handshakeFailed :: TLSError -> IO () handshakeFailed err = throwIO $ HandshakeFailed err
88
handshakeFailed :: TLSError -> IO () handshakeFailed err = throwIO $ HandshakeFailed err
88
handshakeFailed err = throwIO $ HandshakeFailed err
51
false
true
2
8
12
35
15
20
null
null
M42/mikrokosmos
source/Main.hs
gpl-3.0
readAllModuleDepsRecursively :: [Modulename] -> IO (Maybe [Modulename]) readAllModuleDepsRecursively modulenames = do maybenewmodulenames <- readAllModuleDeps modulenames case maybenewmodulenames of Nothing -> return Nothing Just newmodulenames -> do let allmodulenames = nub (newmodulenames ++ modulen...
523
readAllModuleDepsRecursively :: [Modulename] -> IO (Maybe [Modulename]) readAllModuleDepsRecursively modulenames = do maybenewmodulenames <- readAllModuleDeps modulenames case maybenewmodulenames of Nothing -> return Nothing Just newmodulenames -> do let allmodulenames = nub (newmodulenames ++ modulen...
523
readAllModuleDepsRecursively modulenames = do maybenewmodulenames <- readAllModuleDeps modulenames case maybenewmodulenames of Nothing -> return Nothing Just newmodulenames -> do let allmodulenames = nub (newmodulenames ++ modulenames) if modulenames == allmodulenames then return (Just mod...
451
false
true
0
17
92
115
55
60
null
null
oprdyn/technique
src/TechniqueUser.hs
mit
syntaxCheck :: FilePath -> Program None Int syntaxCheck procfile = catch ( do surface <- loadTechnique procfile let source = emptySource { sourceFilename = procfile, sourceContents = surface } concrete <- parsingPhase source ...
579
syntaxCheck :: FilePath -> Program None Int syntaxCheck procfile = catch ( do surface <- loadTechnique procfile let source = emptySource { sourceFilename = procfile, sourceContents = surface } concrete <- parsingPhase source ...
579
syntaxCheck procfile = catch ( do surface <- loadTechnique procfile let source = emptySource { sourceFilename = procfile, sourceContents = surface } concrete <- parsingPhase source abstract <- translationPhase source c...
535
false
true
0
13
223
146
68
78
null
null
jcristovao/data-easy
src/Data/Easy.hs
bsd-3-clause
notEmpty :: (Monoid a, Eq a) => a -> Bool notEmpty = isNotEmpty
63
notEmpty :: (Monoid a, Eq a) => a -> Bool notEmpty = isNotEmpty
63
notEmpty = isNotEmpty
21
false
true
0
6
12
30
16
14
null
null
bgw/hs-rpal
src/Parser/Ast.hs
gpl-3.0
-- Tuple expressions children (AstTau a) = a
44
children (AstTau a) = a
23
children (AstTau a) = a
23
true
false
0
7
7
16
8
8
null
null
spinda/liquidhaskell
tests/gsoc15/unknown/pos/initarray.hs
bsd-3-clause
zeroBackwards :: Int -> Int -> (Int -> Int) -> (Int -> Int) zeroBackwards i n a = if i < 0 then a else zeroBackwards (i - 1) n (set i 0 a)
169
zeroBackwards :: Int -> Int -> (Int -> Int) -> (Int -> Int) zeroBackwards i n a = if i < 0 then a else zeroBackwards (i - 1) n (set i 0 a)
169
zeroBackwards i n a = if i < 0 then a else zeroBackwards (i - 1) n (set i 0 a)
109
false
true
0
11
64
85
43
42
null
null
chadbrewbaker/combinat
Math/Combinat/Partitions/Integer.hs
bsd-3-clause
romPartition :: Partition -> [Int] fromPartition (Partition part) = part
73
fromPartition :: Partition -> [Int] fromPartition (Partition part) = part
73
fromPartition (Partition part) = part
37
false
true
0
7
10
27
14
13
null
null
iblumenfeld/saw-core
src/Verifier/SAW/Simulator/SBV.hs
bsd-3-clause
argTypes :: SharedContext s -> SharedTerm s -> IO [SharedTerm s] argTypes sc t = do t' <- scWhnf sc t case t' of (R.asPi -> Just (_, t1, t2)) -> (t1 :) <$> argTypes sc t2 _ -> return []
224
argTypes :: SharedContext s -> SharedTerm s -> IO [SharedTerm s] argTypes sc t = do t' <- scWhnf sc t case t' of (R.asPi -> Just (_, t1, t2)) -> (t1 :) <$> argTypes sc t2 _ -> return []
224
argTypes sc t = do t' <- scWhnf sc t case t' of (R.asPi -> Just (_, t1, t2)) -> (t1 :) <$> argTypes sc t2 _ -> return []
159
false
true
0
13
79
109
53
56
null
null
tauli/LambdaLudo
src/LambdaLudo.hs
bsd-3-clause
mkRect :: Int -> Int -> Int -> Int -> Rectangle CInt mkRect x y sx sy = Rectangle (P $ V2 x' y') (V2 sx' sy') where x' = toEnum $ x * sx y' = toEnum $ y * sy sx' = toEnum sx sy' = toEnum sy
199
mkRect :: Int -> Int -> Int -> Int -> Rectangle CInt mkRect x y sx sy = Rectangle (P $ V2 x' y') (V2 sx' sy') where x' = toEnum $ x * sx y' = toEnum $ y * sy sx' = toEnum sx sy' = toEnum sy
199
mkRect x y sx sy = Rectangle (P $ V2 x' y') (V2 sx' sy') where x' = toEnum $ x * sx y' = toEnum $ y * sy sx' = toEnum sx sy' = toEnum sy
146
false
true
0
9
59
107
54
53
null
null
bgamari/pandoc
src/Text/Pandoc/Readers/Org.hs
gpl-2.0
-- -- parsing blocks -- parseBlocks :: OrgParser (F Blocks) parseBlocks = mconcat <$> manyTill block eof
105
parseBlocks :: OrgParser (F Blocks) parseBlocks = mconcat <$> manyTill block eof
80
parseBlocks = mconcat <$> manyTill block eof
44
true
true
0
7
17
32
17
15
null
null
google/ghc-source-gen
src/GHC/SourceGen/Decl.hs
bsd-3-clause
-- | Give a field an explicit laziness annotation. This feature is useful in combination -- with the @StrictData@ extension. Overrides any such previous -- annotations (for example, from 'strict'). -- -- > !(A b) -- > ===== -- > strict $ field $ var "A" @@ var "b" lazy :: Field -> Field lazy f = f { strictness = SrcL...
325
lazy :: Field -> Field lazy f = f { strictness = SrcLazy }
58
lazy f = f { strictness = SrcLazy }
35
true
true
0
6
64
33
21
12
null
null
ilyasergey/GHC-XAppFix
compiler/cmm/PprC.hs
bsd-3-clause
signedOp (MO_S_Le _) = True
32
signedOp (MO_S_Le _) = True
32
signedOp (MO_S_Le _) = True
32
false
false
0
7
9
15
7
8
null
null
ucla-pls/wiretap-tools
src/Wiretap/Data/Event.hs
gpl-3.0
eshow :: Event -> String eshow e = "t" ++ show (threadId.thread $ e) ++ "." ++ show (order e) ++ "!" ++ show (operation e)
124
eshow :: Event -> String eshow e = "t" ++ show (threadId.thread $ e) ++ "." ++ show (order e) ++ "!" ++ show (operation e)
124
eshow e = "t" ++ show (threadId.thread $ e) ++ "." ++ show (order e) ++ "!" ++ show (operation e)
99
false
true
2
12
27
74
34
40
null
null
pgj/bead
src/Bead/Domain/TimeZone.hs
bsd-3-clause
zoneInfoToUTCTimeSafe tzc zi lcl = fromMaybe (localTimeToUTC Local.utc lcl) (zoneInfoToUTCTime tzc zi lcl)
108
zoneInfoToUTCTimeSafe tzc zi lcl = fromMaybe (localTimeToUTC Local.utc lcl) (zoneInfoToUTCTime tzc zi lcl)
108
zoneInfoToUTCTimeSafe tzc zi lcl = fromMaybe (localTimeToUTC Local.utc lcl) (zoneInfoToUTCTime tzc zi lcl)
108
false
false
0
8
14
38
18
20
null
null
tekul/cryptonite
Crypto/PubKey/ECC/Prim.hs
bsd-3-clause
pointNegate CurveF2m{} (Point x y) = Point x (x `addF2m` y)
59
pointNegate CurveF2m{} (Point x y) = Point x (x `addF2m` y)
59
pointNegate CurveF2m{} (Point x y) = Point x (x `addF2m` y)
59
false
false
0
7
10
37
19
18
null
null
profan/mal
haskell/Core.hs
mpl-2.0
concat1 a (MalList lst _) = a ++ lst
36
concat1 a (MalList lst _) = a ++ lst
36
concat1 a (MalList lst _) = a ++ lst
36
false
false
0
7
8
23
11
12
null
null
brendanhay/gogol
gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/UserPermissions/List.hs
mpl-2.0
-- | Creates a value of 'AccountsUserPermissionsList' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'auplParent' -- -- * 'auplXgafv' -- -- * 'auplUploadProtocol' -- -- * 'auplAccessToken' -- -- * 'auplUploadType' -- -- * 'auplPageTok...
741
accountsUserPermissionsList :: Text -- ^ 'auplParent' -> AccountsUserPermissionsList accountsUserPermissionsList pAuplParent_ = AccountsUserPermissionsList' { _auplParent = pAuplParent_ , _auplXgafv = Nothing , _auplUploadProtocol = Nothing , _auplAccessToken = Nothing , _auplUploadType = ...
394
accountsUserPermissionsList pAuplParent_ = AccountsUserPermissionsList' { _auplParent = pAuplParent_ , _auplXgafv = Nothing , _auplUploadProtocol = Nothing , _auplAccessToken = Nothing , _auplUploadType = Nothing , _auplPageToken = Nothing , _auplCallback = Nothing }
301
true
true
0
7
140
89
58
31
null
null
Balletie/.xmonad
lib/XMobar.hs
unlicense
fontAwesome = wrap "<fn=1>" "</fn>"
35
fontAwesome = wrap "<fn=1>" "</fn>"
35
fontAwesome = wrap "<fn=1>" "</fn>"
35
false
false
0
5
4
11
5
6
null
null
quchen/shaking-up-ghc
src/GHC.hs
bsd-3-clause
ghcTags = utility "ghctags"
36
ghcTags = utility "ghctags"
36
ghcTags = utility "ghctags"
36
false
false
1
5
12
13
4
9
null
null
brendanhay/gogol
gogol-youtube/gen/Network/Google/Resource/YouTube/Comments/Update.hs
mpl-2.0
-- | V1 error format. cuXgafv :: Lens' CommentsUpdate (Maybe Xgafv) cuXgafv = lens _cuXgafv (\ s a -> s{_cuXgafv = a})
118
cuXgafv :: Lens' CommentsUpdate (Maybe Xgafv) cuXgafv = lens _cuXgafv (\ s a -> s{_cuXgafv = a})
96
cuXgafv = lens _cuXgafv (\ s a -> s{_cuXgafv = a})
50
true
true
0
9
21
46
25
21
null
null
abakst/symmetry
checker/src/cloud-haskell-tests/Test.hs
mit
expectPong = do receiveWait [matchIf pred handler] where pred (Ping _) = False pred Pong = True handler (Ping me) = return ()
188
expectPong = do receiveWait [matchIf pred handler] where pred (Ping _) = False pred Pong = True handler (Ping me) = return ()
188
expectPong = do receiveWait [matchIf pred handler] where pred (Ping _) = False pred Pong = True handler (Ping me) = return ()
188
false
false
2
9
85
72
30
42
null
null
pparkkin/eta
compiler/ETA/Types/TyCon.hs
bsd-3-clause
tyConFamilySize (AlgTyCon {algTcRhs = DataFamilyTyCon {}}) = 0
64
tyConFamilySize (AlgTyCon {algTcRhs = DataFamilyTyCon {}}) = 0
64
tyConFamilySize (AlgTyCon {algTcRhs = DataFamilyTyCon {}}) = 0
64
false
false
0
9
9
26
13
13
null
null
jstolarek/ghc
compiler/nativeGen/X86/Ppr.hs
bsd-3-clause
pprInstr (SAR size src dst) = pprShift (sLit "sar") size src dst
64
pprInstr (SAR size src dst) = pprShift (sLit "sar") size src dst
64
pprInstr (SAR size src dst) = pprShift (sLit "sar") size src dst
64
false
false
0
7
11
34
16
18
null
null
fredokun/piexplorer
src/Syntax.hs
gpl-3.0
compareProc (Input _ _ _ _) _ = LT
34
compareProc (Input _ _ _ _) _ = LT
34
compareProc (Input _ _ _ _) _ = LT
34
false
false
0
7
8
23
11
12
null
null
tjakway/ghcjvm
compiler/specialise/Rules.hs
bsd-3-clause
roughTopName (Var f) | isGlobalId f -- Note [Care with roughTopName] , isDataConWorkId f || idArity f > 0 = Just (idName f)
173
roughTopName (Var f) | isGlobalId f -- Note [Care with roughTopName] , isDataConWorkId f || idArity f > 0 = Just (idName f)
173
roughTopName (Var f) | isGlobalId f -- Note [Care with roughTopName] , isDataConWorkId f || idArity f > 0 = Just (idName f)
173
false
false
0
10
72
52
23
29
null
null
hferreiro/replay
compiler/codeGen/StgCmmForeign.hs
bsd-3-clause
currentNursery = CmmGlobal CurrentNursery
44
currentNursery = CmmGlobal CurrentNursery
44
currentNursery = CmmGlobal CurrentNursery
44
false
false
0
5
6
9
4
5
null
null
joshuaclayton/unused
app/App.hs
mit
printResults :: TermMatchSet -> App () printResults tms = do filters <- optionFilters tms grouping <- groupingOptions formatter <- resultFormatter liftIO $ V.searchResults formatter $ groupedResponses grouping filters
233
printResults :: TermMatchSet -> App () printResults tms = do filters <- optionFilters tms grouping <- groupingOptions formatter <- resultFormatter liftIO $ V.searchResults formatter $ groupedResponses grouping filters
233
printResults tms = do filters <- optionFilters tms grouping <- groupingOptions formatter <- resultFormatter liftIO $ V.searchResults formatter $ groupedResponses grouping filters
194
false
true
0
11
43
73
31
42
null
null
chrisdotcode/hackage-server
tests/HighLevelTest.hs
bsd-3-clause
runPackageUploadTests :: IO () runPackageUploadTests = do do info "Getting package list" xs <- map packageName `liftM` getPackages unless (xs == []) $ die ("Bad package list: " ++ show xs) do info "Trying to upload testpackage" postFile isForbidden (Auth "HackageT...
925
runPackageUploadTests :: IO () runPackageUploadTests = do do info "Getting package list" xs <- map packageName `liftM` getPackages unless (xs == []) $ die ("Bad package list: " ++ show xs) do info "Trying to upload testpackage" postFile isForbidden (Auth "HackageT...
925
runPackageUploadTests = do do info "Getting package list" xs <- map packageName `liftM` getPackages unless (xs == []) $ die ("Bad package list: " ++ show xs) do info "Trying to upload testpackage" postFile isForbidden (Auth "HackageTestUser1" "testpass1") ...
894
false
true
0
13
272
210
101
109
null
null
aisamanra/matterhorn
src/State/Messages.hs
bsd-3-clause
fetchVisibleIfNeeded :: MH () fetchVisibleIfNeeded = do sts <- use csConnectionStatus case sts of Connected -> do cId <- use csCurrentChannelId withChannel cId $ \chan -> let msgs = chan^.ccContents.cdMessages.to reverseMessages (numRemaining, gapInDisplayab...
1,788
fetchVisibleIfNeeded :: MH () fetchVisibleIfNeeded = do sts <- use csConnectionStatus case sts of Connected -> do cId <- use csCurrentChannelId withChannel cId $ \chan -> let msgs = chan^.ccContents.cdMessages.to reverseMessages (numRemaining, gapInDisplayab...
1,788
fetchVisibleIfNeeded = do sts <- use csConnectionStatus case sts of Connected -> do cId <- use csCurrentChannelId withChannel cId $ \chan -> let msgs = chan^.ccContents.cdMessages.to reverseMessages (numRemaining, gapInDisplayable, _, rel'pId, overlap) = ...
1,758
false
true
1
29
730
534
282
252
null
null
CanvasHS/Canvas.hs
canvashs-module/CanvasHs/Protocol/Input.hs
lgpl-2.1
makeEvent "prompt" (JSONEventData{value = Just val}) = PromptResponse (BUL.toString val)
100
makeEvent "prompt" (JSONEventData{value = Just val}) = PromptResponse (BUL.toString val)
100
makeEvent "prompt" (JSONEventData{value = Just val}) = PromptResponse (BUL.toString val)
100
false
false
0
9
21
39
18
21
null
null
ocramz/sparse-linear-algebra
core/src/Numeric/LinearAlgebra/Core/Class.hs
gpl-3.0
-- ** Hilbert-space distance function -- |`hilbertDistSq x y = || x - y ||^2` computes the squared L2 distance between two vectors hilbertDistSq :: InnerSpace v => v -> v -> Scalar v hilbertDistSq x y = t <.> t where t = x ^-^ y -- * Normed vector spaces
265
hilbertDistSq :: InnerSpace v => v -> v -> Scalar v hilbertDistSq x y = t <.> t where t = x ^-^ y -- * Normed vector spaces
133
hilbertDistSq x y = t <.> t where t = x ^-^ y -- * Normed vector spaces
81
true
true
8
9
62
67
31
36
null
null
katydid/nwe
src/Deriv.hs
bsd-3-clause
derivCall refs (Reference name) = derivCall refs $ lookupRef refs name
70
derivCall refs (Reference name) = derivCall refs $ lookupRef refs name
70
derivCall refs (Reference name) = derivCall refs $ lookupRef refs name
70
false
false
0
7
10
29
13
16
null
null
pasberth/binal1
Language/Binal/Parser.hs
mit
posOfDelta :: D.Delta -> (Int, Int) posOfDelta (D.Directed _ lineno columnno _ _) = (fromInteger (toInteger lineno), fromInteger (toInteger columnno))
152
posOfDelta :: D.Delta -> (Int, Int) posOfDelta (D.Directed _ lineno columnno _ _) = (fromInteger (toInteger lineno), fromInteger (toInteger columnno))
152
posOfDelta (D.Directed _ lineno columnno _ _) = (fromInteger (toInteger lineno), fromInteger (toInteger columnno))
116
false
true
0
8
21
70
35
35
null
null
bgamari/shaking-up-ghc
src/GHC.hs
bsd-3-clause
defaultPackages Stage2 = stage2Packages
39
defaultPackages Stage2 = stage2Packages
39
defaultPackages Stage2 = stage2Packages
39
false
false
0
5
3
9
4
5
null
null
snoyberg/ghc
compiler/nativeGen/PPC/Regs.hs
bsd-3-clause
virtualRegSqueeze :: RegClass -> VirtualReg -> Int virtualRegSqueeze cls vr = case cls of RcInteger -> case vr of VirtualRegI{} -> 1 VirtualRegHi{} -> 1 _other -> 0 RcDouble -> case vr of ...
465
virtualRegSqueeze :: RegClass -> VirtualReg -> Int virtualRegSqueeze cls vr = case cls of RcInteger -> case vr of VirtualRegI{} -> 1 VirtualRegHi{} -> 1 _other -> 0 RcDouble -> case vr of ...
465
virtualRegSqueeze cls vr = case cls of RcInteger -> case vr of VirtualRegI{} -> 1 VirtualRegHi{} -> 1 _other -> 0 RcDouble -> case vr of VirtualRegD{} -> 1 Vi...
414
false
true
0
11
260
106
53
53
null
null
Jugendhackt/paketmagie
src/Paketmagie/GenGraph.hs
gpl-3.0
genNodes :: (RandomGen a) => a -> Int -> [Node] genNodes _ 0 = []
65
genNodes :: (RandomGen a) => a -> Int -> [Node] genNodes _ 0 = []
65
genNodes _ 0 = []
17
false
true
0
8
14
38
20
18
null
null
ducis/haAni
hs/common/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelTransfer.hs
gpl-2.0
-------------------------------------------------------------------------------- pixelTransferb :: GetPName -> PixelTransfer -> StateVar Capability pixelTransferb pn pt = makeStateVar (getBoolean1 unmarshalCapability pn) (glPixelTransferi (marshalPixelTransfer pt) . fromIntegral . marshalCapabili...
323
pixelTransferb :: GetPName -> PixelTransfer -> StateVar Capability pixelTransferb pn pt = makeStateVar (getBoolean1 unmarshalCapability pn) (glPixelTransferi (marshalPixelTransfer pt) . fromIntegral . marshalCapability)
241
pixelTransferb pn pt = makeStateVar (getBoolean1 unmarshalCapability pn) (glPixelTransferi (marshalPixelTransfer pt) . fromIntegral . marshalCapability)
174
true
true
0
11
46
61
30
31
null
null
AndreasPK/stack
src/Stack/Config.hs
bsd-3-clause
resolvePackageLocation :: (StackMiniM env m, HasConfig env) => EnvOverride -> Path Abs Dir -- ^ project root -> PackageLocation -> m (Path Abs Dir) resolvePackageLocation _ projRoot (PLFilePath fp) = resolveDir projRoot fp
242
resolvePackageLocation :: (StackMiniM env m, HasConfig env) => EnvOverride -> Path Abs Dir -- ^ project root -> PackageLocation -> m (Path Abs Dir) resolvePackageLocation _ projRoot (PLFilePath fp) = resolveDir projRoot fp
242
resolvePackageLocation _ projRoot (PLFilePath fp) = resolveDir projRoot fp
74
false
true
0
11
52
75
37
38
null
null