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
jstolarek/lattice-structure-hs
tests/Signal/Wavelet/Repa1Test.hs
bsd-3-clause
dataCsl :: [(Array U DIM1 Double, Array U DIM1 Double)] dataCsl = Prelude.map (DW.all2 f) DW.dataCsl
100
dataCsl :: [(Array U DIM1 Double, Array U DIM1 Double)] dataCsl = Prelude.map (DW.all2 f) DW.dataCsl
100
dataCsl = Prelude.map (DW.all2 f) DW.dataCsl
44
false
true
0
8
15
51
26
25
null
null
ntc2/cryptol
src/Cryptol/Symbolic/Prims.hs
bsd-3-clause
logicUnary :: (SBool -> SBool) -> (SWord -> SWord) -> Unary logicUnary bop op = loop . toTypeVal where loop ty v = case ty of TVBit -> VBit (bop (fromVBit v)) TVSeq _ TVBit -> VWord (op (fromVWord v)) TVSeq _ t -> VSeq False (map (loop t) (fromSeq v)) TVStream t ...
585
logicUnary :: (SBool -> SBool) -> (SWord -> SWord) -> Unary logicUnary bop op = loop . toTypeVal where loop ty v = case ty of TVBit -> VBit (bop (fromVBit v)) TVSeq _ TVBit -> VWord (op (fromVWord v)) TVSeq _ t -> VSeq False (map (loop t) (fromSeq v)) TVStream t ...
585
logicUnary bop op = loop . toTypeVal where loop ty v = case ty of TVBit -> VBit (bop (fromVBit v)) TVSeq _ TVBit -> VWord (op (fromVWord v)) TVSeq _ t -> VSeq False (map (loop t) (fromSeq v)) TVStream t -> VStream (map (loop t) (fromSeq v)) TVTuple ts ...
525
false
true
2
13
196
296
141
155
null
null
gridaphobe/ghc
compiler/deSugar/PmExpr.hs
bsd-3-clause
runPmPprM :: PmPprM a -> [PmNegLitCt] -> (a, [(SDoc,[PmLit])]) runPmPprM m lit_env = (result, mapMaybe is_used lit_env) where (result, (_lit_env, used)) = runState m (lit_env, emptyVarSet) is_used (x,(name, lits)) | elemVarSet x used = Just (name, lits) | otherwise = Nothing
306
runPmPprM :: PmPprM a -> [PmNegLitCt] -> (a, [(SDoc,[PmLit])]) runPmPprM m lit_env = (result, mapMaybe is_used lit_env) where (result, (_lit_env, used)) = runState m (lit_env, emptyVarSet) is_used (x,(name, lits)) | elemVarSet x used = Just (name, lits) | otherwise = Nothing
306
runPmPprM m lit_env = (result, mapMaybe is_used lit_env) where (result, (_lit_env, used)) = runState m (lit_env, emptyVarSet) is_used (x,(name, lits)) | elemVarSet x used = Just (name, lits) | otherwise = Nothing
243
false
true
4
10
71
134
76
58
null
null
phischu/fragnix
tests/packages/scotty/Data.Aeson.Types.FromJSON.hs
bsd-3-clause
-- | @'withBool' expected f value@ applies @f@ to the 'Bool' when @value@ is a -- 'Bool' and fails using @'typeMismatch' expected@ otherwise. withBool :: String -> (Bool -> Parser a) -> Value -> Parser a withBool _ f (Bool arr) = f arr
242
withBool :: String -> (Bool -> Parser a) -> Value -> Parser a withBool _ f (Bool arr) = f arr
100
withBool _ f (Bool arr) = f arr
38
true
true
0
9
50
54
27
27
null
null
NorfairKing/sus-depot
shared/shared/xmonad/Actions.hs
gpl-2.0
focusNextScreen :: X () focusNextScreen = onNextNeighbour W.view
64
focusNextScreen :: X () focusNextScreen = onNextNeighbour W.view
64
focusNextScreen = onNextNeighbour W.view
40
false
true
0
7
7
26
11
15
null
null
jean-edouard/manager
xenmgr/Vm/Pci.hs
gpl-2.0
matchingPciAddressesMany :: [PciPtRule] -> IO [(PciAddr, PciPtGuestSlot)] matchingPciAddressesMany rules = unions <$> mapM matchingPciAddresses rules where unions = S.toList . S.unions . map S.fromList -- Todo: Do we need to update the cache, when we unbind?
261
matchingPciAddressesMany :: [PciPtRule] -> IO [(PciAddr, PciPtGuestSlot)] matchingPciAddressesMany rules = unions <$> mapM matchingPciAddresses rules where unions = S.toList . S.unions . map S.fromList -- Todo: Do we need to update the cache, when we unbind?
261
matchingPciAddressesMany rules = unions <$> mapM matchingPciAddresses rules where unions = S.toList . S.unions . map S.fromList -- Todo: Do we need to update the cache, when we unbind?
187
false
true
1
8
38
71
35
36
null
null
Zigazou/Tank
src/Tank/Units/Angle.hs
gpl-3.0
cosine a = cosine (toRad a)
27
cosine a = cosine (toRad a)
27
cosine a = cosine (toRad a)
27
false
false
1
7
5
22
8
14
null
null
massysett/cartel
cartel/lib/Cartel/Init.hs
bsd-3-clause
quotes :: String -> String quotes s = "\"" ++ s ++ "\""
55
quotes :: String -> String quotes s = "\"" ++ s ++ "\""
55
quotes s = "\"" ++ s ++ "\""
28
false
true
4
7
12
34
14
20
null
null
dysinger/amazonka
amazonka-storagegateway/gen/Network/AWS/StorageGateway/DescribeSnapshotSchedule.hs
mpl-2.0
-- | 'DescribeSnapshotSchedule' constructor. -- -- The fields accessible through corresponding lenses are: -- -- * 'dssVolumeARN' @::@ 'Text' -- describeSnapshotSchedule :: Text -- ^ 'dssVolumeARN' -> DescribeSnapshotSchedule describeSnapshotSchedule p1 = DescribeSnapshotSchedule { _dssVolu...
336
describeSnapshotSchedule :: Text -- ^ 'dssVolumeARN' -> DescribeSnapshotSchedule describeSnapshotSchedule p1 = DescribeSnapshotSchedule { _dssVolumeARN = p1 }
191
describeSnapshotSchedule p1 = DescribeSnapshotSchedule { _dssVolumeARN = p1 }
85
true
true
0
6
69
33
21
12
null
null
sdiehl/ghc
compiler/types/Type.hs
bsd-3-clause
splitForAllTy_maybe :: Type -> Maybe (TyCoVar, Type) splitForAllTy_maybe ty = go ty where go ty | Just ty' <- coreView ty = go ty' go (ForAllTy (Bndr tv _) ty) = Just (tv, ty) go _ = Nothing -- | Like splitForAllTy_maybe, but only returns Just if it is a tyvar binder.
313
splitForAllTy_maybe :: Type -> Maybe (TyCoVar, Type) splitForAllTy_maybe ty = go ty where go ty | Just ty' <- coreView ty = go ty' go (ForAllTy (Bndr tv _) ty) = Just (tv, ty) go _ = Nothing -- | Like splitForAllTy_maybe, but only returns Just if it is a tyvar binder.
313
splitForAllTy_maybe ty = go ty where go ty | Just ty' <- coreView ty = go ty' go (ForAllTy (Bndr tv _) ty) = Just (tv, ty) go _ = Nothing -- | Like splitForAllTy_maybe, but only returns Just if it is a tyvar binder.
260
false
true
0
9
96
108
50
58
null
null
spacekitteh/smcghc
compiler/codeGen/StgCmmPrim.hs
bsd-3-clause
vecElemInjectCast _ WordVec W64 = Nothing
48
vecElemInjectCast _ WordVec W64 = Nothing
48
vecElemInjectCast _ WordVec W64 = Nothing
48
false
false
1
5
12
13
5
8
null
null
shayan-najd/QFeldspar
QFeldspar/Variable/Scoped.hs
gpl-3.0
int :: Var n -> Word32 int Zro = 0
38
int :: Var n -> Word32 int Zro = 0
38
int Zro = 0
15
false
true
0
6
13
21
10
11
null
null
alexbiehl/hoop
hadoop-protos/src/Hadoop/Protos/ClientNamenodeProtocolProtos/ClientNamenodeProtocol.hs
mit
setQuota :: SetQuota setQuota = P'.Method
41
setQuota :: SetQuota setQuota = P'.Method
41
setQuota = P'.Method
20
false
true
0
5
5
13
7
6
null
null
jkoppel/Strafunski-ATermLib
Data/ATerm/ReadWrite.hs
bsd-3-clause
readATs1 str = let (t,str') = readAT (dropSpaces str) (ts,str'') = readATs' (dropSpaces str') in (t:ts,str'')
181
readATs1 str = let (t,str') = readAT (dropSpaces str) (ts,str'') = readATs' (dropSpaces str') in (t:ts,str'')
181
readATs1 str = let (t,str') = readAT (dropSpaces str) (ts,str'') = readATs' (dropSpaces str') in (t:ts,str'')
181
false
false
1
11
87
71
34
37
null
null
bch29/streaming-png
src/Codec/Picture/Png/Streaming/Util.hs
lgpl-3.0
-- | If the input 'ByteString' is empty, return its result. Otherwise throw the -- provided error value. expectNull :: (MonadThrow m, Exception e) => e -> ByteString m r -> m r expectNull err input = do headChunk <- Q.nextChunk input case headChunk of Left res -> return res Right _ -> throwM err -...
398
expectNull :: (MonadThrow m, Exception e) => e -> ByteString m r -> m r expectNull err input = do headChunk <- Q.nextChunk input case headChunk of Left res -> return res Right _ -> throwM err -- | Split a streaming ByteString up into a stream of chunks of the given size.
293
expectNull err input = do headChunk <- Q.nextChunk input case headChunk of Left res -> return res Right _ -> throwM err -- | Split a streaming ByteString up into a stream of chunks of the given size.
221
true
true
0
11
92
98
45
53
null
null
GaloisInc/galua
galua-rts/src/Galua/FunId.hs
mit
fits :: Int -> Word8 fits n | n >= 0 && n < 256 = fromIntegral n | otherwise = error "FunId: too many functions [0--255]"
136
fits :: Int -> Word8 fits n | n >= 0 && n < 256 = fromIntegral n | otherwise = error "FunId: too many functions [0--255]"
136
fits n | n >= 0 && n < 256 = fromIntegral n | otherwise = error "FunId: too many functions [0--255]"
115
false
true
1
10
41
54
24
30
null
null
bacher09/darkplaces-text
src/DarkPlaces/Text.hs
gpl-2.0
concatText :: (Monoid a, Monad m) => Consumer a m a concatText = mconcat `fmap` CL.consume
90
concatText :: (Monoid a, Monad m) => Consumer a m a concatText = mconcat `fmap` CL.consume
90
concatText = mconcat `fmap` CL.consume
38
false
true
0
6
15
41
22
19
null
null
vTurbine/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
pprGRHS ctxt (GRHS guards body) = sep [vbar <+> interpp'SP guards, pp_rhs ctxt body]
85
pprGRHS ctxt (GRHS guards body) = sep [vbar <+> interpp'SP guards, pp_rhs ctxt body]
85
pprGRHS ctxt (GRHS guards body) = sep [vbar <+> interpp'SP guards, pp_rhs ctxt body]
85
false
false
0
7
14
42
19
23
null
null
kojiromike/Idris-dev
src/Idris/Core/Elaborate.hs
bsd-3-clause
tryWhen :: Bool -> Elab' aux a -> Elab' aux a -> Elab' aux a tryWhen True a b = try a b
87
tryWhen :: Bool -> Elab' aux a -> Elab' aux a -> Elab' aux a tryWhen True a b = try a b
87
tryWhen True a b = try a b
26
false
true
0
9
22
56
24
32
null
null
manugunther/sat
Sat/GUI/EntryFormula.hs
gpl-3.0
initialFormula :: FormulaItem initialFormula = FormulaItem (unpack initialFormString) NotChecked
96
initialFormula :: FormulaItem initialFormula = FormulaItem (unpack initialFormString) NotChecked
96
initialFormula = FormulaItem (unpack initialFormString) NotChecked
66
false
true
0
7
8
28
12
16
null
null
gspia/reflex-dom-htmlea
lib/src/Reflex/Dom/HTML5/Attrs/Globals.hs
bsd-3-clause
contentInheritEditable = attrSetContentEditable CEinherit
57
contentInheritEditable = attrSetContentEditable CEinherit
57
contentInheritEditable = attrSetContentEditable CEinherit
57
false
false
0
5
3
9
4
5
null
null
benma/bitd
src/BitD/Protocol/Blockchain.hs
bsd-3-clause
serializeOutput :: Output -> BinP.Put serializeOutput (Output (SatoshiValue value) outputScriptLength outputScript) = do BinP.putWord64le value Bin.put $ VarInt $ fromIntegral outputScriptLength BinP.putByteString outputScript
232
serializeOutput :: Output -> BinP.Put serializeOutput (Output (SatoshiValue value) outputScriptLength outputScript) = do BinP.putWord64le value Bin.put $ VarInt $ fromIntegral outputScriptLength BinP.putByteString outputScript
232
serializeOutput (Output (SatoshiValue value) outputScriptLength outputScript) = do BinP.putWord64le value Bin.put $ VarInt $ fromIntegral outputScriptLength BinP.putByteString outputScript
194
false
true
0
9
28
68
31
37
null
null
dagit/helisp
src/Compile32.hs
bsd-3-clause
emitLambda (Lambda fmls body, lbl) = do emitFunHeader lbl setStackPointer (-wordsize) $ emitFmls fmls ret where emitFmls [] = emitExpr body emitFmls (f:fs) = do si <- getStackPointer extendVars [(f, si)] $ incStackPointer $ emitFmls fs
260
emitLambda (Lambda fmls body, lbl) = do emitFunHeader lbl setStackPointer (-wordsize) $ emitFmls fmls ret where emitFmls [] = emitExpr body emitFmls (f:fs) = do si <- getStackPointer extendVars [(f, si)] $ incStackPointer $ emitFmls fs
260
emitLambda (Lambda fmls body, lbl) = do emitFunHeader lbl setStackPointer (-wordsize) $ emitFmls fmls ret where emitFmls [] = emitExpr body emitFmls (f:fs) = do si <- getStackPointer extendVars [(f, si)] $ incStackPointer $ emitFmls fs
260
false
false
1
12
60
117
52
65
null
null
vincenthz/hs-foundation
basement/Basement/BoxedArray.hs
bsd-3-clause
foldl' :: (a -> ty -> a) -> a -> Array ty -> a foldl' f initialAcc vec = loop 0 initialAcc where len = length vec loop !i !acc | i .==# len = acc | otherwise = loop (i+1) (f acc (unsafeIndex vec i))
225
foldl' :: (a -> ty -> a) -> a -> Array ty -> a foldl' f initialAcc vec = loop 0 initialAcc where len = length vec loop !i !acc | i .==# len = acc | otherwise = loop (i+1) (f acc (unsafeIndex vec i))
225
foldl' f initialAcc vec = loop 0 initialAcc where len = length vec loop !i !acc | i .==# len = acc | otherwise = loop (i+1) (f acc (unsafeIndex vec i))
178
false
true
0
10
72
119
56
63
null
null
damoxc/ganeti
src/Ganeti/OpParams.hs
gpl-2.0
-- | Migration type (live\/non-live). pMigrationMode :: Field pMigrationMode = renameField "MigrationMode" . optionalField $ simpleField "mode" [t| MigrationMode |]
170
pMigrationMode :: Field pMigrationMode = renameField "MigrationMode" . optionalField $ simpleField "mode" [t| MigrationMode |]
132
pMigrationMode = renameField "MigrationMode" . optionalField $ simpleField "mode" [t| MigrationMode |]
108
true
true
0
7
25
32
18
14
null
null
sdiehl/ghc
compiler/basicTypes/Var.hs
bsd-3-clause
-- | Make a named binder -- 'var' should be a type variable mkTyVarBinder :: ArgFlag -> TyVar -> TyVarBinder mkTyVarBinder vis var = ASSERT( isTyVar var ) Bndr var vis
173
mkTyVarBinder :: ArgFlag -> TyVar -> TyVarBinder mkTyVarBinder vis var = ASSERT( isTyVar var ) Bndr var vis
113
mkTyVarBinder vis var = ASSERT( isTyVar var ) Bndr var vis
64
true
true
0
7
36
41
21
20
null
null
vikraman/ghc
compiler/typecheck/TcSplice.hs
bsd-3-clause
--------------- tcBrackTy :: HsBracket Name -> TcM TcType tcBrackTy (VarBr _ _) = tcMetaTy nameTyConName
104
tcBrackTy :: HsBracket Name -> TcM TcType tcBrackTy (VarBr _ _) = tcMetaTy nameTyConName
88
tcBrackTy (VarBr _ _) = tcMetaTy nameTyConName
46
true
true
0
7
14
36
17
19
null
null
kulshrax/haskml
src/Tags.hs
mit
colgroup :: HtmlParent colgroup = newElem "colgroup"
52
colgroup :: HtmlParent colgroup = newElem "colgroup"
52
colgroup = newElem "colgroup"
29
false
true
0
5
6
14
7
7
null
null
sdiehl/ghc
libraries/base/GHC/List.hs
bsd-3-clause
foldl k z0 xs = foldr (\(v::a) (fn::b->b) -> oneShot (\(z::b) -> fn (k z v))) (id :: b -> b) xs z0
100
foldl k z0 xs = foldr (\(v::a) (fn::b->b) -> oneShot (\(z::b) -> fn (k z v))) (id :: b -> b) xs z0
100
foldl k z0 xs = foldr (\(v::a) (fn::b->b) -> oneShot (\(z::b) -> fn (k z v))) (id :: b -> b) xs z0
100
false
false
0
13
24
92
47
45
null
null
danr/hipspec
tfp1/tests/PuoF.hs
gpl-3.0
(S x) * y = y + (x * y)
23
(S x) * y = y + (x * y)
23
(S x) * y = y + (x * y)
23
false
false
0
7
9
29
14
15
null
null
rjwright/js-typeomatic
DeclarationGraph.hs
apache-2.0
- Make FunctionExpressionRules from an AST. An ASTChild can't immediately represent a function -- expression. Recursively process all child ASTs and expressions. astGetFunExprRules :: ASTChild -> ParentFunction -> [DeclaredIdentifier] -> [FunctionExpressionRules] astGetFunExprRules (LabBlock astList, n, sourceFragment)...
370
astGetFunExprRules :: ASTChild -> ParentFunction -> [DeclaredIdentifier] -> [FunctionExpressionRules] astGetFunExprRules (LabBlock astList, n, sourceFragment) parent dIDs = (mapASTGetFER astList parent dIDs)
207
astGetFunExprRules (LabBlock astList, n, sourceFragment) parent dIDs = (mapASTGetFER astList parent dIDs)
105
true
true
1
8
43
90
46
44
null
null
pdmurray/haskell-book-ex
src/ch11/Exercises11.6.hs
bsd-3-clause
urCar = Car Mazda (Price 20000)
31
urCar = Car Mazda (Price 20000)
31
urCar = Car Mazda (Price 20000)
31
false
false
0
7
5
17
8
9
null
null
jml/haverer-api
test/Handler/GameSpec.hs
apache-2.0
spec :: Spec spec = withApp $ do it "starts off with no games" $ do getJson GamesR statusIs 200 bodyEquals "[]" it "redirects when you try to POST without logging in" $ do needsLogin POST ("/games" :: Text) it "allows games to be created" $ do doLogin "testuser" postJson GamesR $ object...
3,046
spec :: Spec spec = withApp $ do it "starts off with no games" $ do getJson GamesR statusIs 200 bodyEquals "[]" it "redirects when you try to POST without logging in" $ do needsLogin POST ("/games" :: Text) it "allows games to be created" $ do doLogin "testuser" postJson GamesR $ object...
3,046
spec = withApp $ do it "starts off with no games" $ do getJson GamesR statusIs 200 bodyEquals "[]" it "redirects when you try to POST without logging in" $ do needsLogin POST ("/games" :: Text) it "allows games to be created" $ do doLogin "testuser" postJson GamesR $ object [ "n...
3,033
false
true
2
17
970
964
477
487
null
null
brendanhay/gogol
gogol-youtube/gen/Network/Google/Resource/YouTube/PlayListItems/Delete.hs
mpl-2.0
-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\"). plidUploadType :: Lens' PlayListItemsDelete (Maybe Text) plidUploadType = lens _plidUploadType (\ s a -> s{_plidUploadType = a})
207
plidUploadType :: Lens' PlayListItemsDelete (Maybe Text) plidUploadType = lens _plidUploadType (\ s a -> s{_plidUploadType = a})
136
plidUploadType = lens _plidUploadType (\ s a -> s{_plidUploadType = a})
79
true
true
1
9
34
52
25
27
null
null
niteria/deterministic-fvs
FVCommon.hs
mit
oneFV :: Var -> FV oneFV v fv_cand in_scope acc@(have, haveSet) | IntSet.member v in_scope = acc | IntSet.member v haveSet = acc | fv_cand v = (v:have, IntSet.insert v haveSet) | otherwise = acc
202
oneFV :: Var -> FV oneFV v fv_cand in_scope acc@(have, haveSet) | IntSet.member v in_scope = acc | IntSet.member v haveSet = acc | fv_cand v = (v:have, IntSet.insert v haveSet) | otherwise = acc
202
oneFV v fv_cand in_scope acc@(have, haveSet) | IntSet.member v in_scope = acc | IntSet.member v haveSet = acc | fv_cand v = (v:have, IntSet.insert v haveSet) | otherwise = acc
183
false
true
2
9
42
99
49
50
null
null
li-zhirui/EoplLangs
test/ProcLang/EvaluatorSuite.hs
bsd-3-clause
testLet :: Test testLet = TestList [ testEq "Eval let" (ExprNum 1) $ unlines [ "let x = 30" , "in let x = -(x,1)" , " y = -(x,2)" , " in -(x,y)" ] , testEq "Eval let*" (ExprNum 2) $ unlines ...
434
testLet :: Test testLet = TestList [ testEq "Eval let" (ExprNum 1) $ unlines [ "let x = 30" , "in let x = -(x,1)" , " y = -(x,2)" , " in -(x,y)" ] , testEq "Eval let*" (ExprNum 2) $ unlines ...
434
testLet = TestList [ testEq "Eval let" (ExprNum 1) $ unlines [ "let x = 30" , "in let x = -(x,1)" , " y = -(x,2)" , " in -(x,y)" ] , testEq "Eval let*" (ExprNum 2) $ unlines [ "let x = 3...
418
false
true
0
9
239
77
41
36
null
null
substack/hs-disappoint
src/Language/Haskell/Pointfree/Common.hs
mit
maxPrec = shift + 10
20
maxPrec = shift + 10
20
maxPrec = shift + 10
20
false
false
0
5
4
10
5
5
null
null
mightymoose/liquidhaskell
benchmarks/base-4.5.1.0/System/IO/Error.hs
bsd-3-clause
-- | An error indicating that an 'IO' operation failed because -- the operation was not possible. -- Any computation which returns an 'IO' result may fail with -- 'isIllegalOperation'. In some cases, an implementation will not be -- able to distinguish between the possible error causes. In this case -- it should fail...
455
isIllegalOperation :: IOError -> Bool isIllegalOperation = isIllegalOperationErrorType . ioeGetErrorType
107
isIllegalOperation = isIllegalOperationErrorType . ioeGetErrorType
68
true
true
0
5
70
25
16
9
null
null
DanielSchiavini/ampersand
src/Database/Design/Ampersand/FSpec/ToFSpec/Calc.hs
gpl-3.0
commaNLPandoc _ [] = []
27
commaNLPandoc _ [] = []
27
commaNLPandoc _ [] = []
27
false
false
0
6
8
15
7
8
null
null
kishoredbn/barrelfish
tools/mackerel/BitFieldDriver.hs
mit
loc_array_off (Space.BYTEWISE s) off (ArrayStepLoc num 0) sz = printf "(0x%0x) + (_i *(%s/8))" off (show (sz `div` s))
123
loc_array_off (Space.BYTEWISE s) off (ArrayStepLoc num 0) sz = printf "(0x%0x) + (_i *(%s/8))" off (show (sz `div` s))
123
loc_array_off (Space.BYTEWISE s) off (ArrayStepLoc num 0) sz = printf "(0x%0x) + (_i *(%s/8))" off (show (sz `div` s))
123
false
false
0
9
23
53
27
26
null
null
sdiehl/ghc
libraries/base/GHC/Arr.hs
bsd-3-clause
arrEleBottom :: a arrEleBottom = errorWithoutStackTrace "(Array.!): undefined array element"
92
arrEleBottom :: a arrEleBottom = errorWithoutStackTrace "(Array.!): undefined array element"
92
arrEleBottom = errorWithoutStackTrace "(Array.!): undefined array element"
74
false
true
0
5
9
14
7
7
null
null
romanb/amazonka
amazonka-cloudtrail/gen/Network/AWS/CloudTrail/GetTrailStatus.hs
mpl-2.0
-- | Displays the most recent date and time when CloudTrail delivered logs to -- CloudWatch Logs. gtsrLatestCloudWatchLogsDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime) gtsrLatestCloudWatchLogsDeliveryTime = lens _gtsrLatestCloudWatchLogsDeliveryTime (\s a -> s { _gtsrLatestCloudWatchLogsDeliv...
362
gtsrLatestCloudWatchLogsDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime) gtsrLatestCloudWatchLogsDeliveryTime = lens _gtsrLatestCloudWatchLogsDeliveryTime (\s a -> s { _gtsrLatestCloudWatchLogsDeliveryTime = a }) . mapping _Time
264
gtsrLatestCloudWatchLogsDeliveryTime = lens _gtsrLatestCloudWatchLogsDeliveryTime (\s a -> s { _gtsrLatestCloudWatchLogsDeliveryTime = a }) . mapping _Time
179
true
true
0
10
62
54
29
25
null
null
kmate/raw-feldspar-mcs
src/Feldspar/Multicore/Representation.hs
bsd-3-clause
runHost :: Host a -> Run a runHost = interpretT id . unHost
59
runHost :: Host a -> Run a runHost = interpretT id . unHost
59
runHost = interpretT id . unHost
32
false
true
0
6
12
28
13
15
null
null
martin-kolinek/stack
src/Stack/Types/Package.hs
bsd-3-clause
dotCabalCFilePath _ = Nothing
29
dotCabalCFilePath _ = Nothing
29
dotCabalCFilePath _ = Nothing
29
false
false
0
5
3
9
4
5
null
null
marcellussiegburg/autotool
collection/src/Up/ToDoc.hs
gpl-2.0
braces' = flowing_dutch (text "{", empty , text "}" )
55
braces' = flowing_dutch (text "{", empty , text "}" )
55
braces' = flowing_dutch (text "{", empty , text "}" )
55
false
false
0
7
11
24
12
12
null
null
bergmark/hlint
src/Hint/List.hs
bsd-3-clause
isAppend _ = False
18
isAppend _ = False
18
isAppend _ = False
18
false
false
0
5
3
9
4
5
null
null
janschulz/pandoc
src/Text/Pandoc/Writers/Markdown.hs
gpl-2.0
inlineToMarkdown opts (Str str) = do st <- get if stPlain st then return $ text str else return $ text $ escapeString opts str
140
inlineToMarkdown opts (Str str) = do st <- get if stPlain st then return $ text str else return $ text $ escapeString opts str
140
inlineToMarkdown opts (Str str) = do st <- get if stPlain st then return $ text str else return $ text $ escapeString opts str
140
false
false
0
9
38
58
27
31
null
null
sopvop/heist
src/Heist/Splices/Html.hs
bsd-3-clause
------------------------------------------------------------------------------ -- | Name for the html splice. htmlTag :: Text htmlTag = "html"
142
htmlTag :: Text htmlTag = "html"
32
htmlTag = "html"
16
true
true
0
4
13
13
8
5
null
null
leocassarani/noughts-and-crosses
src/Lib.hs
mit
opponent Cross = Nought
24
opponent Cross = Nought
24
opponent Cross = Nought
24
false
false
0
5
4
9
4
5
null
null
banacorn/formal-language
haskell-legacy/Language/fa.hs
mit
pairCombinations :: (Ord a) => [a] -> [(a, a)] pairCombinations [] = []
71
pairCombinations :: (Ord a) => [a] -> [(a, a)] pairCombinations [] = []
71
pairCombinations [] = []
24
false
true
0
8
12
43
24
19
null
null
nevrenato/HetsAlloy
Logic/Grothendieck.hs
gpl-2.0
setCurLogicAux :: String -> LogicGraph -> LogicGraph setCurLogicAux s lg = lg { currentLogic = s }
98
setCurLogicAux :: String -> LogicGraph -> LogicGraph setCurLogicAux s lg = lg { currentLogic = s }
98
setCurLogicAux s lg = lg { currentLogic = s }
45
false
true
0
6
16
32
17
15
null
null
FranklinChen/ghc-vis
src/GHC/Vis/View/Graph.hs
bsd-3-clause
iconCollapseSVG :: SVG iconCollapseSVG = unsafePerformIO $ My.getDataFileName "data/icon_collapse.svg" >>= svgNewFromFile
121
iconCollapseSVG :: SVG iconCollapseSVG = unsafePerformIO $ My.getDataFileName "data/icon_collapse.svg" >>= svgNewFromFile
121
iconCollapseSVG = unsafePerformIO $ My.getDataFileName "data/icon_collapse.svg" >>= svgNewFromFile
98
false
true
0
8
10
24
12
12
null
null
UBMLtonGroup/timberc
src/Match.hs
bsd-3-clause
matchVar (w:ws) (EVar v:ps, rh) = match ws [(ps, subst (v +-> EVar w) rh)]
74
matchVar (w:ws) (EVar v:ps, rh) = match ws [(ps, subst (v +-> EVar w) rh)]
74
matchVar (w:ws) (EVar v:ps, rh) = match ws [(ps, subst (v +-> EVar w) rh)]
74
false
false
0
11
14
62
31
31
null
null
seereason/ghcjs
src/Compiler/Compat.hs
mit
convertVersion :: DV.Version -> Version convertVersion v = Version (map fromIntegral $ versionBranch v)
103
convertVersion :: DV.Version -> Version convertVersion v = Version (map fromIntegral $ versionBranch v)
103
convertVersion v = Version (map fromIntegral $ versionBranch v)
63
false
true
0
8
13
36
17
19
null
null
jaburns/winsnap
winsnap-go.hs
mit
nextMonitor :: [Monitor] -> FixedWindow -> FixedWindow nextMonitor mons win = jumpMonitor getNext mons win
106
nextMonitor :: [Monitor] -> FixedWindow -> FixedWindow nextMonitor mons win = jumpMonitor getNext mons win
106
nextMonitor mons win = jumpMonitor getNext mons win
51
false
true
0
6
14
38
18
20
null
null
input-output-hk/pos-haskell-prototype
utxo/src/UTxO/Util.hs
mit
shuffleNE :: NonEmpty a -> IO (NonEmpty a) shuffleNE = fmap NE.fromList . shuffle . NE.toList
93
shuffleNE :: NonEmpty a -> IO (NonEmpty a) shuffleNE = fmap NE.fromList . shuffle . NE.toList
93
shuffleNE = fmap NE.fromList . shuffle . NE.toList
50
false
true
0
8
15
42
20
22
null
null
spacekitteh/smcghc
compiler/codeGen/StgCmmMonad.hs
bsd-3-clause
withInfoDown :: FCode a -> CgInfoDownwards -> FCode a withInfoDown (FCode fcode) info_down = FCode $ \_ state -> fcode info_down state
134
withInfoDown :: FCode a -> CgInfoDownwards -> FCode a withInfoDown (FCode fcode) info_down = FCode $ \_ state -> fcode info_down state
134
withInfoDown (FCode fcode) info_down = FCode $ \_ state -> fcode info_down state
80
false
true
0
10
21
56
26
30
null
null
vikraman/ghc
libraries/template-haskell/Language/Haskell/TH/Lib.hs
bsd-3-clause
wildP :: PatQ wildP = return WildP
34
wildP :: PatQ wildP = return WildP
34
wildP = return WildP
20
false
true
0
6
6
21
8
13
null
null
haroldcarr/learn-haskell-coq-ml-etc
haskell/course/2013-11-coursera-fp-odersky-but-in-haskell/FP04PatMatTest.hs
unlicense
leaflist2 = [Leaf 'e' 1, Leaf 't' 4, Leaf 'x' 4]
48
leaflist2 = [Leaf 'e' 1, Leaf 't' 4, Leaf 'x' 4]
48
leaflist2 = [Leaf 'e' 1, Leaf 't' 4, Leaf 'x' 4]
48
false
false
0
6
10
30
15
15
null
null
luzhuomi/xhaskell-regex-deriv
Text/Regex/Deriv/ByteString/BitCode.hs
bsd-3-clause
mkEmpty (Seq r1 r2) = let f1 = mkEmpty r1 f2 = mkEmpty r2 in (\ (SPair p sp1 sp2) -> p `appP` (f1 sp1) `appP` (f2 sp2))
131
mkEmpty (Seq r1 r2) = let f1 = mkEmpty r1 f2 = mkEmpty r2 in (\ (SPair p sp1 sp2) -> p `appP` (f1 sp1) `appP` (f2 sp2))
131
mkEmpty (Seq r1 r2) = let f1 = mkEmpty r1 f2 = mkEmpty r2 in (\ (SPair p sp1 sp2) -> p `appP` (f1 sp1) `appP` (f2 sp2))
131
false
false
0
12
39
81
42
39
null
null
noteed/opengl-api
Text/OpenGL/Spec.hs
bsd-3-clause
isGlxropcode _ = False
22
isGlxropcode _ = False
22
isGlxropcode _ = False
22
false
false
0
5
3
9
4
5
null
null
Frefreak/hearthstone-cardsearch
client/src/Filter.hs
bsd-3-clause
nameFilter :: T.Text -> Filter nameFilter n = Filter $ case n of "" -> id n' -> filter (\c -> T.toLower n' `T.isInfixOf` T.toLower (c ^. cardName))
167
nameFilter :: T.Text -> Filter nameFilter n = Filter $ case n of "" -> id n' -> filter (\c -> T.toLower n' `T.isInfixOf` T.toLower (c ^. cardName))
167
nameFilter n = Filter $ case n of "" -> id n' -> filter (\c -> T.toLower n' `T.isInfixOf` T.toLower (c ^. cardName))
136
false
true
2
14
47
82
40
42
null
null
itchyny/vim-haskell-indent
test/guard/where_same_line.out.hs
mit
g = f where f y@(x:xs) | x > 10 = let z = [] in (z) | otherwise = []
89
g = f where f y@(x:xs) | x > 10 = let z = [] in (z) | otherwise = []
89
g = f where f y@(x:xs) | x > 10 = let z = [] in (z) | otherwise = []
89
false
false
2
10
41
71
32
39
null
null
rueshyna/gogol
gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Product.hs
mpl-2.0
-- | Identifies what kind of resource this is. Value: the fixed string -- \"dfareporting#floodlightConfiguration\". fcKind :: Lens' FloodlightConfiguration Text fcKind = lens _fcKind (\ s a -> s{_fcKind = a})
208
fcKind :: Lens' FloodlightConfiguration Text fcKind = lens _fcKind (\ s a -> s{_fcKind = a})
92
fcKind = lens _fcKind (\ s a -> s{_fcKind = a})
47
true
true
1
9
30
46
23
23
null
null
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/LambdaFunctionVpcConfig.hs
mit
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-securitygroupids lfvcSecurityGroupIds :: Lens' LambdaFunctionVpcConfig (ValList Text) lfvcSecurityGroupIds = lens _lambdaFunctionVpcConfigSecurityGroupIds (\s a -> s { _lambdaFu...
358
lfvcSecurityGroupIds :: Lens' LambdaFunctionVpcConfig (ValList Text) lfvcSecurityGroupIds = lens _lambdaFunctionVpcConfigSecurityGroupIds (\s a -> s { _lambdaFunctionVpcConfigSecurityGroupIds = a })
198
lfvcSecurityGroupIds = lens _lambdaFunctionVpcConfigSecurityGroupIds (\s a -> s { _lambdaFunctionVpcConfigSecurityGroupIds = a })
129
true
true
0
9
21
46
25
21
null
null
LambdaHack/LambdaHack
engine-src/Game/LambdaHack/Client/UI/Animation.hs
bsd-3-clause
mapPosToOffset :: (Point, AttrCharW32) -> (PointUI, AttrString) mapPosToOffset (p, attr) = let pUI = squareToUI $ mapToSquare p in (pUI, [attr])
148
mapPosToOffset :: (Point, AttrCharW32) -> (PointUI, AttrString) mapPosToOffset (p, attr) = let pUI = squareToUI $ mapToSquare p in (pUI, [attr])
148
mapPosToOffset (p, attr) = let pUI = squareToUI $ mapToSquare p in (pUI, [attr])
84
false
true
0
10
24
63
35
28
null
null
Happy-Ferret/xmonad
src/XMonad/Core.hs
bsd-3-clause
-- | Like 'spawn', but returns the 'ProcessID' of the launched application spawnPID :: MonadIO m => String -> m ProcessID spawnPID x = xfork $ executeFile "/bin/sh" False ["-c", encodeString x] Nothing
201
spawnPID :: MonadIO m => String -> m ProcessID spawnPID x = xfork $ executeFile "/bin/sh" False ["-c", encodeString x] Nothing
126
spawnPID x = xfork $ executeFile "/bin/sh" False ["-c", encodeString x] Nothing
79
true
true
0
8
32
51
25
26
null
null
ganeti/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
-- | Similarly to the configuration (see 'configRevision'), the -- protocols are supposed to remain stable across revisions. protocolVersion :: Int protocolVersion = buildVersion configMajor configMinor configRevision
217
protocolVersion :: Int protocolVersion = buildVersion configMajor configMinor configRevision
92
protocolVersion = buildVersion configMajor configMinor configRevision
69
true
true
0
5
26
20
11
9
null
null
ssaavedra/liquidhaskell
src/Language/Haskell/Liquid/Desugar710/DsCCall.hs
bsd-3-clause
unboxArg :: CoreExpr -- The supplied argument -> DsM (CoreExpr, -- To pass as the actual argument CoreExpr -> CoreExpr -- Wrapper to unbox the arg ) -- Example: if the arg is e::Int, unboxArg will return -- (x#::Int#, \W. case x of I# x# -...
3,180
unboxArg :: CoreExpr -- The supplied argument -> DsM (CoreExpr, -- To pass as the actual argument CoreExpr -> CoreExpr -- Wrapper to unbox the arg ) unboxArg arg -- Primtive types: nothing to unbox | isPrimitiveType arg_ty = return (arg, ...
3,028
unboxArg arg -- Primtive types: nothing to unbox | isPrimitiveType arg_ty = return (arg, \body -> body) -- Recursive newtypes | Just(co, _rep_ty) <- topNormaliseNewType_maybe arg_ty = unboxArg (mkCast arg co) -- Booleans | Just tc <- tyConAppTyCon_maybe arg_ty, tc `hasKey` boolTyConKey = do dfla...
2,803
true
true
0
17
1,080
632
322
310
null
null
ChrisKuklewicz/XWords
src/Lookup.hs
bsd-3-clause
lookupTemplate !(Dict _here m) !score !wilds !s (Blank square:template') = concatMap choose (pullTile s) ++ useWild where choose :: (Val,Hist) -> [(SM,String)] choose (val,s') = case M.lookup val m of Nothing -> [] Just t -> let c = toEnum val score' = addTile score square Fa...
761
lookupTemplate !(Dict _here m) !score !wilds !s (Blank square:template') = concatMap choose (pullTile s) ++ useWild where choose :: (Val,Hist) -> [(SM,String)] choose (val,s') = case M.lookup val m of Nothing -> [] Just t -> let c = toEnum val score' = addTile score square Fa...
761
lookupTemplate !(Dict _here m) !score !wilds !s (Blank square:template') = concatMap choose (pullTile s) ++ useWild where choose :: (Val,Hist) -> [(SM,String)] choose (val,s') = case M.lookup val m of Nothing -> [] Just t -> let c = toEnum val score' = addTile score square Fa...
761
false
false
0
16
248
313
156
157
null
null
emc2/chill
src/IR/FlatIR/LLVMGen/Metadata.hs
bsd-3-clause
ptrClassValue Phantom = LLVM.mdString "phantom"
47
ptrClassValue Phantom = LLVM.mdString "phantom"
47
ptrClassValue Phantom = LLVM.mdString "phantom"
47
false
false
0
6
4
14
6
8
null
null
Kerl13/AsciiMath
src/lib/AsciiMath.hs
mit
readAscii :: String -> Either AsciimathException Code readAscii s = return . matrix =<< parseAscii =<< get_tokens s
115
readAscii :: String -> Either AsciimathException Code readAscii s = return . matrix =<< parseAscii =<< get_tokens s
115
readAscii s = return . matrix =<< parseAscii =<< get_tokens s
61
false
true
0
7
17
38
18
20
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/MediaControlsHost.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/MediaControlsHost.updateTextTrackContainer Mozilla MediaControlsHost.updateTextTrackContainer documentation> updateTextTrackContainer :: (MonadDOM m) => MediaControlsHost -> m () updateTextTrackContainer self = liftDOM (void (self ^. jsf...
352
updateTextTrackContainer :: (MonadDOM m) => MediaControlsHost -> m () updateTextTrackContainer self = liftDOM (void (self ^. jsf "updateTextTrackContainer" ()))
187
updateTextTrackContainer self = liftDOM (void (self ^. jsf "updateTextTrackContainer" ()))
92
true
true
0
11
52
56
28
28
null
null
mnicoletti/pdep-utn-frba
funcional/tps/00-tp-entrega-final.hs
mit
todd = ("Todd","Ned",(15,80))
29
todd = ("Todd","Ned",(15,80))
29
todd = ("Todd","Ned",(15,80))
29
false
false
0
6
2
21
13
8
null
null
mietek/untitled-wai
src/Auth.hs
bsd-3-clause
getName' :: AuthState -> SessionID -> IO (Maybe Name) getName' st sid = query1 (db' st) [sid] [sql| SELECT actor_email_name FROM sessions NATURAL JOIN actors WHERE session_id = ? |]
213
getName' :: AuthState -> SessionID -> IO (Maybe Name) getName' st sid = query1 (db' st) [sid] [sql| SELECT actor_email_name FROM sessions NATURAL JOIN actors WHERE session_id = ? |]
213
getName' st sid = query1 (db' st) [sid] [sql| SELECT actor_email_name FROM sessions NATURAL JOIN actors WHERE session_id = ? |]
159
false
true
0
9
61
53
28
25
null
null
kazu-yamamoto/http-types
Network/HTTP/Types/Header.hs
bsd-3-clause
hCookie = "Cookie"
27
hCookie = "Cookie"
27
hCookie = "Cookie"
27
false
false
1
5
11
10
3
7
null
null
tomahawkins/atom
Language/Atom/Language.hs
bsd-3-clause
period n atom' = do (st, (g, a)) <- get put (st, (g { gPeriod = n }, a)) r <- atom' (st', (g', a')) <- get put (st', (g' { gPeriod = gPeriod g }, a')) return r -- | Returns the execution period of the current scope.
228
period n atom' = do (st, (g, a)) <- get put (st, (g { gPeriod = n }, a)) r <- atom' (st', (g', a')) <- get put (st', (g' { gPeriod = gPeriod g }, a')) return r -- | Returns the execution period of the current scope.
228
period n atom' = do (st, (g, a)) <- get put (st, (g { gPeriod = n }, a)) r <- atom' (st', (g', a')) <- get put (st', (g' { gPeriod = gPeriod g }, a')) return r -- | Returns the execution period of the current scope.
228
false
false
0
12
61
118
64
54
null
null
brendanhay/gogol
gogol-apps-tasks/gen/Network/Google/Resource/Tasks/TaskLists/Insert.hs
mpl-2.0
-- | Upload protocol for media (e.g. \"raw\", \"multipart\"). tliUploadProtocol :: Lens' TaskListsInsert (Maybe Text) tliUploadProtocol = lens _tliUploadProtocol (\ s a -> s{_tliUploadProtocol = a})
206
tliUploadProtocol :: Lens' TaskListsInsert (Maybe Text) tliUploadProtocol = lens _tliUploadProtocol (\ s a -> s{_tliUploadProtocol = a})
144
tliUploadProtocol = lens _tliUploadProtocol (\ s a -> s{_tliUploadProtocol = a})
88
true
true
0
8
33
49
25
24
null
null
gridaphobe/ghc
compiler/typecheck/TcGenDeriv.hs
bsd-3-clause
geAddr_RDR = varQual_RDR gHC_PRIM (fsLit "geAddr#")
56
geAddr_RDR = varQual_RDR gHC_PRIM (fsLit "geAddr#")
56
geAddr_RDR = varQual_RDR gHC_PRIM (fsLit "geAddr#")
56
false
false
0
7
10
17
8
9
null
null
JustinUnger/haskell-book
ch18/ch18-ex-1.hs
mit
return = pure
13
return = pure
13
return = pure
13
false
false
1
5
2
10
3
7
null
null
bhamrick/wordpairs
Data/NFA.hs
bsd-3-clause
optionNFA :: NFA Int p -> NFA Int p optionNFA = intifyNFA . parNFA emptyNFA
75
optionNFA :: NFA Int p -> NFA Int p optionNFA = intifyNFA . parNFA emptyNFA
75
optionNFA = intifyNFA . parNFA emptyNFA
39
false
true
0
6
14
32
15
17
null
null
ice1000/OI-codes
codewars/301-400/tiny-three-pass-compiler.hs
agpl-3.0
binOp x = (reserved x >>) . return
34
binOp x = (reserved x >>) . return
34
binOp x = (reserved x >>) . return
34
false
false
0
7
7
20
10
10
null
null
yi-editor/yi-rope
src/Yi/Rope.hs
gpl-2.0
splitAt :: Int -> YiString -> (YiString, YiString) splitAt n (YiString t) | n <= 0 = (mempty, YiString t) | otherwise = case viewl s of Chunk l x :< ts | n' /= 0 -> let (lx, rx) = TX.splitAt n' x in (YiString $ f |> Chunk n' lx, YiString $ Chunk (l - n') rx -| ts) _ -> (YiString f, YiS...
456
splitAt :: Int -> YiString -> (YiString, YiString) splitAt n (YiString t) | n <= 0 = (mempty, YiString t) | otherwise = case viewl s of Chunk l x :< ts | n' /= 0 -> let (lx, rx) = TX.splitAt n' x in (YiString $ f |> Chunk n' lx, YiString $ Chunk (l - n') rx -| ts) _ -> (YiString f, YiS...
456
splitAt n (YiString t) | n <= 0 = (mempty, YiString t) | otherwise = case viewl s of Chunk l x :< ts | n' /= 0 -> let (lx, rx) = TX.splitAt n' x in (YiString $ f |> Chunk n' lx, YiString $ Chunk (l - n') rx -| ts) _ -> (YiString f, YiString s) where (f, s) = T.split ((> n) . char...
405
false
true
1
17
136
243
117
126
null
null
vito/atomo-old
Atomo/Internals.hs
mit
callify :: [AtomoVal] -> AtomoVal -> AtomoVal callify as t = callify' (reverse as) t where callify' [] t = ACall t ANone callify' (a:as) t = ACall (callify' as t) a
217
callify :: [AtomoVal] -> AtomoVal -> AtomoVal callify as t = callify' (reverse as) t where callify' [] t = ACall t ANone callify' (a:as) t = ACall (callify' as t) a
217
callify as t = callify' (reverse as) t where callify' [] t = ACall t ANone callify' (a:as) t = ACall (callify' as t) a
171
false
true
1
8
84
91
44
47
null
null
davidsundelius/JLC
src/TypeChecker.hs
mit
lookupVar :: Ident -> Env -> Err Type lookupVar i (_, []) = fail $ "[lookupVar] Variable not in scope: " ++ printTree i
121
lookupVar :: Ident -> Env -> Err Type lookupVar i (_, []) = fail $ "[lookupVar] Variable not in scope: " ++ printTree i
121
lookupVar i (_, []) = fail $ "[lookupVar] Variable not in scope: " ++ printTree i
83
false
true
0
7
25
46
23
23
null
null
nushio3/ghc
compiler/prelude/TysWiredIn.hs
bsd-3-clause
trNameTyCon :: TyCon trNameTyCon = pcNonRecDataTyCon trNameTyConName Nothing [] [trNameSDataCon, trNameDDataCon]
112
trNameTyCon :: TyCon trNameTyCon = pcNonRecDataTyCon trNameTyConName Nothing [] [trNameSDataCon, trNameDDataCon]
112
trNameTyCon = pcNonRecDataTyCon trNameTyConName Nothing [] [trNameSDataCon, trNameDDataCon]
91
false
true
0
6
10
28
15
13
null
null
shlevy/ghc
compiler/types/TyCoRep.hs
bsd-3-clause
isRuntimeRepTy _ = False
24
isRuntimeRepTy _ = False
24
isRuntimeRepTy _ = False
24
false
false
0
4
3
10
4
6
null
null
robdockins/edison
edison-core/src/Data/Edison/Coll/EnumSet.hs
mit
foldlBits_aux f z i w | i `seq` w `seq` False = undefined | otherwise = case w .&. 0x0F of 0x00 -> a $ z 0x01 -> a $ f z i 0x02 -> a $ f z (i+1) 0x03 -> a $ f (f z i) (i+1) 0x04 -> a $ f z (i+2) 0x05 -> a $ f (f z i) (i+2) 0x06 -> a $ f (f z (i+1)) (i+2) 0x07 -> a $ f (f...
758
foldlBits_aux f z i w | i `seq` w `seq` False = undefined | otherwise = case w .&. 0x0F of 0x00 -> a $ z 0x01 -> a $ f z i 0x02 -> a $ f z (i+1) 0x03 -> a $ f (f z i) (i+1) 0x04 -> a $ f z (i+2) 0x05 -> a $ f (f z i) (i+2) 0x06 -> a $ f (f z (i+1)) (i+2) 0x07 -> a $ f (f...
758
foldlBits_aux f z i w | i `seq` w `seq` False = undefined | otherwise = case w .&. 0x0F of 0x00 -> a $ z 0x01 -> a $ f z i 0x02 -> a $ f z (i+1) 0x03 -> a $ f (f z i) (i+1) 0x04 -> a $ f z (i+2) 0x05 -> a $ f (f z i) (i+2) 0x06 -> a $ f (f z (i+1)) (i+2) 0x07 -> a $ f (f...
758
false
false
1
15
279
632
321
311
null
null
ilyasergey/GHC-XAppFix
compiler/nativeGen/PPC/Ppr.hs
bsd-3-clause
pprAddr platform (AddrRegImm r1 (ImmInt i)) = hcat [ int i, char '(', pprReg platform r1, char ')' ]
100
pprAddr platform (AddrRegImm r1 (ImmInt i)) = hcat [ int i, char '(', pprReg platform r1, char ')' ]
100
pprAddr platform (AddrRegImm r1 (ImmInt i)) = hcat [ int i, char '(', pprReg platform r1, char ')' ]
100
false
false
0
9
18
55
26
29
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX :: GLenum gl_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B
94
gl_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX :: GLenum gl_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B
94
gl_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX = 0x904B
46
false
true
0
4
5
11
6
5
null
null
joel-wright/ZipperHS
Zipper.hs
mit
modifyFocus' (Node x l r) (R:ds) f = let r' = modifyFocus' r ds f in r' `seq` (Node x l r')
129
modifyFocus' (Node x l r) (R:ds) f = let r' = modifyFocus' r ds f in r' `seq` (Node x l r')
129
modifyFocus' (Node x l r) (R:ds) f = let r' = modifyFocus' r ds f in r' `seq` (Node x l r')
129
false
false
1
10
59
67
32
35
null
null
ekmett/ermine
src/Ermine/Pretty/Core.hs
bsd-2-clause
prettyCore vs prec k (Data cc tg g fs) = parensIf (prec > 10) . coreData cc tg g <$> traverse (prettyCore vs 11 k) fs
119
prettyCore vs prec k (Data cc tg g fs) = parensIf (prec > 10) . coreData cc tg g <$> traverse (prettyCore vs 11 k) fs
119
prettyCore vs prec k (Data cc tg g fs) = parensIf (prec > 10) . coreData cc tg g <$> traverse (prettyCore vs 11 k) fs
119
false
false
1
8
27
72
32
40
null
null
danchoi/sphinxesc
SphinxEscape.hs
mit
conjExpr :: Parser' Conj conjExpr = andExpr <|> orExpr
54
conjExpr :: Parser' Conj conjExpr = andExpr <|> orExpr
54
conjExpr = andExpr <|> orExpr
29
false
true
1
6
8
22
9
13
null
null
sebastiaanvisser/salvia-protocol
src/Network/Protocol/Uri/Parser.hs
bsd-3-clause
-- Not actually part of the rfc3986, but comptability with the rfc2396. -- This information can be useful, so why throw away. pHostname :: GenParser Char st [String] pHostname = sepBy (option "" pDomainlabel) (string ".")
222
pHostname :: GenParser Char st [String] pHostname = sepBy (option "" pDomainlabel) (string ".")
95
pHostname = sepBy (option "" pDomainlabel) (string ".")
55
true
true
0
7
36
42
22
20
null
null
d0kt0r0/estuary
client/src/Estuary/Widgets/Reference.hs
gpl-3.0
referenceWidget MiniTidal = do navEv <- goTo MainList $ (Map.fromList [(English, "Home"), (Español, "Inicio")]) el "h3" $ text "MiniTidal" miniTidalHelpFile return navEv
178
referenceWidget MiniTidal = do navEv <- goTo MainList $ (Map.fromList [(English, "Home"), (Español, "Inicio")]) el "h3" $ text "MiniTidal" miniTidalHelpFile return navEv
178
referenceWidget MiniTidal = do navEv <- goTo MainList $ (Map.fromList [(English, "Home"), (Español, "Inicio")]) el "h3" $ text "MiniTidal" miniTidalHelpFile return navEv
178
false
false
0
13
30
74
35
39
null
null
jcaesar/Iptables_Semantics
haskell_tool/lib/Network/IPTables/Ruleset.hs
bsd-2-clause
to_Isabelle_Rule :: Isabelle.Len a => ParseRule a -> Isabelle.Rule (Isabelle.Common_primitive a) to_Isabelle_Rule r = Isabelle.Rule (Isabelle.alist_and $ Isabelle.fill_l4_protocol $ Isabelle.compress_parsed_extra (fMatch (ruleArgs r))) (filter_Isabelle_Action (ruleArgs r)...
713
to_Isabelle_Rule :: Isabelle.Len a => ParseRule a -> Isabelle.Rule (Isabelle.Common_primitive a) to_Isabelle_Rule r = Isabelle.Rule (Isabelle.alist_and $ Isabelle.fill_l4_protocol $ Isabelle.compress_parsed_extra (fMatch (ruleArgs r))) (filter_Isabelle_Action (ruleArgs r)...
713
to_Isabelle_Rule r = Isabelle.Rule (Isabelle.alist_and $ Isabelle.fill_l4_protocol $ Isabelle.compress_parsed_extra (fMatch (ruleArgs r))) (filter_Isabelle_Action (ruleArgs r)) where --filter out the Matches (Common_primitive) in ParsedMatchAction fMatch :: ...
616
false
true
5
12
177
220
107
113
null
null
girving/duck
duck/Lir.hs
bsd-3-clause
free' s l (ExpApply e1 e2) = free' s l e1 ++ free' s l e2
57
free' s l (ExpApply e1 e2) = free' s l e1 ++ free' s l e2
57
free' s l (ExpApply e1 e2) = free' s l e1 ++ free' s l e2
57
false
false
0
7
15
39
18
21
null
null
ksallberg/adventofcode
2015/src/Day9.hs
bsd-2-clause
cost "Straylight" "AlphaCentauri" = Just 107
44
cost "Straylight" "AlphaCentauri" = Just 107
44
cost "Straylight" "AlphaCentauri" = Just 107
44
false
false
0
5
5
14
6
8
null
null
meimisaki/Yampa
src/FRP/Yampa/Event.hs
bsd-3-clause
e `gate` True = e
18
e `gate` True = e
18
e `gate` True = e
18
false
false
0
5
5
18
8
10
null
null
ambiata/delorean
test/Test/Delorean/Local/Date.hs
bsd-3-clause
prop_symmetricYear :: Year -> Property prop_symmetricYear = symmetric yearParser (p 4 . yearToInt)
100
prop_symmetricYear :: Year -> Property prop_symmetricYear = symmetric yearParser (p 4 . yearToInt)
100
prop_symmetricYear = symmetric yearParser (p 4 . yearToInt)
61
false
true
0
8
14
38
16
22
null
null