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
mainland/dph
dph-prim-seq/Data/Array/Parallel/Unlifted/Sequential/USel.hs
bsd-3-clause
-- | O(1). Get the number of elements that will be taken from the first array. elementsUSel2_0 :: USel2 -> Int elementsUSel2_0 = usel2_elements0
144
elementsUSel2_0 :: USel2 -> Int elementsUSel2_0 = usel2_elements0
65
elementsUSel2_0 = usel2_elements0
33
true
true
0
5
23
16
9
7
null
null
jean-edouard/manager
rpc-proxy/Msg/JsonConv.hs
gpl-2.0
convJArg DBusInt32 (JArgNumber x) = Just $ toVariant (floor x :: Int32)
71
convJArg DBusInt32 (JArgNumber x) = Just $ toVariant (floor x :: Int32)
71
convJArg DBusInt32 (JArgNumber x) = Just $ toVariant (floor x :: Int32)
71
false
false
0
8
11
33
16
17
null
null
romanb/amazonka
amazonka-rds/gen/Network/AWS/RDS/Types.hs
mpl-2.0
-- | Provides the list of DB parameter groups applied to this DB instance. dbiDBParameterGroups :: Lens' DBInstance [DBParameterGroupStatus] dbiDBParameterGroups = lens _dbiDBParameterGroups (\s a -> s { _dbiDBParameterGroups = a }) . _List
252
dbiDBParameterGroups :: Lens' DBInstance [DBParameterGroupStatus] dbiDBParameterGroups = lens _dbiDBParameterGroups (\s a -> s { _dbiDBParameterGroups = a }) . _List
177
dbiDBParameterGroups = lens _dbiDBParameterGroups (\s a -> s { _dbiDBParameterGroups = a }) . _List
111
true
true
0
10
45
47
26
21
null
null
JoeyEremondi/utrecht-apa-p1
src/Optimize/MonotoneFramework.hs
bsd-3-clause
{-| Iteratively join all the lattice elements in a list |-} joinAll :: (Lattice a) -> [a] -> a joinAll Lattice{..} = foldl' latticeJoin latticeBottom
149
joinAll :: (Lattice a) -> [a] -> a joinAll Lattice{..} = foldl' latticeJoin latticeBottom
89
joinAll Lattice{..} = foldl' latticeJoin latticeBottom
54
true
true
0
7
24
43
22
21
null
null
nevrenato/Hets_Fork
Maude/Maude2DG.hs
gpl-2.0
instantiateSortString (c : cs) param view = c : instantiateSortString cs param view
88
instantiateSortString (c : cs) param view = c : instantiateSortString cs param view
88
instantiateSortString (c : cs) param view = c : instantiateSortString cs param view
88
false
false
3
7
17
36
15
21
null
null
mzini/termlib
Termlib/Signature.hs
gpl-3.0
fresh :: Enumerateable sym => attribs -> SignatureMonad sym attribs sym fresh attribs = do Signature (sig,cnt) <- SignatureMonad State.get let cnt' = cnt + 1 sig' = IntMap.insert cnt' attribs sig SignatureMonad $ State.put $ Signature (sig', cnt') return $ invEnum cnt'
350
fresh :: Enumerateable sym => attribs -> SignatureMonad sym attribs sym fresh attribs = do Signature (sig,cnt) <- SignatureMonad State.get let cnt' = cnt + 1 sig' = IntMap.insert cnt' attribs sig SignatureMonad $ State.put $ Signature (sig', cnt') return $ invEnum cnt'
350
fresh attribs = do Signature (sig,cnt) <- SignatureMonad State.get let cnt' = cnt + 1 sig' = IntMap.insert cnt' attribs sig SignatureMonad $ State.put $ Signature (sig', cnt') return $ invEnum cnt'
278
false
true
0
12
123
117
54
63
null
null
alexander-at-github/eta
compiler/ETA/Prelude/PrimOp.hs
bsd-3-clause
primOpCanFail IndexJByteArrayOp = True
40
primOpCanFail IndexJByteArrayOp = True
40
primOpCanFail IndexJByteArrayOp = True
40
false
false
0
5
5
9
4
5
null
null
ducis/haAni
hs/common/Graphics/UI/GLUT/Objects.hs
gpl-2.0
renderObject Wireframe Dodecahedron = wireDodecahedron
62
renderObject Wireframe Dodecahedron = wireDodecahedron
62
renderObject Wireframe Dodecahedron = wireDodecahedron
62
false
false
0
5
12
11
5
6
null
null
da-x/lamdu
bottlelib/Graphics/UI/Bottle/Widget.hs
gpl-3.0
animIdMappingFromPrefixMap :: Map AnimId AnimId -> Monoid.Endo AnimId animIdMappingFromPrefixMap = Monoid.Endo . Anim.mappingFromPrefixMap
138
animIdMappingFromPrefixMap :: Map AnimId AnimId -> Monoid.Endo AnimId animIdMappingFromPrefixMap = Monoid.Endo . Anim.mappingFromPrefixMap
138
animIdMappingFromPrefixMap = Monoid.Endo . Anim.mappingFromPrefixMap
68
false
true
0
7
12
33
16
17
null
null
GaloisInc/halvm-ghc
compiler/deSugar/Coverage.hs
bsd-3-clause
addTickGRHSs :: Bool -> Bool -> GRHSs Id (LHsExpr Id) -> TM (GRHSs Id (LHsExpr Id)) addTickGRHSs isOneOfMany isLambda (GRHSs guarded (L l local_binds)) = do bindLocals binders $ do local_binds' <- addTickHsLocalBinds local_binds guarded' <- mapM (liftL (addTickGRHS isOneOfMany isLambda)) guarded return $ GRHSs guarded' (L l local_binds') where binders = collectLocalBinders local_binds
407
addTickGRHSs :: Bool -> Bool -> GRHSs Id (LHsExpr Id) -> TM (GRHSs Id (LHsExpr Id)) addTickGRHSs isOneOfMany isLambda (GRHSs guarded (L l local_binds)) = do bindLocals binders $ do local_binds' <- addTickHsLocalBinds local_binds guarded' <- mapM (liftL (addTickGRHS isOneOfMany isLambda)) guarded return $ GRHSs guarded' (L l local_binds') where binders = collectLocalBinders local_binds
407
addTickGRHSs isOneOfMany isLambda (GRHSs guarded (L l local_binds)) = do bindLocals binders $ do local_binds' <- addTickHsLocalBinds local_binds guarded' <- mapM (liftL (addTickGRHS isOneOfMany isLambda)) guarded return $ GRHSs guarded' (L l local_binds') where binders = collectLocalBinders local_binds
323
false
true
0
15
73
151
70
81
null
null
jstolarek/ghc
compiler/main/DriverPipeline.hs
bsd-3-clause
getBackendDefs _ = return []
32
getBackendDefs _ = return []
32
getBackendDefs _ = return []
32
false
false
0
6
8
14
6
8
null
null
keithodulaigh/Hets
OMDoc/Import.hs
gpl-2.0
getIri :: IriCD -> Maybe IRI getIri = fst
41
getIri :: IriCD -> Maybe IRI getIri = fst
41
getIri = fst
12
false
true
0
7
8
24
10
14
null
null
Rathcke/uni
ap/advanced programming/exam/src/subs/SubsInterpreter.hs
gpl-3.0
evalExpr (Compr (iden, e1, _) e2) = do env <- getEnv ev1 <- evalExpr e1 let tempEnv = env case ev1 of ArrayVal e -> do resList <- evalComprList e iden e2 env resetEnv tempEnv return $ ArrayVal resList StringVal s -> do resList <- evalComprList' s iden e2 env resetEnv tempEnv return $ StringVal $ collapse resList _ -> fail "List comprehension: type not supported"
505
evalExpr (Compr (iden, e1, _) e2) = do env <- getEnv ev1 <- evalExpr e1 let tempEnv = env case ev1 of ArrayVal e -> do resList <- evalComprList e iden e2 env resetEnv tempEnv return $ ArrayVal resList StringVal s -> do resList <- evalComprList' s iden e2 env resetEnv tempEnv return $ StringVal $ collapse resList _ -> fail "List comprehension: type not supported"
505
evalExpr (Compr (iden, e1, _) e2) = do env <- getEnv ev1 <- evalExpr e1 let tempEnv = env case ev1 of ArrayVal e -> do resList <- evalComprList e iden e2 env resetEnv tempEnv return $ ArrayVal resList StringVal s -> do resList <- evalComprList' s iden e2 env resetEnv tempEnv return $ StringVal $ collapse resList _ -> fail "List comprehension: type not supported"
505
false
false
0
13
206
154
68
86
null
null
rodrigosetti/messagepack
Data/MessagePack/Spec.hs
mit
-- 11011001 str16 = 0xda
28
str16 = 0xda
16
str16 = 0xda
16
true
false
1
5
8
11
4
7
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/HTMLLinkElement.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement.href Mozilla HTMLLinkElement.href documentation> getHref :: (MonadDOM m, FromJSString result) => HTMLLinkElement -> m result getHref self = liftDOM ((self ^. js "href") >>= fromJSValUnchecked)
272
getHref :: (MonadDOM m, FromJSString result) => HTMLLinkElement -> m result getHref self = liftDOM ((self ^. js "href") >>= fromJSValUnchecked)
151
getHref self = liftDOM ((self ^. js "href") >>= fromJSValUnchecked)
67
true
true
0
10
35
57
29
28
null
null
tpsinnem/Idris-dev
src/Idris/Parser/Helpers.hs
bsd-3-clause
collect (PMutual f ms : ds) = PMutual f (collect ms) : collect ds
65
collect (PMutual f ms : ds) = PMutual f (collect ms) : collect ds
65
collect (PMutual f ms : ds) = PMutual f (collect ms) : collect ds
65
false
false
0
8
13
40
18
22
null
null
anwb/fp-one-on-one
lecture-03-hw.hs
mit
not' False = True
17
not' False = True
17
not' False = True
17
false
false
0
4
3
10
4
6
null
null
revnull/fixfile
tests/TestLightBTree.hs
lgpl-3.0
prop_BTreeFilter :: [(Int, String)] -> Int -> String -> Bool prop_BTreeFilter xs k v = testFilt where empt = empty :: Fix (BTree 3 Int String) baseSet = foldr (uncurry insertBTree) empt xs delSet = deleteBTree k baseSet fullSet = insertBTree k v $ insertBTree k ('a':v) delSet filtSet = filterBTree k (== v) fullSet testFilt = [v] == lookupBTree k filtSet
379
prop_BTreeFilter :: [(Int, String)] -> Int -> String -> Bool prop_BTreeFilter xs k v = testFilt where empt = empty :: Fix (BTree 3 Int String) baseSet = foldr (uncurry insertBTree) empt xs delSet = deleteBTree k baseSet fullSet = insertBTree k v $ insertBTree k ('a':v) delSet filtSet = filterBTree k (== v) fullSet testFilt = [v] == lookupBTree k filtSet
379
prop_BTreeFilter xs k v = testFilt where empt = empty :: Fix (BTree 3 Int String) baseSet = foldr (uncurry insertBTree) empt xs delSet = deleteBTree k baseSet fullSet = insertBTree k v $ insertBTree k ('a':v) delSet filtSet = filterBTree k (== v) fullSet testFilt = [v] == lookupBTree k filtSet
318
false
true
0
10
85
151
79
72
null
null
emwap/feldspar-language
src/Feldspar/Option.hs
bsd-3-clause
oplus :: Syntax a => Option a -> Option a -> Option a oplus a b = isSome a ? a $ b
82
oplus :: Syntax a => Option a -> Option a -> Option a oplus a b = isSome a ? a $ b
82
oplus a b = isSome a ? a $ b
28
false
true
0
8
22
51
23
28
null
null
k0001/gtk2hs
tools/c2hs/gen/GenBind.hs
gpl-3.0
applyBin cpos CShrOp (FloatResult x) (FloatResult y) = illegalConstExprErr cpos "a >> operator applied to a float"
139
applyBin cpos CShrOp (FloatResult x) (FloatResult y) = illegalConstExprErr cpos "a >> operator applied to a float"
139
applyBin cpos CShrOp (FloatResult x) (FloatResult y) = illegalConstExprErr cpos "a >> operator applied to a float"
139
false
false
0
7
41
32
15
17
null
null
botandrose/eboshi_api_shootout
haskell_scotty/JSONAPIResponse.hs
mit
dataResponse :: ToJSON a => a -> Value dataResponse jsonable = object [ "data" .= jsonable ]
96
dataResponse :: ToJSON a => a -> Value dataResponse jsonable = object [ "data" .= jsonable ]
96
dataResponse jsonable = object [ "data" .= jsonable ]
57
false
true
0
7
20
39
18
21
null
null
HJvT/hdirect
src/Parser.hs
bsd-3-clause
action_116 (147#) = happyShift action_112
41
action_116 (147#) = happyShift action_112
41
action_116 (147#) = happyShift action_112
41
false
false
0
6
4
15
7
8
null
null
cheme/nanomsg-hs
System/NanoMsg.hs
mit
sendMsg :: (Sender a, Message b) => Socket a -> [Flag] -> b -> IO Int sendMsg (Socket s) fls msg = nnSendmsg s (getCPtr msg) fls >>= eitherError "sendMsg"
154
sendMsg :: (Sender a, Message b) => Socket a -> [Flag] -> b -> IO Int sendMsg (Socket s) fls msg = nnSendmsg s (getCPtr msg) fls >>= eitherError "sendMsg"
154
sendMsg (Socket s) fls msg = nnSendmsg s (getCPtr msg) fls >>= eitherError "sendMsg"
84
false
true
0
9
29
80
39
41
null
null
mwotton/sofadb
mkindex.hs
bsd-3-clause
pp :: (String,FileStatus) -> (String,String,String,Int) pp (f,st) = (file,mtime,size,flen) where file = ppFile f st flen = length file mtime = ppMtime st size = ppSize st
188
pp :: (String,FileStatus) -> (String,String,String,Int) pp (f,st) = (file,mtime,size,flen) where file = ppFile f st flen = length file mtime = ppMtime st size = ppSize st
188
pp (f,st) = (file,mtime,size,flen) where file = ppFile f st flen = length file mtime = ppMtime st size = ppSize st
132
false
true
4
8
44
110
52
58
null
null
romanb/amazonka
amazonka-cognito-sync/gen/Network/AWS/CognitoSync/UpdateRecords.hs
mpl-2.0
-- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' -- (underscore), '-' (dash), and '.' (dot). urDatasetName :: Lens' UpdateRecords Text urDatasetName = lens _urDatasetName (\s a -> s { _urDatasetName = a })
237
urDatasetName :: Lens' UpdateRecords Text urDatasetName = lens _urDatasetName (\s a -> s { _urDatasetName = a })
112
urDatasetName = lens _urDatasetName (\s a -> s { _urDatasetName = a })
70
true
true
0
9
40
41
23
18
null
null
Javran/tuppence
src/Kantour/AswEquip.hs
mit
aswEquips :: [ASWEquip] aswEquips = [ ASWE "三式爆雷投射機" 8 DCP , ASWE "二式爆雷" 7 DC , ASWE "九五式爆雷" 4 DC , ASWE "三式水中探信儀" 10 Sonar , ASWE "四式水中聴音機" 12 Sonar ]
163
aswEquips :: [ASWEquip] aswEquips = [ ASWE "三式爆雷投射機" 8 DCP , ASWE "二式爆雷" 7 DC , ASWE "九五式爆雷" 4 DC , ASWE "三式水中探信儀" 10 Sonar , ASWE "四式水中聴音機" 12 Sonar ]
163
aswEquips = [ ASWE "三式爆雷投射機" 8 DCP , ASWE "二式爆雷" 7 DC , ASWE "九五式爆雷" 4 DC , ASWE "三式水中探信儀" 10 Sonar , ASWE "四式水中聴音機" 12 Sonar ]
139
false
true
0
6
42
64
33
31
null
null
NICTA/coordinate
src/Data/Geodetic/EllipsoidReaderT.hs
bsd-3-clause
readFlatteningReciprocal :: Applicative f => EllipsoidReaderT f Double readFlatteningReciprocal = (^. flatteningReciprocal) <$> readEllipsoid
147
readFlatteningReciprocal :: Applicative f => EllipsoidReaderT f Double readFlatteningReciprocal = (^. flatteningReciprocal) <$> readEllipsoid
147
readFlatteningReciprocal = (^. flatteningReciprocal) <$> readEllipsoid
72
false
true
0
6
19
31
16
15
null
null
osa1/Idris-dev
src/Idris/Error.hs
bsd-3-clause
warnDisamb ist (PDisamb ds tm) = warnDisamb ist tm >> mapM_ warnEmpty ds where warnEmpty d = when (not (any (isIn d . fst) (ctxtAlist (tt_ctxt ist)))) $ ierror . Msg $ "Nothing found in namespace \"" ++ intercalate "." (map T.unpack d) ++ "\"." isIn d (NS _ ns) = isPrefixOf d ns isIn d _ = False
411
warnDisamb ist (PDisamb ds tm) = warnDisamb ist tm >> mapM_ warnEmpty ds where warnEmpty d = when (not (any (isIn d . fst) (ctxtAlist (tt_ctxt ist)))) $ ierror . Msg $ "Nothing found in namespace \"" ++ intercalate "." (map T.unpack d) ++ "\"." isIn d (NS _ ns) = isPrefixOf d ns isIn d _ = False
411
warnDisamb ist (PDisamb ds tm) = warnDisamb ist tm >> mapM_ warnEmpty ds where warnEmpty d = when (not (any (isIn d . fst) (ctxtAlist (tt_ctxt ist)))) $ ierror . Msg $ "Nothing found in namespace \"" ++ intercalate "." (map T.unpack d) ++ "\"." isIn d (NS _ ns) = isPrefixOf d ns isIn d _ = False
411
false
false
4
13
173
164
72
92
null
null
brendanhay/gogol
gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/DicomStores/Deidentify.hs
mpl-2.0
-- | Creates a value of 'ProjectsLocationsDataSetsDicomStoresDeidentify' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'pldsdsdXgafv' -- -- * 'pldsdsdUploadProtocol' -- -- * 'pldsdsdAccessToken' -- -- * 'pldsdsdUploadType' -- -- * 'pldsdsdPayload' -- -- * 'pldsdsdSourceStore' -- -- * 'pldsdsdCallback' projectsLocationsDataSetsDicomStoresDeidentify :: DeidentifyDicomStoreRequest -- ^ 'pldsdsdPayload' -> Text -- ^ 'pldsdsdSourceStore' -> ProjectsLocationsDataSetsDicomStoresDeidentify projectsLocationsDataSetsDicomStoresDeidentify pPldsdsdPayload_ pPldsdsdSourceStore_ = ProjectsLocationsDataSetsDicomStoresDeidentify' { _pldsdsdXgafv = Nothing , _pldsdsdUploadProtocol = Nothing , _pldsdsdAccessToken = Nothing , _pldsdsdUploadType = Nothing , _pldsdsdPayload = pPldsdsdPayload_ , _pldsdsdSourceStore = pPldsdsdSourceStore_ , _pldsdsdCallback = Nothing }
991
projectsLocationsDataSetsDicomStoresDeidentify :: DeidentifyDicomStoreRequest -- ^ 'pldsdsdPayload' -> Text -- ^ 'pldsdsdSourceStore' -> ProjectsLocationsDataSetsDicomStoresDeidentify projectsLocationsDataSetsDicomStoresDeidentify pPldsdsdPayload_ pPldsdsdSourceStore_ = ProjectsLocationsDataSetsDicomStoresDeidentify' { _pldsdsdXgafv = Nothing , _pldsdsdUploadProtocol = Nothing , _pldsdsdAccessToken = Nothing , _pldsdsdUploadType = Nothing , _pldsdsdPayload = pPldsdsdPayload_ , _pldsdsdSourceStore = pPldsdsdSourceStore_ , _pldsdsdCallback = Nothing }
601
projectsLocationsDataSetsDicomStoresDeidentify pPldsdsdPayload_ pPldsdsdSourceStore_ = ProjectsLocationsDataSetsDicomStoresDeidentify' { _pldsdsdXgafv = Nothing , _pldsdsdUploadProtocol = Nothing , _pldsdsdAccessToken = Nothing , _pldsdsdUploadType = Nothing , _pldsdsdPayload = pPldsdsdPayload_ , _pldsdsdSourceStore = pPldsdsdSourceStore_ , _pldsdsdCallback = Nothing }
405
true
true
0
8
150
96
62
34
null
null
brendanhay/gogol
gogol-sheets/gen/Network/Google/Sheets/Types/Product.hs
mpl-2.0
-- | The size of the buckets that are created. Must be positive. hrInterval :: Lens' HistogramRule (Maybe Double) hrInterval = lens _hrInterval (\ s a -> s{_hrInterval = a}) . mapping _Coerce
199
hrInterval :: Lens' HistogramRule (Maybe Double) hrInterval = lens _hrInterval (\ s a -> s{_hrInterval = a}) . mapping _Coerce
134
hrInterval = lens _hrInterval (\ s a -> s{_hrInterval = a}) . mapping _Coerce
85
true
true
1
9
40
59
28
31
null
null
winterland1989/stdio
System/IO/FileSystem.hs
bsd-3-clause
scandir :: CBytes -> IO [(CBytes, UVDirEntType)] scandir path = withCBytes path $ \ p -> withResource (initUVReq uV_FS) $ \ req -> do uvFSScandir nullPtr req p False go req where go req = do withResource initUVDirEnt $ \ ent -> do r <- uv_fs_scandir_next req ent if r == uV_EOF then return [] else if r < 0 then do throwUVIfMinus_ $ return r return [] else do (path, typ) <- peekUVDirEnt ent path' <- fromCString path rest <- go req return ((path', typ) : rest)
695
scandir :: CBytes -> IO [(CBytes, UVDirEntType)] scandir path = withCBytes path $ \ p -> withResource (initUVReq uV_FS) $ \ req -> do uvFSScandir nullPtr req p False go req where go req = do withResource initUVDirEnt $ \ ent -> do r <- uv_fs_scandir_next req ent if r == uV_EOF then return [] else if r < 0 then do throwUVIfMinus_ $ return r return [] else do (path, typ) <- peekUVDirEnt ent path' <- fromCString path rest <- go req return ((path', typ) : rest)
695
scandir path = withCBytes path $ \ p -> withResource (initUVReq uV_FS) $ \ req -> do uvFSScandir nullPtr req p False go req where go req = do withResource initUVDirEnt $ \ ent -> do r <- uv_fs_scandir_next req ent if r == uV_EOF then return [] else if r < 0 then do throwUVIfMinus_ $ return r return [] else do (path, typ) <- peekUVDirEnt ent path' <- fromCString path rest <- go req return ((path', typ) : rest)
646
false
true
0
18
321
220
105
115
null
null
albertov/hs-mapnik
setup/src/Mapnik/Setup.hs
bsd-3-clause
icuConfig = configProg True "icu-config" "ICU_CONFIG"
53
icuConfig = configProg True "icu-config" "ICU_CONFIG"
53
icuConfig = configProg True "icu-config" "ICU_CONFIG"
53
false
false
0
5
5
13
6
7
null
null
atodorov/bdcs
src/BDCS/Label/InfoPage.hs
lgpl-2.1
matches :: Files -> Bool matches Files{..} = let compressedInfoPageExt = "\\.info-[0-9]+\\.gz" :: String filesPath' = T.unpack filesPath in "/usr/share/info/" `isPrefixOf` filesPath' && (".info.gz" `isSuffixOf` filesPath' || filesPath' =~ compressedInfoPageExt)
289
matches :: Files -> Bool matches Files{..} = let compressedInfoPageExt = "\\.info-[0-9]+\\.gz" :: String filesPath' = T.unpack filesPath in "/usr/share/info/" `isPrefixOf` filesPath' && (".info.gz" `isSuffixOf` filesPath' || filesPath' =~ compressedInfoPageExt)
289
matches Files{..} = let compressedInfoPageExt = "\\.info-[0-9]+\\.gz" :: String filesPath' = T.unpack filesPath in "/usr/share/info/" `isPrefixOf` filesPath' && (".info.gz" `isSuffixOf` filesPath' || filesPath' =~ compressedInfoPageExt)
264
false
true
3
10
57
84
42
42
null
null
snoyberg/ghc
compiler/typecheck/FamInst.hs
bsd-3-clause
unusedInjTvsInRHS :: TyCon -> [Bool] -> [Type] -> Type -> Pair TyVarSet -- INVARIANT: [Bool] list contains at least one True value -- See Note [Verifying injectivity annotation]. This function implements fourth -- check described there. -- In theory, instead of implementing this whole check in this way, we could -- attempt to unify equation with itself. We would reject exactly the same -- equations but this method gives us more precise error messages by returning -- precise names of variables that are not mentioned in the RHS. unusedInjTvsInRHS tycon injList lhs rhs = (`minusVarSet` injRhsVars) <$> injLHSVars where -- set of type and kind variables in which type family is injective (invis_pairs, vis_pairs) = partitionInvisibles tycon snd (zipEqual "unusedInjTvsInRHS" injList lhs) invis_lhs = uncurry filterByList $ unzip invis_pairs vis_lhs = uncurry filterByList $ unzip vis_pairs invis_vars = tyCoVarsOfTypes invis_lhs Pair invis_vars' vis_vars = splitVisVarsOfTypes vis_lhs injLHSVars = Pair (invis_vars `minusVarSet` vis_vars `unionVarSet` invis_vars') vis_vars -- set of type variables appearing in the RHS on an injective position. -- For all returned variables we assume their associated kind variables -- also appear in the RHS. injRhsVars = collectInjVars rhs -- Collect all type variables that are either arguments to a type -- constructor or to injective type families. collectInjVars :: Type -> VarSet collectInjVars (TyVarTy v) = unitVarSet v `unionVarSet` collectInjVars (tyVarKind v) collectInjVars (TyConApp tc tys) | isTypeFamilyTyCon tc = collectInjTFVars tys (familyTyConInjectivityInfo tc) | otherwise = mapUnionVarSet collectInjVars tys collectInjVars (LitTy {}) = emptyVarSet collectInjVars (FunTy arg res) = collectInjVars arg `unionVarSet` collectInjVars res collectInjVars (AppTy fun arg) = collectInjVars fun `unionVarSet` collectInjVars arg -- no forall types in the RHS of a type family collectInjVars (ForAllTy {}) = panic "unusedInjTvsInRHS.collectInjVars" collectInjVars (CastTy ty _) = collectInjVars ty collectInjVars (CoercionTy {}) = emptyVarSet collectInjTFVars :: [Type] -> Injectivity -> VarSet collectInjTFVars _ NotInjective = emptyVarSet collectInjTFVars tys (Injective injList) = mapUnionVarSet collectInjVars (filterByList injList tys) -- | Is type headed by a type family application?
2,684
unusedInjTvsInRHS :: TyCon -> [Bool] -> [Type] -> Type -> Pair TyVarSet unusedInjTvsInRHS tycon injList lhs rhs = (`minusVarSet` injRhsVars) <$> injLHSVars where -- set of type and kind variables in which type family is injective (invis_pairs, vis_pairs) = partitionInvisibles tycon snd (zipEqual "unusedInjTvsInRHS" injList lhs) invis_lhs = uncurry filterByList $ unzip invis_pairs vis_lhs = uncurry filterByList $ unzip vis_pairs invis_vars = tyCoVarsOfTypes invis_lhs Pair invis_vars' vis_vars = splitVisVarsOfTypes vis_lhs injLHSVars = Pair (invis_vars `minusVarSet` vis_vars `unionVarSet` invis_vars') vis_vars -- set of type variables appearing in the RHS on an injective position. -- For all returned variables we assume their associated kind variables -- also appear in the RHS. injRhsVars = collectInjVars rhs -- Collect all type variables that are either arguments to a type -- constructor or to injective type families. collectInjVars :: Type -> VarSet collectInjVars (TyVarTy v) = unitVarSet v `unionVarSet` collectInjVars (tyVarKind v) collectInjVars (TyConApp tc tys) | isTypeFamilyTyCon tc = collectInjTFVars tys (familyTyConInjectivityInfo tc) | otherwise = mapUnionVarSet collectInjVars tys collectInjVars (LitTy {}) = emptyVarSet collectInjVars (FunTy arg res) = collectInjVars arg `unionVarSet` collectInjVars res collectInjVars (AppTy fun arg) = collectInjVars fun `unionVarSet` collectInjVars arg -- no forall types in the RHS of a type family collectInjVars (ForAllTy {}) = panic "unusedInjTvsInRHS.collectInjVars" collectInjVars (CastTy ty _) = collectInjVars ty collectInjVars (CoercionTy {}) = emptyVarSet collectInjTFVars :: [Type] -> Injectivity -> VarSet collectInjTFVars _ NotInjective = emptyVarSet collectInjTFVars tys (Injective injList) = mapUnionVarSet collectInjVars (filterByList injList tys) -- | Is type headed by a type family application?
2,222
unusedInjTvsInRHS tycon injList lhs rhs = (`minusVarSet` injRhsVars) <$> injLHSVars where -- set of type and kind variables in which type family is injective (invis_pairs, vis_pairs) = partitionInvisibles tycon snd (zipEqual "unusedInjTvsInRHS" injList lhs) invis_lhs = uncurry filterByList $ unzip invis_pairs vis_lhs = uncurry filterByList $ unzip vis_pairs invis_vars = tyCoVarsOfTypes invis_lhs Pair invis_vars' vis_vars = splitVisVarsOfTypes vis_lhs injLHSVars = Pair (invis_vars `minusVarSet` vis_vars `unionVarSet` invis_vars') vis_vars -- set of type variables appearing in the RHS on an injective position. -- For all returned variables we assume their associated kind variables -- also appear in the RHS. injRhsVars = collectInjVars rhs -- Collect all type variables that are either arguments to a type -- constructor or to injective type families. collectInjVars :: Type -> VarSet collectInjVars (TyVarTy v) = unitVarSet v `unionVarSet` collectInjVars (tyVarKind v) collectInjVars (TyConApp tc tys) | isTypeFamilyTyCon tc = collectInjTFVars tys (familyTyConInjectivityInfo tc) | otherwise = mapUnionVarSet collectInjVars tys collectInjVars (LitTy {}) = emptyVarSet collectInjVars (FunTy arg res) = collectInjVars arg `unionVarSet` collectInjVars res collectInjVars (AppTy fun arg) = collectInjVars fun `unionVarSet` collectInjVars arg -- no forall types in the RHS of a type family collectInjVars (ForAllTy {}) = panic "unusedInjTvsInRHS.collectInjVars" collectInjVars (CastTy ty _) = collectInjVars ty collectInjVars (CoercionTy {}) = emptyVarSet collectInjTFVars :: [Type] -> Injectivity -> VarSet collectInjTFVars _ NotInjective = emptyVarSet collectInjTFVars tys (Injective injList) = mapUnionVarSet collectInjVars (filterByList injList tys) -- | Is type headed by a type family application?
2,150
true
true
6
9
671
470
237
233
null
null
erochest/github
Github/Repos.hs
bsd-3-clause
-- | The contributors to a repo, given the owner and repo name. -- -- > contributors "thoughtbot" "paperclip" contributors :: String -> String -> IO (Either Error [Contributor]) contributors userName repoName = githubGet ["repos", userName, repoName, "contributors"]
268
contributors :: String -> String -> IO (Either Error [Contributor]) contributors userName repoName = githubGet ["repos", userName, repoName, "contributors"]
158
contributors userName repoName = githubGet ["repos", userName, repoName, "contributors"]
90
true
true
0
10
39
56
31
25
null
null
olsner/ghc
testsuite/tests/perf/compiler/T10370.hs
bsd-3-clause
a929 :: IO (); a929 = forever $ putStrLn "a929"
47
a929 :: IO () a929 = forever $ putStrLn "a929"
46
a929 = forever $ putStrLn "a929"
32
false
true
0
6
9
24
12
12
null
null
sixears/getopt
src/Console/Getopt.hs
mit
maybeGet2Args d Nothing (h : t1) opt_name = case splitOn2 d h of (_, "") -> -- delimiter not found, use next argument case t1 of [] -> -- --opt key #END; we're missing a -- value for the key (Left $ err_reqkval h opt_name, []) v : t2 -> (Right (h, v), t2) ("", h') -> -- delimiter is empty, use next argument case t1 of [] -> -- --opt key #END; we're missing a -- value for the key (Left $ err_reqkval h' opt_name, []) v : t2 -> (Right (h',v), t2) (k, v) -> -- k, v found (Right (k,v), t1)
746
maybeGet2Args d Nothing (h : t1) opt_name = case splitOn2 d h of (_, "") -> -- delimiter not found, use next argument case t1 of [] -> -- --opt key #END; we're missing a -- value for the key (Left $ err_reqkval h opt_name, []) v : t2 -> (Right (h, v), t2) ("", h') -> -- delimiter is empty, use next argument case t1 of [] -> -- --opt key #END; we're missing a -- value for the key (Left $ err_reqkval h' opt_name, []) v : t2 -> (Right (h',v), t2) (k, v) -> -- k, v found (Right (k,v), t1)
746
maybeGet2Args d Nothing (h : t1) opt_name = case splitOn2 d h of (_, "") -> -- delimiter not found, use next argument case t1 of [] -> -- --opt key #END; we're missing a -- value for the key (Left $ err_reqkval h opt_name, []) v : t2 -> (Right (h, v), t2) ("", h') -> -- delimiter is empty, use next argument case t1 of [] -> -- --opt key #END; we're missing a -- value for the key (Left $ err_reqkval h' opt_name, []) v : t2 -> (Right (h',v), t2) (k, v) -> -- k, v found (Right (k,v), t1)
746
false
false
6
10
360
202
110
92
null
null
idf/haskell-examples
fundamentals/3_recursion.hs
bsd-3-clause
-- | "zip", process two lists zip' :: [a] -> [b] -> [(a,b)] zip' _ [] = []
74
zip' :: [a] -> [b] -> [(a,b)] zip' _ [] = []
44
zip' _ [] = []
14
true
true
0
8
17
44
25
19
null
null
CulpaBS/wbBach
src/Futhark/Representation/Primitive.hs
bsd-3-clause
doBinOp UMod{} = doRiskyIntBinOp doUMod
39
doBinOp UMod{} = doRiskyIntBinOp doUMod
39
doBinOp UMod{} = doRiskyIntBinOp doUMod
39
false
false
1
5
4
18
7
11
null
null
juhp/stack
src/Stack/Types/Docker.hs
bsd-3-clause
-- | Docker detach argument name. dockerDetachArgName :: Text dockerDetachArgName = "detach"
92
dockerDetachArgName :: Text dockerDetachArgName = "detach"
58
dockerDetachArgName = "detach"
30
true
true
0
4
11
12
7
5
null
null
sashabu/libcspm
cspmchecker/src/InteractiveChecker/Main.hs
bsd-3-clause
quit :: String -> InputT IChecker Bool quit _ = return False
60
quit :: String -> InputT IChecker Bool quit _ = return False
60
quit _ = return False
21
false
true
0
6
11
30
13
17
null
null
bitc/omegagb
src/Cpu.hs
gpl-2.0
mctiCB 0x3F = (SRL A, 8)
24
mctiCB 0x3F = (SRL A, 8)
24
mctiCB 0x3F = (SRL A, 8)
24
false
false
1
6
5
21
9
12
null
null
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/WAFRegionalByteMatchSetFieldToMatch.hs
mit
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-bytematchset-fieldtomatch.html#cfn-wafregional-bytematchset-fieldtomatch-data wafrbmsftmData :: Lens' WAFRegionalByteMatchSetFieldToMatch (Maybe (Val Text)) wafrbmsftmData = lens _wAFRegionalByteMatchSetFieldToMatchData (\s a -> s { _wAFRegionalByteMatchSetFieldToMatchData = a })
374
wafrbmsftmData :: Lens' WAFRegionalByteMatchSetFieldToMatch (Maybe (Val Text)) wafrbmsftmData = lens _wAFRegionalByteMatchSetFieldToMatchData (\s a -> s { _wAFRegionalByteMatchSetFieldToMatchData = a })
202
wafrbmsftmData = lens _wAFRegionalByteMatchSetFieldToMatchData (\s a -> s { _wAFRegionalByteMatchSetFieldToMatchData = a })
123
true
true
0
9
22
52
28
24
null
null
mahrz/xxp
core/lib-src/XXP/PostProcessing/Logs.hs
mit
tagMatches :: String -> Log -> Bool tagMatches s lg = pmatch s (XP.tag $ identifier $ lg)
89
tagMatches :: String -> Log -> Bool tagMatches s lg = pmatch s (XP.tag $ identifier $ lg)
89
tagMatches s lg = pmatch s (XP.tag $ identifier $ lg)
53
false
true
0
9
17
47
22
25
null
null
ulricha/dsh
src/Database/DSH/SL/Builtins.hs
bsd-3-clause
thetaJoinL :: L.JoinPredicate L.ScalarExpr -> Shape DVec -> Shape DVec -> Build TSL (Shape DVec) thetaJoinL joinPred (VShape dvo1 (LNest dvi1 lyt1)) (VShape _ (LNest dvi2 lyt2)) = do (dvi, rv1, rv2) <- slThetaJoin joinPred dvi1 dvi2 lyt1' <- repLayout rv1 lyt1 lyt2' <- repLayout rv2 lyt2 return $ VShape dvo1 (LNest dvi $ LTuple [lyt1', lyt2'])
381
thetaJoinL :: L.JoinPredicate L.ScalarExpr -> Shape DVec -> Shape DVec -> Build TSL (Shape DVec) thetaJoinL joinPred (VShape dvo1 (LNest dvi1 lyt1)) (VShape _ (LNest dvi2 lyt2)) = do (dvi, rv1, rv2) <- slThetaJoin joinPred dvi1 dvi2 lyt1' <- repLayout rv1 lyt1 lyt2' <- repLayout rv2 lyt2 return $ VShape dvo1 (LNest dvi $ LTuple [lyt1', lyt2'])
381
thetaJoinL joinPred (VShape dvo1 (LNest dvi1 lyt1)) (VShape _ (LNest dvi2 lyt2)) = do (dvi, rv1, rv2) <- slThetaJoin joinPred dvi1 dvi2 lyt1' <- repLayout rv1 lyt1 lyt2' <- repLayout rv2 lyt2 return $ VShape dvo1 (LNest dvi $ LTuple [lyt1', lyt2'])
284
false
true
0
12
92
164
78
86
null
null
joehillen/aura
src/Aura/Languages.hs
gpl-3.0
backupCache_1 :: Language -> String backupCache_1 = \case Japanese -> "バックアップ先を入力してください。" Polish -> "Nie podano lokalizacji kopii zapasowych." Croatian -> "Lokacija sigurnosne kopije nije specifirana." Swedish -> "Ingen backup-plats specifierad." German -> "Kein Sicherungsort angegeben." Spanish -> "No se ha especificado localización para la copia de seguridad." Portuguese -> "Ainda não disse onde quer guardar o backup..." French -> "Aucun chemin pour les copies de sauvegarde n'est spécifié." Russian -> "Не указан путь к бэкапу." Italian -> "Path per il salvataggio non specificato." Serbian -> "Није дата путања ка бекапу." Norwegian -> "Ingen backup-plass spesifisert." Indonesia -> "Tidak ada lokasi backup yang diberikan." _ -> "No backup location given."
863
backupCache_1 :: Language -> String backupCache_1 = \case Japanese -> "バックアップ先を入力してください。" Polish -> "Nie podano lokalizacji kopii zapasowych." Croatian -> "Lokacija sigurnosne kopije nije specifirana." Swedish -> "Ingen backup-plats specifierad." German -> "Kein Sicherungsort angegeben." Spanish -> "No se ha especificado localización para la copia de seguridad." Portuguese -> "Ainda não disse onde quer guardar o backup..." French -> "Aucun chemin pour les copies de sauvegarde n'est spécifié." Russian -> "Не указан путь к бэкапу." Italian -> "Path per il salvataggio non specificato." Serbian -> "Није дата путања ка бекапу." Norwegian -> "Ingen backup-plass spesifisert." Indonesia -> "Tidak ada lokasi backup yang diberikan." _ -> "No backup location given."
863
backupCache_1 = \case Japanese -> "バックアップ先を入力してください。" Polish -> "Nie podano lokalizacji kopii zapasowych." Croatian -> "Lokacija sigurnosne kopije nije specifirana." Swedish -> "Ingen backup-plats specifierad." German -> "Kein Sicherungsort angegeben." Spanish -> "No se ha especificado localización para la copia de seguridad." Portuguese -> "Ainda não disse onde quer guardar o backup..." French -> "Aucun chemin pour les copies de sauvegarde n'est spécifié." Russian -> "Не указан путь к бэкапу." Italian -> "Path per il salvataggio non specificato." Serbian -> "Није дата путања ка бекапу." Norwegian -> "Ingen backup-plass spesifisert." Indonesia -> "Tidak ada lokasi backup yang diberikan." _ -> "No backup location given."
827
false
true
0
8
206
108
52
56
null
null
kmate/HaRe
old/editors/GenEditorInterfaces.hs
bsd-3-clause
iftToTopLevel :: String -> Int -> Int -> IO () liftToTopLevel f l c = putStrLn $ ">liftToTopLevel filename: "++f++" line: "++show l++" column: "++show c
153
liftToTopLevel :: String -> Int -> Int -> IO () liftToTopLevel f l c = putStrLn $ ">liftToTopLevel filename: "++f++" line: "++show l++" column: "++show c
153
liftToTopLevel f l c = putStrLn $ ">liftToTopLevel filename: "++f++" line: "++show l++" column: "++show c
105
false
true
0
10
26
65
31
34
null
null
input-output-hk/pos-haskell-prototype
auxx/src/Command/TyProjection.hs
mit
tyEither :: TyProjection a -> TyProjection b -> TyProjection (Either a b) tyEither tpa tpb = TyProjection { tpTypeName = TypeNameEither (tpTypeName tpa) (tpTypeName tpb) , tpMatcher = \v -> Left <$> tpMatcher tpa v <|> Right <$> tpMatcher tpb v }
274
tyEither :: TyProjection a -> TyProjection b -> TyProjection (Either a b) tyEither tpa tpb = TyProjection { tpTypeName = TypeNameEither (tpTypeName tpa) (tpTypeName tpb) , tpMatcher = \v -> Left <$> tpMatcher tpa v <|> Right <$> tpMatcher tpb v }
274
tyEither tpa tpb = TyProjection { tpTypeName = TypeNameEither (tpTypeName tpa) (tpTypeName tpb) , tpMatcher = \v -> Left <$> tpMatcher tpa v <|> Right <$> tpMatcher tpb v }
200
false
true
0
11
69
99
49
50
null
null
nevrenato/Hets_Fork
Maude/PreComorphism.hs
gpl-2.0
-- | checks if the natural numbers are imported natImported :: MSign.SortSet -> MSign.OpMap -> Bool natImported ss om = b1 && b2 && b3 where b1 = Set.member (MSym.Sort $ mkSimpleId "Nat") ss b2 = Map.member (mkSimpleId "s_") om b3 = case b2 of False -> True True -> specialZeroSet $ om Map.! (mkSimpleId "s_")
370
natImported :: MSign.SortSet -> MSign.OpMap -> Bool natImported ss om = b1 && b2 && b3 where b1 = Set.member (MSym.Sort $ mkSimpleId "Nat") ss b2 = Map.member (mkSimpleId "s_") om b3 = case b2 of False -> True True -> specialZeroSet $ om Map.! (mkSimpleId "s_")
322
natImported ss om = b1 && b2 && b3 where b1 = Set.member (MSym.Sort $ mkSimpleId "Nat") ss b2 = Map.member (mkSimpleId "s_") om b3 = case b2 of False -> True True -> specialZeroSet $ om Map.! (mkSimpleId "s_")
270
true
true
5
11
116
135
61
74
null
null
edsko/hackage-server
Distribution/Server/Users/Backup.hs
bsd-3-clause
importGroup :: CSV -> Restore UserIdSet importGroup csv = do parsed <- mapM parseUserId (concat $ clean csv) return . UserIdSet.fromList $ parsed where clean xs = if all null xs then [] else xs parseUserId uid = case reads uid of [(num, "")] -> return num _ -> fail $ "Unable to parse user id : " ++ show uid -------------------------------------------------- Exporting -- group.csv
417
importGroup :: CSV -> Restore UserIdSet importGroup csv = do parsed <- mapM parseUserId (concat $ clean csv) return . UserIdSet.fromList $ parsed where clean xs = if all null xs then [] else xs parseUserId uid = case reads uid of [(num, "")] -> return num _ -> fail $ "Unable to parse user id : " ++ show uid -------------------------------------------------- Exporting -- group.csv
417
importGroup csv = do parsed <- mapM parseUserId (concat $ clean csv) return . UserIdSet.fromList $ parsed where clean xs = if all null xs then [] else xs parseUserId uid = case reads uid of [(num, "")] -> return num _ -> fail $ "Unable to parse user id : " ++ show uid -------------------------------------------------- Exporting -- group.csv
377
false
true
0
11
99
134
66
68
null
null
ctford/Idris-Elba-dev
src/IRTS/CodegenJavaScript.hs
bsd-3-clause
elimDuplicateEvals js = js
26
elimDuplicateEvals js = js
26
elimDuplicateEvals js = js
26
false
false
0
5
3
9
4
5
null
null
mrak/coreutils.hs
src/yes/Args.hs
mit
stringArgs :: Parser (Maybe [String]) stringArgs = optional $ some $ argument str (metavar "STRINGS...")
104
stringArgs :: Parser (Maybe [String]) stringArgs = optional $ some $ argument str (metavar "STRINGS...")
104
stringArgs = optional $ some $ argument str (metavar "STRINGS...")
66
false
true
0
8
14
42
21
21
null
null
alexandrelucchesi/pfec
server-common/src/Util/Base64.hs
apache-2.0
unpad :: C.ByteString -> C.ByteString unpad = C.reverse . C.dropWhile (== '=') . C.reverse
90
unpad :: C.ByteString -> C.ByteString unpad = C.reverse . C.dropWhile (== '=') . C.reverse
90
unpad = C.reverse . C.dropWhile (== '=') . C.reverse
52
false
true
1
8
13
48
22
26
null
null
gallais/potpourri
haskell/cyclic/CyclicList.hs
gpl-3.0
fromCRec :: List a -> (a, forall b. CList a b -> CList a b) fromCRec (List (CRec x r)) = (x, r)
95
fromCRec :: List a -> (a, forall b. CList a b -> CList a b) fromCRec (List (CRec x r)) = (x, r)
95
fromCRec (List (CRec x r)) = (x, r)
35
false
true
0
9
22
66
34
32
null
null
bennofs/hdevtools
src/Server.hs
mit
cleanupSocket :: FilePath -> N.Socket -> IO () cleanupSocket sockFile sock = do N.close sock whenM (doesFileExist sockFile) $ removeFile sockFile
149
cleanupSocket :: FilePath -> N.Socket -> IO () cleanupSocket sockFile sock = do N.close sock whenM (doesFileExist sockFile) $ removeFile sockFile
149
cleanupSocket sockFile sock = do N.close sock whenM (doesFileExist sockFile) $ removeFile sockFile
102
false
true
0
11
24
63
27
36
null
null
ProLambda/Times
Utilities/Login/Session.hs
gpl-3.0
-- (,) :: a->b->(a,b) ; () :: () -- flip (,) ==> b0 -> a0 -> (a0, b0) -- flip (,) () ==> a0 -> (a0, ()) -- flip (,) () . f ==> (type of f) -> ((type of f) -> ()) -- atomifModifyIORef' :: IORef a -> (a -> (a, b)) -> IO b modifyVault :: (SessionVault -> SessionVault) -> IO () modifyVault f = atomicModifyIORef' vault (flip (,) () . f)
333
modifyVault :: (SessionVault -> SessionVault) -> IO () modifyVault f = atomicModifyIORef' vault (flip (,) () . f)
113
modifyVault f = atomicModifyIORef' vault (flip (,) () . f)
58
true
true
0
9
73
57
31
26
null
null
brendanhay/gogol
gogol-dialogflow/gen/Network/Google/Resource/DialogFlow/Projects/Locations/Agents/Flows/Versions/List.hs
mpl-2.0
-- | The next_page_token value returned from a previous list request. pPageToken :: Lens' ProjectsLocationsAgentsFlowsVersionsList (Maybe Text) pPageToken = lens _pPageToken (\ s a -> s{_pPageToken = a})
205
pPageToken :: Lens' ProjectsLocationsAgentsFlowsVersionsList (Maybe Text) pPageToken = lens _pPageToken (\ s a -> s{_pPageToken = a})
135
pPageToken = lens _pPageToken (\ s a -> s{_pPageToken = a})
61
true
true
0
9
29
48
25
23
null
null
siddhanathan/ghc
compiler/prelude/THNames.hs
bsd-3-clause
notStrictKey = mkPreludeMiscIdUnique 364
47
notStrictKey = mkPreludeMiscIdUnique 364
47
notStrictKey = mkPreludeMiscIdUnique 364
47
false
false
0
5
10
9
4
5
null
null
ezyang/ghc
compiler/utils/UniqFM.hs
bsd-3-clause
addToUFM_Directly :: UniqFM elt -> Unique -> elt -> UniqFM elt addToUFM_Directly (UFM m) u v = UFM (M.insert (getKey u) v m)
124
addToUFM_Directly :: UniqFM elt -> Unique -> elt -> UniqFM elt addToUFM_Directly (UFM m) u v = UFM (M.insert (getKey u) v m)
124
addToUFM_Directly (UFM m) u v = UFM (M.insert (getKey u) v m)
61
false
true
0
11
22
67
31
36
null
null
seagreen/hjsonschema
src/JSONSchema/Validator/Reference.hs
mit
resolveScopeAgainst :: BaseURI -> Text -> Text resolveScopeAgainst (BaseURI Nothing) t = t
90
resolveScopeAgainst :: BaseURI -> Text -> Text resolveScopeAgainst (BaseURI Nothing) t = t
90
resolveScopeAgainst (BaseURI Nothing) t = t
43
false
true
0
7
12
30
15
15
null
null
lynnard/cocos2d-hs
src/Graphics/UI/Cocos2d/Director.hs
bsd-3-clause
director_getContentScaleFactor :: (DirectorValue arg'1) => arg'1 -> HoppyP.IO HoppyP.Float director_getContentScaleFactor arg'1 = withDirectorPtr arg'1 $ HoppyP.flip HoppyFHR.withCppPtr $ \arg'1' -> HoppyP.fmap HoppyP.realToFrac (director_getContentScaleFactor' arg'1')
275
director_getContentScaleFactor :: (DirectorValue arg'1) => arg'1 -> HoppyP.IO HoppyP.Float director_getContentScaleFactor arg'1 = withDirectorPtr arg'1 $ HoppyP.flip HoppyFHR.withCppPtr $ \arg'1' -> HoppyP.fmap HoppyP.realToFrac (director_getContentScaleFactor' arg'1')
275
director_getContentScaleFactor arg'1 = withDirectorPtr arg'1 $ HoppyP.flip HoppyFHR.withCppPtr $ \arg'1' -> HoppyP.fmap HoppyP.realToFrac (director_getContentScaleFactor' arg'1')
184
false
true
0
8
29
73
35
38
null
null
diku-dk/futhark
src/Futhark/IR/Primitive.hs
isc
intToWord64 (Int32Value v) = fromIntegral (fromIntegral v :: Word32)
68
intToWord64 (Int32Value v) = fromIntegral (fromIntegral v :: Word32)
68
intToWord64 (Int32Value v) = fromIntegral (fromIntegral v :: Word32)
68
false
false
0
7
8
27
13
14
null
null
ownclo/jpeg-on-steroids
vendor/Haskell/bitmap-0.0.2/Data/Bitmap/Internal.hs
bsd-3-clause
lamp :: Float -> Float clamp = min 1 . max 0
45
clamp :: Float -> Float clamp = min 1 . max 0
45
clamp = min 1 . max 0
21
false
true
0
6
12
25
12
13
null
null
ktvoelker/KB
clay/Util.hs
gpl-3.0
inputLike :: Selector inputLike = mconcat1 [select, button, textInputLike]
74
inputLike :: Selector inputLike = mconcat1 [select, button, textInputLike]
74
inputLike = mconcat1 [select, button, textInputLike]
52
false
true
0
6
8
23
13
10
null
null
beni55/fay
src/Fay/Compiler/Optimizer.hs
bsd-3-clause
collectFuncs :: [JsStmt] -> [FuncArity] collectFuncs = (++ prim) . concatMap collectFunc where collectFunc (JsSetQName _ name exp) | arity > 0 = [(name,arity)] where arity = expArity exp collectFunc _ = [] prim = map (first (Qual () (ModuleName () "Fay$"))) (unary ++ binary) unary = map (,1) [Ident () "return"] binary = map ((,2) . Ident ()) ["then","bind","mult","mult","add","sub","div" ,"eq","neq","gt","lt","gte","lte","and","or"] -- | Get the arity of an expression.
518
collectFuncs :: [JsStmt] -> [FuncArity] collectFuncs = (++ prim) . concatMap collectFunc where collectFunc (JsSetQName _ name exp) | arity > 0 = [(name,arity)] where arity = expArity exp collectFunc _ = [] prim = map (first (Qual () (ModuleName () "Fay$"))) (unary ++ binary) unary = map (,1) [Ident () "return"] binary = map ((,2) . Ident ()) ["then","bind","mult","mult","add","sub","div" ,"eq","neq","gt","lt","gte","lte","and","or"] -- | Get the arity of an expression.
518
collectFuncs = (++ prim) . concatMap collectFunc where collectFunc (JsSetQName _ name exp) | arity > 0 = [(name,arity)] where arity = expArity exp collectFunc _ = [] prim = map (first (Qual () (ModuleName () "Fay$"))) (unary ++ binary) unary = map (,1) [Ident () "return"] binary = map ((,2) . Ident ()) ["then","bind","mult","mult","add","sub","div" ,"eq","neq","gt","lt","gte","lte","and","or"] -- | Get the arity of an expression.
478
false
true
0
14
113
230
128
102
null
null
Feeniks/valkyrie
src/Valkyrie/Resource.hs
bsd-3-clause
obtainResourceInternal :: (MonadIO m, Resource r, Typeable r) => String -> ResourceManager -> m (Maybe r) obtainResourceInternal path rm@(ResourceManager lx rx) = do rmap <- liftIO . atomically $ readTVar rx maybe (obtainNew path rm) (\(RB r) -> return $ cast r) $ M.lookup path rmap
292
obtainResourceInternal :: (MonadIO m, Resource r, Typeable r) => String -> ResourceManager -> m (Maybe r) obtainResourceInternal path rm@(ResourceManager lx rx) = do rmap <- liftIO . atomically $ readTVar rx maybe (obtainNew path rm) (\(RB r) -> return $ cast r) $ M.lookup path rmap
292
obtainResourceInternal path rm@(ResourceManager lx rx) = do rmap <- liftIO . atomically $ readTVar rx maybe (obtainNew path rm) (\(RB r) -> return $ cast r) $ M.lookup path rmap
186
false
true
0
13
54
136
65
71
null
null
Paow/encore
src/ir/AST/AST.hs
bsd-3-clause
isValidPattern MaybeValue{mdt = NothingData} = True
51
isValidPattern MaybeValue{mdt = NothingData} = True
51
isValidPattern MaybeValue{mdt = NothingData} = True
51
false
false
1
7
5
24
10
14
null
null
conal/hermit
src/HERMIT/Plugin.hs
bsd-2-clause
----------------------------- other ------------------------------ getKernel :: PluginM Kernel getKernel = asks pr_kernel
122
getKernel :: PluginM Kernel getKernel = asks pr_kernel
54
getKernel = asks pr_kernel
26
true
true
0
5
11
18
9
9
null
null
comraq/scheme-interpreter
src/IOFunction.hs
bsd-3-clause
readProc :: LIOFunction readProc [] = readProc [LPort stdin]
70
readProc :: LIOFunction readProc [] = readProc [LPort stdin]
70
readProc [] = readProc [LPort stdin]
46
false
true
0
7
18
25
12
13
null
null
rdnetto/persistent
persistent-template/Database/Persist/TH.hs
mit
notStrict :: Bang notStrict = Bang NoSourceUnpackedness NoSourceStrictness
74
notStrict :: Bang notStrict = Bang NoSourceUnpackedness NoSourceStrictness
74
notStrict = Bang NoSourceUnpackedness NoSourceStrictness
56
false
true
0
5
7
16
8
8
null
null
ComputationWithBoundedResources/tct-trs
tct-trs/Main.hs
bsd-3-clause
ixs 2 = mxs 2 .<||> pxs 2
25
ixs 2 = mxs 2 .<||> pxs 2
25
ixs 2 = mxs 2 .<||> pxs 2
25
false
false
4
5
7
27
12
15
null
null
keithodulaigh/Hets
GUI/ShowLibGraph.hs
gpl-2.0
reloadLibGraph :: GInfo -> IORef DaVinciGraphTypeSyn -> IORef NodeEdgeList -> IO () reloadLibGraph gi graph nodesEdges = do b <- warningDialog "Reload library" warnTxt when b $ reloadLibGraph' gi graph nodesEdges
231
reloadLibGraph :: GInfo -> IORef DaVinciGraphTypeSyn -> IORef NodeEdgeList -> IO () reloadLibGraph gi graph nodesEdges = do b <- warningDialog "Reload library" warnTxt when b $ reloadLibGraph' gi graph nodesEdges
231
reloadLibGraph gi graph nodesEdges = do b <- warningDialog "Reload library" warnTxt when b $ reloadLibGraph' gi graph nodesEdges
132
false
true
0
9
49
70
31
39
null
null
GaloisInc/ivory-tower-stm32
ivory-bsp-stm32/src/Ivory/BSP/STM32/Peripheral/UART/Peripheral.hs
bsd-3-clause
-- | Configure the parity setting for a UART. setParity :: UART -> IBool -> Ivory eff () setParity uart x = modifyReg (uartRegCR1 uart) $ setField uart_cr1_pce (boolToBit x)
179
setParity :: UART -> IBool -> Ivory eff () setParity uart x = modifyReg (uartRegCR1 uart) $ setField uart_cr1_pce (boolToBit x)
133
setParity uart x = modifyReg (uartRegCR1 uart) $ setField uart_cr1_pce (boolToBit x)
90
true
true
0
9
35
61
28
33
null
null
pbl64k/icfpc2014
code/ghc80.hs
bsd-2-clause
p_ows = optional p_ws
21
p_ows = optional p_ws
21
p_ows = optional p_ws
21
false
false
1
5
3
12
4
8
null
null
gbwey/persistent
persistent-postgresql/Database/Persist/Postgresql.hs
mit
repsertManySql :: EntityDef -> Int -> Text repsertManySql ent n = putManySql' conflictColumns fields ent n where fields = keyAndEntityFields ent conflictColumns = escape . fieldDB <$> entityKeyFields ent
213
repsertManySql :: EntityDef -> Int -> Text repsertManySql ent n = putManySql' conflictColumns fields ent n where fields = keyAndEntityFields ent conflictColumns = escape . fieldDB <$> entityKeyFields ent
213
repsertManySql ent n = putManySql' conflictColumns fields ent n where fields = keyAndEntityFields ent conflictColumns = escape . fieldDB <$> entityKeyFields ent
170
false
true
1
7
38
61
29
32
null
null
pheaver/BitVector
Data/BitVector/BitVector2.hs
bsd-3-clause
toBitsLE v = map (indexR v) [0..w-1] where w = length v
57
toBitsLE v = map (indexR v) [0..w-1] where w = length v
57
toBitsLE v = map (indexR v) [0..w-1] where w = length v
57
false
false
0
7
13
40
19
21
null
null
colin-adams/dragonfly-website
DatabaseDefinitions.hs
gpl-3.0
capabilityColumn :: CInfo capabilityColumn = CInfo {cname = "capability", descr = (StringT, False)}
99
capabilityColumn :: CInfo capabilityColumn = CInfo {cname = "capability", descr = (StringT, False)}
99
capabilityColumn = CInfo {cname = "capability", descr = (StringT, False)}
73
false
true
0
7
12
31
19
12
null
null
mgsloan/instance-templates
src/Language/Haskell/InstanceTemplates.hs
bsd-3-clause
decNames (ValD p _ _ ) = patNames p
52
decNames (ValD p _ _ ) = patNames p
52
decNames (ValD p _ _ ) = patNames p
52
false
false
0
6
25
23
10
13
null
null
rueshyna/gogol
gogol-admin-directory/gen/Network/Google/Directory/Types/Product.hs
mpl-2.0
-- | Creates a value of 'Users' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'uEtag' -- -- * 'uNextPageToken' -- -- * 'uUsers' -- -- * 'uKind' -- -- * 'uTriggerEvent' users :: Users users = Users' { _uEtag = Nothing , _uNextPageToken = Nothing , _uUsers = Nothing , _uKind = "admin#directory#users" , _uTriggerEvent = Nothing }
447
users :: Users users = Users' { _uEtag = Nothing , _uNextPageToken = Nothing , _uUsers = Nothing , _uKind = "admin#directory#users" , _uTriggerEvent = Nothing }
192
users = Users' { _uEtag = Nothing , _uNextPageToken = Nothing , _uUsers = Nothing , _uKind = "admin#directory#users" , _uTriggerEvent = Nothing }
173
true
true
0
6
108
56
40
16
null
null
gsdlab/clafer
src/Language/Clafer/Intermediate/Desugarer.hs
mit
isSetExp _ = False
18
isSetExp _ = False
18
isSetExp _ = False
18
false
false
0
5
3
9
4
5
null
null
ruicc/chat-server
src/App/Prelude.hs
mit
hClose :: IO.Handle -> IO () hClose = IO.hClose
47
hClose :: IO.Handle -> IO () hClose = IO.hClose
47
hClose = IO.hClose
18
false
true
0
7
8
24
12
12
null
null
keithodulaigh/Hets
Common/Lexer.hs
gpl-2.0
scanLPD :: CharParser st Char scanLPD = caslLetter <|> digit <|> char '\'' <?> "casl char"
90
scanLPD :: CharParser st Char scanLPD = caslLetter <|> digit <|> char '\'' <?> "casl char"
90
scanLPD = caslLetter <|> digit <|> char '\'' <?> "casl char"
60
false
true
1
7
15
35
15
20
null
null
CindyLinz/Haskell-Perl
src/Perl/Constant.hs
mit
const_SVt_PVMG = 7
18
const_SVt_PVMG = 7
18
const_SVt_PVMG = 7
18
false
false
0
4
2
6
3
3
null
null
ocharles/hadoom
hadoom/Util.hs
bsd-3-clause
glGetErrors :: IO () glGetErrors = do code <- glGetError case code of GL_NO_ERROR -> return () e -> do case e of GL_INVALID_ENUM -> putStrLn "* Invalid Enum" GL_INVALID_VALUE -> putStrLn "* Invalid Value" GL_INVALID_OPERATION -> putStrLn "* Invalid Operation" GL_INVALID_FRAMEBUFFER_OPERATION -> putStrLn "* Invalid Framebuffer Operation" GL_OUT_OF_MEMORY -> putStrLn "* OOM" GL_STACK_UNDERFLOW -> putStrLn "* Stack underflow" GL_STACK_OVERFLOW -> putStrLn "* Stack overflow" _ -> return () glGetErrors
590
glGetErrors :: IO () glGetErrors = do code <- glGetError case code of GL_NO_ERROR -> return () e -> do case e of GL_INVALID_ENUM -> putStrLn "* Invalid Enum" GL_INVALID_VALUE -> putStrLn "* Invalid Value" GL_INVALID_OPERATION -> putStrLn "* Invalid Operation" GL_INVALID_FRAMEBUFFER_OPERATION -> putStrLn "* Invalid Framebuffer Operation" GL_OUT_OF_MEMORY -> putStrLn "* OOM" GL_STACK_UNDERFLOW -> putStrLn "* Stack underflow" GL_STACK_OVERFLOW -> putStrLn "* Stack overflow" _ -> return () glGetErrors
590
glGetErrors = do code <- glGetError case code of GL_NO_ERROR -> return () e -> do case e of GL_INVALID_ENUM -> putStrLn "* Invalid Enum" GL_INVALID_VALUE -> putStrLn "* Invalid Value" GL_INVALID_OPERATION -> putStrLn "* Invalid Operation" GL_INVALID_FRAMEBUFFER_OPERATION -> putStrLn "* Invalid Framebuffer Operation" GL_OUT_OF_MEMORY -> putStrLn "* OOM" GL_STACK_UNDERFLOW -> putStrLn "* Stack underflow" GL_STACK_OVERFLOW -> putStrLn "* Stack overflow" _ -> return () glGetErrors
569
false
true
0
16
157
131
59
72
null
null
rootzlevel/device-manager
src/Brick/Widgets/WrappedText.hs
bsd-3-clause
wrappedText :: Text -> Widget n wrappedText theText = Widget Fixed Fixed $ do ctx <- getContext let newText = wrapLines (ctx^.availWidthL) theText render $ txt newText
173
wrappedText :: Text -> Widget n wrappedText theText = Widget Fixed Fixed $ do ctx <- getContext let newText = wrapLines (ctx^.availWidthL) theText render $ txt newText
173
wrappedText theText = Widget Fixed Fixed $ do ctx <- getContext let newText = wrapLines (ctx^.availWidthL) theText render $ txt newText
141
false
true
0
14
32
73
32
41
null
null
cbrghostrider/Hacking
HackerRank/FunctionalProgramming/Recursion/stringReductions.hs
mit
main = interact nub
19
main = interact nub
19
main = interact nub
19
false
false
1
5
3
12
4
8
null
null
triplepointfive/soten
test/Codec/Soten/PostProcess/ConvertToLHTest.hs
mit
scene = apply originScene
25
scene = apply originScene
25
scene = apply originScene
25
false
false
0
5
3
9
4
5
null
null
emcardoso/CTi
src/Haskell/Parser/ParsePostProcess.hs
bsd-3-clause
fixFunBindsInExp (HsRightSection e1 e2) = HsRightSection e1 (fixFunBindsInExp e2)
84
fixFunBindsInExp (HsRightSection e1 e2) = HsRightSection e1 (fixFunBindsInExp e2)
84
fixFunBindsInExp (HsRightSection e1 e2) = HsRightSection e1 (fixFunBindsInExp e2)
84
false
false
0
7
11
28
13
15
null
null
m-alvarez/jhc
lib/jhc/Jhc/ACIO.hs
mit
newIORefAC :: a -> ACIO (IORef a) newIORefAC a = unsafeIOToACIO (newIORef a)
76
newIORefAC :: a -> ACIO (IORef a) newIORefAC a = unsafeIOToACIO (newIORef a)
76
newIORefAC a = unsafeIOToACIO (newIORef a)
42
false
true
0
8
12
36
17
19
null
null
cdornan/keystore
src/Data/KeyStore/KS/Opt.hs
bsd-3-clause
opt_ :: OptEnum -> Opt_ opt_ enm = case enm of Debug__enabled -> Opt_ opt__debug_enabled Verify__enabled -> Opt_ opt__verify_enabled Sections__fix -> Opt_ opt__sections_fix Backup__keys -> Opt_ opt__backup_keys Hash__comment -> Opt_ opt__hash_comment Hash__prf -> Opt_ opt__hash_prf Hash__iterations -> Opt_ opt__hash_iterations Hash__width_octets -> Opt_ opt__hash_width_octets Hash__salt_octets -> Opt_ opt__hash_salt_octets Crypt__cipher -> Opt_ opt__crypt_cipher Crypt__prf -> Opt_ opt__crypt_prf Crypt__iterations -> Opt_ opt__crypt_iterations Crypt__salt_octets -> Opt_ opt__crypt_salt_octets
768
opt_ :: OptEnum -> Opt_ opt_ enm = case enm of Debug__enabled -> Opt_ opt__debug_enabled Verify__enabled -> Opt_ opt__verify_enabled Sections__fix -> Opt_ opt__sections_fix Backup__keys -> Opt_ opt__backup_keys Hash__comment -> Opt_ opt__hash_comment Hash__prf -> Opt_ opt__hash_prf Hash__iterations -> Opt_ opt__hash_iterations Hash__width_octets -> Opt_ opt__hash_width_octets Hash__salt_octets -> Opt_ opt__hash_salt_octets Crypt__cipher -> Opt_ opt__crypt_cipher Crypt__prf -> Opt_ opt__crypt_prf Crypt__iterations -> Opt_ opt__crypt_iterations Crypt__salt_octets -> Opt_ opt__crypt_salt_octets
768
opt_ enm = case enm of Debug__enabled -> Opt_ opt__debug_enabled Verify__enabled -> Opt_ opt__verify_enabled Sections__fix -> Opt_ opt__sections_fix Backup__keys -> Opt_ opt__backup_keys Hash__comment -> Opt_ opt__hash_comment Hash__prf -> Opt_ opt__hash_prf Hash__iterations -> Opt_ opt__hash_iterations Hash__width_octets -> Opt_ opt__hash_width_octets Hash__salt_octets -> Opt_ opt__hash_salt_octets Crypt__cipher -> Opt_ opt__crypt_cipher Crypt__prf -> Opt_ opt__crypt_prf Crypt__iterations -> Opt_ opt__crypt_iterations Crypt__salt_octets -> Opt_ opt__crypt_salt_octets
744
false
true
0
8
232
144
64
80
null
null
ericnething/wagon
src/ex1/Main.hs
bsd-3-clause
main :: IO () main = print . fst =<< P.fold' (<>) mempty id pipeline
68
main :: IO () main = print . fst =<< P.fold' (<>) mempty id pipeline
68
main = print . fst =<< P.fold' (<>) mempty id pipeline
54
false
true
2
7
14
49
22
27
null
null
ezyang/ghc
compiler/cmm/CLabel.hs
bsd-3-clause
externallyVisibleIdLabel _ = True
47
externallyVisibleIdLabel _ = True
47
externallyVisibleIdLabel _ = True
47
false
false
0
4
17
10
4
6
null
null
antalsz/hs-to-coq
examples/containers/extraction/src/ExtractedSet.hs
mit
{-------------------------------------------------------------------- Balance --------------------------------------------------------------------} split :: Prelude.Ord a => a -> Set a -> (Set a, Set a) split = S2.split eq_a ord_a
233
split :: Prelude.Ord a => a -> Set a -> (Set a, Set a) split = S2.split eq_a ord_a
82
split = S2.split eq_a ord_a
27
true
true
0
11
24
59
26
33
null
null
palexand/interpreters
ResumptionMonad/ThreadSemantics.hs
bsd-3-clause
handler (ts,mQ,mutex,out,pgen) (pid,P(PrintReq msg, r)) = Pause $ write ({- out ++ ", " ++ -} msg) *= \ _ -> etaSt next where next = rrobin (ts++[(pid,P(Cont,r))],mQ,mutex,out++msg,pgen)
208
handler (ts,mQ,mutex,out,pgen) (pid,P(PrintReq msg, r)) = Pause $ write ({- out ++ ", " ++ -} msg) *= \ _ -> etaSt next where next = rrobin (ts++[(pid,P(Cont,r))],mQ,mutex,out++msg,pgen)
208
handler (ts,mQ,mutex,out,pgen) (pid,P(PrintReq msg, r)) = Pause $ write ({- out ++ ", " ++ -} msg) *= \ _ -> etaSt next where next = rrobin (ts++[(pid,P(Cont,r))],mQ,mutex,out++msg,pgen)
208
false
false
3
11
49
124
67
57
null
null
cspollard/bcalib
src/BCalib/Systematics.hs
bsd-3-clause
nominalWeight :: MonadIO m => VariationT "nominal" (TR m) Double nominalWeight = float2Double <$> lift (readBranch "eventWeight")
129
nominalWeight :: MonadIO m => VariationT "nominal" (TR m) Double nominalWeight = float2Double <$> lift (readBranch "eventWeight")
129
nominalWeight = float2Double <$> lift (readBranch "eventWeight")
64
false
true
0
8
16
44
21
23
null
null
bgold-cosmos/Tidal
src/Sound/Tidal/Params.hs
gpl-3.0
phasdpbus :: Pattern Int -> Pattern Double -> ControlPattern phasdpbus = phaserdepthbus
87
phasdpbus :: Pattern Int -> Pattern Double -> ControlPattern phasdpbus = phaserdepthbus
87
phasdpbus = phaserdepthbus
26
false
true
0
8
11
32
13
19
null
null
spechub/Hets
HasCASL/Sublogic.hs
gpl-2.0
sublogic_min :: Sublogic -> Sublogic -> Sublogic sublogic_min = sublogic_join min min min
89
sublogic_min :: Sublogic -> Sublogic -> Sublogic sublogic_min = sublogic_join min min min
89
sublogic_min = sublogic_join min min min
40
false
true
0
8
12
32
14
18
null
null
koengit/induction-examples
Sort_OddEvenSort.hs
mit
count :: Eq a => a -> [a] -> Integer count x [] = 0
67
count :: Eq a => a -> [a] -> Integer count x [] = 0
67
count x [] = 0
30
false
true
0
8
30
36
18
18
null
null
vdweegen/UvA-Software_Testing
Lab5/Cas/Exercises.hs
gpl-3.0
nrcGenProblem :: Node -> IO Node nrcGenProblem n = do ys <- randomize xs return (nrcMinimalize n ys) where xs = filledPositions (fst n) -- ============================================================================= -- ============================================================================= -- Exercise 6 :: Time spent: +-
336
nrcGenProblem :: Node -> IO Node nrcGenProblem n = do ys <- randomize xs return (nrcMinimalize n ys) where xs = filledPositions (fst n) -- ============================================================================= -- ============================================================================= -- Exercise 6 :: Time spent: +-
336
nrcGenProblem n = do ys <- randomize xs return (nrcMinimalize n ys) where xs = filledPositions (fst n) -- ============================================================================= -- ============================================================================= -- Exercise 6 :: Time spent: +-
303
false
true
1
9
41
72
32
40
null
null
sdiehl/ghc
compiler/nativeGen/PPC/CodeGen.hs
bsd-3-clause
genCCall (PrimTarget (MO_AtomicWrite width)) [] [addr, val] = do code <- assignMem_IntCode (intFormat width) addr val return $ unitOL(HWSYNC) `appOL` code
162
genCCall (PrimTarget (MO_AtomicWrite width)) [] [addr, val] = do code <- assignMem_IntCode (intFormat width) addr val return $ unitOL(HWSYNC) `appOL` code
162
genCCall (PrimTarget (MO_AtomicWrite width)) [] [addr, val] = do code <- assignMem_IntCode (intFormat width) addr val return $ unitOL(HWSYNC) `appOL` code
162
false
false
1
11
28
76
36
40
null
null