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
unisonweb/platform
unison-core/src/Unison/Type.hs
mit
booleanRef = Reference.Builtin "Boolean"
40
booleanRef = Reference.Builtin "Boolean"
40
booleanRef = Reference.Builtin "Boolean"
40
false
false
1
5
3
15
5
10
null
null
ssaavedra/liquidhaskell
benchmarks/unordered-containers-0.2.1.0/Data/HashMap/Base.hs
bsd-3-clause
-- | /O(n)/ Reduce this map by applying a binary operator to all -- elements, using the given starting value (typically the -- right-identity of the operator). foldr :: (v -> a -> a) -> a -> HashMap k v -> a foldr f = foldrWithKey (const f)
240
foldr :: (v -> a -> a) -> a -> HashMap k v -> a foldr f = foldrWithKey (const f)
80
foldr f = foldrWithKey (const f)
32
true
true
0
8
47
54
28
26
null
null
scott-fleischman/greek-grammar
haskell/greek-grammar/src/Data/Unicode/DecomposeChar.hs
mit
decomposeChar '\x2F96F' = "\x7E02"
34
decomposeChar '\x2F96F' = "\x7E02"
34
decomposeChar '\x2F96F' = "\x7E02"
34
false
false
0
4
3
10
4
6
null
null
NightRa/Idris-dev
src/Idris/Delaborate.hs
bsd-3-clause
isUN :: Name -> Bool isUN (UN n) = not $ T.isPrefixOf (T.pack "__") n
69
isUN :: Name -> Bool isUN (UN n) = not $ T.isPrefixOf (T.pack "__") n
69
isUN (UN n) = not $ T.isPrefixOf (T.pack "__") n
48
false
true
0
9
14
43
21
22
null
null
nushio3/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
-- >>> firstAIdKey = mkPreludeMiscIdUnique 182
50
firstAIdKey = mkPreludeMiscIdUnique 182
43
firstAIdKey = mkPreludeMiscIdUnique 182
43
true
false
1
5
9
13
5
8
null
null
adarqui/DevUtils-Redis
src/System/DevUtils/Redis/Helpers/Info/Marshall.hs
gpl-3.0
{- - Ok this is going to get extremely ugly -} infoMap :: M.Map B.ByteString (Info -> B.ByteString -> Info) infoMap = M.fromList ([ -- Server ("redis_version", \r v -> r { _server = (s r) { _redisVersion = rString v }}), ("redis_git_sha1", \r v -> r { _server = (s r) { _redisGitSha1 = rString v } } ), ("redis_gi...
4,986
infoMap :: M.Map B.ByteString (Info -> B.ByteString -> Info) infoMap = M.fromList ([ -- Server ("redis_version", \r v -> r { _server = (s r) { _redisVersion = rString v }}), ("redis_git_sha1", \r v -> r { _server = (s r) { _redisGitSha1 = rString v } } ), ("redis_git_dirty", \r v -> r { _server = (s r) { _redisGitD...
4,936
infoMap = M.fromList ([ -- Server ("redis_version", \r v -> r { _server = (s r) { _redisVersion = rString v }}), ("redis_git_sha1", \r v -> r { _server = (s r) { _redisGitSha1 = rString v } } ), ("redis_git_dirty", \r v -> r { _server = (s r) { _redisGitDirty = rInt v } } ), ("redis_mode", \r v -> r { _server = (s...
4,875
true
true
9
27
1,129
2,093
1,193
900
null
null
dillonhuff/Folly
src/Folly/Parser.hs
bsd-3-clause
parseCon = do propTok "&" return $ con
42
parseCon = do propTok "&" return $ con
42
parseCon = do propTok "&" return $ con
42
false
false
0
7
11
19
8
11
null
null
christiaanb/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
lexP_RDR = varQual_RDR gHC_READ (fsLit "lexP")
61
lexP_RDR = varQual_RDR gHC_READ (fsLit "lexP")
61
lexP_RDR = varQual_RDR gHC_READ (fsLit "lexP")
61
false
false
0
7
20
17
8
9
null
null
authchir/SoSe17-FFP-haskell-http2-server
src/Frame.hs
gpl-3.0
getStreamId :: Get StreamId getStreamId = StreamId . flip Bits.clearBit 31 <$> Get.getWord32be
94
getStreamId :: Get StreamId getStreamId = StreamId . flip Bits.clearBit 31 <$> Get.getWord32be
94
getStreamId = StreamId . flip Bits.clearBit 31 <$> Get.getWord32be
66
false
true
0
8
12
31
15
16
null
null
michalkonecny/aern
aern-mpfr-rounded/src/Numeric/AERN/MPFRBasis/Interval.hs
bsd-3-clause
fromIntegerWithPrec :: Precision -> Integer -> MI fromIntegerWithPrec prec ii = fromEndpoints (l,r) where Just l = RANOR.convertDnEff () (sampleMIWithPrec prec) ii Just r = RANOR.convertUpEff () (sampleMIWithPrec prec) ii
233
fromIntegerWithPrec :: Precision -> Integer -> MI fromIntegerWithPrec prec ii = fromEndpoints (l,r) where Just l = RANOR.convertDnEff () (sampleMIWithPrec prec) ii Just r = RANOR.convertUpEff () (sampleMIWithPrec prec) ii
233
fromIntegerWithPrec prec ii = fromEndpoints (l,r) where Just l = RANOR.convertDnEff () (sampleMIWithPrec prec) ii Just r = RANOR.convertUpEff () (sampleMIWithPrec prec) ii
183
false
true
0
9
41
87
42
45
null
null
skill-lang/skill
src/main/resources/haskell/ReadFields.hs
bsd-3-clause
maybeRead :: Bool -> Get a -> Get (Maybe a) maybeRead False _ = return Nothing
83
maybeRead :: Bool -> Get a -> Get (Maybe a) maybeRead False _ = return Nothing
82
maybeRead False _ = return Nothing
38
false
true
0
9
20
39
18
21
null
null
binesiyu/ifl
src/Core/Parser.hs
mit
assembleOp :: CoreExpr -> PartialExpr -> CoreExpr assembleOp e1 NoOp = e1
73
assembleOp :: CoreExpr -> PartialExpr -> CoreExpr assembleOp e1 NoOp = e1
73
assembleOp e1 NoOp = e1
23
false
true
0
6
11
24
12
12
null
null
Proclivis/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxTE_READONLY :: Int wxTE_READONLY = 0x0010
49
wxTE_READONLY :: Int wxTE_READONLY = 0x0010
49
wxTE_READONLY = 0x0010
28
false
true
0
4
11
11
6
5
null
null
paul-rouse/persistent
persistent/Database/Persist/Class/PersistUnique.hs
mit
insertBy :: forall record backend m. ( MonadIO m , PersistUniqueWrite backend , PersistRecordBackend record backend , AtLeastOneUniqueKey record ) => record -> ReaderT backend m (Either (Entity record) (Key record)) insertBy val = do res <- getByValue val case res of Nothing ...
1,502
insertBy :: forall record backend m. ( MonadIO m , PersistUniqueWrite backend , PersistRecordBackend record backend , AtLeastOneUniqueKey record ) => record -> ReaderT backend m (Either (Entity record) (Key record)) insertBy val = do res <- getByValue val case res of Nothing ...
1,502
insertBy val = do res <- getByValue val case res of Nothing -> Right `liftM` insert val Just z -> return $ Left z -- | Like 'insertEntity', but returns 'Nothing' when the record -- couldn't be inserted because of a uniqueness constraint. -- -- @since 2.7.1 -- -- === __Example usage__ -- -- We u...
1,258
false
true
0
12
299
161
96
65
null
null
shlevy/arithmoi
Math/NumberTheory/Primes/Sieve/Misc.hs
mit
sieveTotient :: TotientSieve -> Integer -> Integer sieveTotient (TS bnd sve) = check where bound = fromIntegral bnd check n | n < 1 = error "Totient only defined for positive numbers" | n == 1 = 1 | otherwise = go2 n go2 n = case shiftToOddCount n of (0,_) -> g...
2,189
sieveTotient :: TotientSieve -> Integer -> Integer sieveTotient (TS bnd sve) = check where bound = fromIntegral bnd check n | n < 1 = error "Totient only defined for positive numbers" | n == 1 = 1 | otherwise = go2 n go2 n = case shiftToOddCount n of (0,_) -> g...
2,189
sieveTotient (TS bnd sve) = check where bound = fromIntegral bnd check n | n < 1 = error "Totient only defined for positive numbers" | n == 1 = 1 | otherwise = go2 n go2 n = case shiftToOddCount n of (0,_) -> go3 1 n (k,m) -> let tt = (shiftL 1 (k...
2,138
false
true
10
36
875
815
404
411
null
null
mettekou/ghc
compiler/backpack/DriverBkp.hs
bsd-3-clause
typecheckUnit :: ComponentId -> [(ModuleName, Module)] -> BkpM () typecheckUnit cid insts = do lunit <- getSource cid buildUnit TcSession cid insts lunit
161
typecheckUnit :: ComponentId -> [(ModuleName, Module)] -> BkpM () typecheckUnit cid insts = do lunit <- getSource cid buildUnit TcSession cid insts lunit
161
typecheckUnit cid insts = do lunit <- getSource cid buildUnit TcSession cid insts lunit
95
false
true
0
8
30
60
29
31
null
null
dgvncsz0f/nws
test/Jerimum/Tests/Unit/PostgreSQL/Types/DateTimeTest.hs
bsd-3-clause
testDate :: TestTree testDate = testGroup "date" [ testGroup "cbor codec" [ testProperty "identity" $ \x -> Right x === runDecoder dateDecoderV0 (runEncoder $ dateEncoderV0 x) ] , testGroup "text codec" [ testProperty "identity" $ \(ValidDayG day) -> ...
498
testDate :: TestTree testDate = testGroup "date" [ testGroup "cbor codec" [ testProperty "identity" $ \x -> Right x === runDecoder dateDecoderV0 (runEncoder $ dateEncoderV0 x) ] , testGroup "text codec" [ testProperty "identity" $ \(ValidDayG day) -> ...
498
testDate = testGroup "date" [ testGroup "cbor codec" [ testProperty "identity" $ \x -> Right x === runDecoder dateDecoderV0 (runEncoder $ dateEncoderV0 x) ] , testGroup "text codec" [ testProperty "identity" $ \(ValidDayG day) -> Just day ===...
477
false
true
0
15
168
140
69
71
null
null
yu-i9/thih
src/Thih/Static/Prelude.hs
bsd-3-clause
-- The Enum class ----------------------------------------------------------- cEnum = "Enum"
93
cEnum = "Enum"
14
cEnum = "Enum"
14
true
false
0
4
8
7
4
3
null
null
FranklinChen/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
-- | Introduce a 'Bind' into the given term for each element of the -- given list of (name, binder) pairs. bindAll :: [(n, Binder (TT n))] -> TT n -> TT n bindAll [] t = t
171
bindAll :: [(n, Binder (TT n))] -> TT n -> TT n bindAll [] t = t
64
bindAll [] t = t
16
true
true
3
9
37
53
26
27
null
null
DaMSL/K3
src/Language/K3/Core/Utils.hs
apache-2.0
declarationExpr _ = Nothing
27
declarationExpr _ = Nothing
27
declarationExpr _ = Nothing
27
false
false
0
5
3
9
4
5
null
null
vycasas/jinsei.no.game
src/Main.hs
mit
main :: IO() main = do args <- getArgs case args of [] -> runPulsar (a:_) -> do fileExists <- doesFileExist a if fileExists then do f <- openFile a ReadMode g <- processFile f mainLoop g ...
511
main :: IO() main = do args <- getArgs case args of [] -> runPulsar (a:_) -> do fileExists <- doesFileExist a if fileExists then do f <- openFile a ReadMode g <- processFile f mainLoop g ...
511
main = do args <- getArgs case args of [] -> runPulsar (a:_) -> do fileExists <- doesFileExist a if fileExists then do f <- openFile a ReadMode g <- processFile f mainLoop g hC...
498
false
true
0
18
274
136
59
77
null
null
alexander-at-github/eta
libraries/base/GHC/IO/Encoding/UTF16.hs
bsd-3-clause
utf16be_EF :: CodingFailureMode -> IO (TextEncoder ()) utf16be_EF cfm = return (BufferCodec { encode = utf16be_encode, recover = recoverEncode cfm, close = return (), getState = return (), setState = const $ return () })
303
utf16be_EF :: CodingFailureMode -> IO (TextEncoder ()) utf16be_EF cfm = return (BufferCodec { encode = utf16be_encode, recover = recoverEncode cfm, close = return (), getState = return (), setState = const $ return () })
303
utf16be_EF cfm = return (BufferCodec { encode = utf16be_encode, recover = recoverEncode cfm, close = return (), getState = return (), setState = const $ return () })
248
false
true
0
11
117
89
47
42
null
null
green-haskell/ghc
compiler/simplCore/OccurAnal.hs
bsd-3-clause
occAnal env (Cast expr co) = case occAnal env expr of { (usage, expr') -> let usage1 = markManyIf (isRhsEnv env) usage usage2 = addIdOccs usage1 (coVarsOfCo co) -- See Note [Gather occurrences of coercion variables] in (usage2, Cast expr' co) -- If we see let x = y `cast` co ...
406
occAnal env (Cast expr co) = case occAnal env expr of { (usage, expr') -> let usage1 = markManyIf (isRhsEnv env) usage usage2 = addIdOccs usage1 (coVarsOfCo co) -- See Note [Gather occurrences of coercion variables] in (usage2, Cast expr' co) -- If we see let x = y `cast` co ...
406
occAnal env (Cast expr co) = case occAnal env expr of { (usage, expr') -> let usage1 = markManyIf (isRhsEnv env) usage usage2 = addIdOccs usage1 (coVarsOfCo co) -- See Note [Gather occurrences of coercion variables] in (usage2, Cast expr' co) -- If we see let x = y `cast` co ...
406
false
false
0
14
122
95
50
45
null
null
Enamex/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
showCG NErased = "_"
20
showCG NErased = "_"
20
showCG NErased = "_"
20
false
false
1
5
3
13
4
9
null
null
frantisekfarka/ghc-dsi
testsuite/tests/codeGen/should_run/CopySmallArrayStressTest.hs
bsd-3-clause
-- Create an array of arrays, with each sub-array having random length -- and content. setup :: Rng s (MArray s (MArray s Int)) setup = do len <- rnd (1, numArrays) marr <- liftST $ new_ len let go i | i >= len = return () | otherwise = do n <- rnd (1, maxLen) ...
544
setup :: Rng s (MArray s (MArray s Int)) setup = do len <- rnd (1, numArrays) marr <- liftST $ new_ len let go i | i >= len = return () | otherwise = do n <- rnd (1, maxLen) subarr <- liftST $ fromList [j*j | j <- [(0::Int)..n-1]] liftS...
457
setup = do len <- rnd (1, numArrays) marr <- liftST $ new_ len let go i | i >= len = return () | otherwise = do n <- rnd (1, maxLen) subarr <- liftST $ fromList [j*j | j <- [(0::Int)..n-1]] liftST $ write marr i subarr g...
416
true
true
2
21
198
208
95
113
null
null
fmthoma/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
funPtrTyConKey = mkPreludeTyConUnique 75
65
funPtrTyConKey = mkPreludeTyConUnique 75
65
funPtrTyConKey = mkPreludeTyConUnique 75
65
false
false
0
5
28
9
4
5
null
null
aBhallo/AoC2016
Day 1/day1part1.hs
mit
rotate ((x,y),W) o = if o == L then ((x,y),S) else ((x,y),N)
60
rotate ((x,y),W) o = if o == L then ((x,y),S) else ((x,y),N)
60
rotate ((x,y),W) o = if o == L then ((x,y),S) else ((x,y),N)
60
false
false
1
8
11
62
36
26
null
null
mohamedhayibor/haskelling-hard
realWorldHaskell/liftingExample_NavigatingFS.hs
mit
sizeP :: InfoP Integer sizeP _ _ (Just size) _ = size
53
sizeP :: InfoP Integer sizeP _ _ (Just size) _ = size
53
sizeP _ _ (Just size) _ = size
30
false
true
0
7
11
29
14
15
null
null
yeyan/xmonad-wallpaper
src/XMonad/Wallpaper/Expand.hs
lgpl-3.0
isExpr a = isAlphaNum a || a == '_'
35
isExpr a = isAlphaNum a || a == '_'
35
isExpr a = isAlphaNum a || a == '_'
35
false
false
0
7
8
20
9
11
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_VERTEX_ARRAY_BUFFER_BINDING_ARB :: GLenum gl_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896
88
gl_VERTEX_ARRAY_BUFFER_BINDING_ARB :: GLenum gl_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896
88
gl_VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896
43
false
true
0
4
5
11
6
5
null
null
jseaton/ttasm
Instructions.hs
gpl-3.0
rthg = byte 0x19
20
rthg = byte 0x19
20
rthg = byte 0x19
20
false
false
0
5
7
9
4
5
null
null
IreneKnapp/Joy
Joy/Regexp.hs
mit
parseRegexp :: forall content . (Ord content, Bounded content, Enum content) => String -> Bool -> Either String (Regexp content) parseRegexp input binaryMode = let parseRegexp' :: Int -> [Regexp content] -> [RegexpChar content] -> Regexp...
13,814
parseRegexp :: forall content . (Ord content, Bounded content, Enum content) => String -> Bool -> Either String (Regexp content) parseRegexp input binaryMode = let parseRegexp' :: Int -> [Regexp content] -> [RegexpChar content] -> Regexp...
13,814
parseRegexp input binaryMode = let parseRegexp' :: Int -> [Regexp content] -> [RegexpChar content] -> RegexpParse ([Regexp content], [RegexpChar content]) parseRegexp' 0 accumulator [] = return (reverse accumulator, []) parseRegexp' dept...
13,669
false
true
0
22
4,357
4,190
2,121
2,069
null
null
ganeti-github-testing/ganeti-test-1
src/Ganeti/Utils.hs
bsd-2-clause
findFirst :: (Ord a, Enum a) => a -> S.Set a -> a findFirst base xs = case S.splitMember base xs of (_, False, _) -> base (_, True, ys) -> fromMaybe (succ base) $ (fmap fst . find (uncurry (<)) . zip [succ base..] . S.toAscList $ ys) `mplus` fmap (succ . fst) (S.maxView ys) -- | Simple pluralize ...
326
findFirst :: (Ord a, Enum a) => a -> S.Set a -> a findFirst base xs = case S.splitMember base xs of (_, False, _) -> base (_, True, ys) -> fromMaybe (succ base) $ (fmap fst . find (uncurry (<)) . zip [succ base..] . S.toAscList $ ys) `mplus` fmap (succ . fst) (S.maxView ys) -- | Simple pluralize ...
326
findFirst base xs = case S.splitMember base xs of (_, False, _) -> base (_, True, ys) -> fromMaybe (succ base) $ (fmap fst . find (uncurry (<)) . zip [succ base..] . S.toAscList $ ys) `mplus` fmap (succ . fst) (S.maxView ys) -- | Simple pluralize helper
276
false
true
0
17
83
173
89
84
null
null
LukeHoersten/unagi-streams
src/System/IO/Streams/Concurrent/Unagi.hs
bsd-3-clause
chanToInput :: OutChan (Maybe a) -> IO (InputStream a) chanToInput ch = makeInputStream $! readChan ch
102
chanToInput :: OutChan (Maybe a) -> IO (InputStream a) chanToInput ch = makeInputStream $! readChan ch
102
chanToInput ch = makeInputStream $! readChan ch
47
false
true
0
8
15
43
20
23
null
null
elliottt/dang
src/Dang/Syntax/Format.hs
bsd-3-clause
formatKeyword Ksig = annotate AnnKeyword (text "sig")
59
formatKeyword Ksig = annotate AnnKeyword (text "sig")
59
formatKeyword Ksig = annotate AnnKeyword (text "sig")
59
false
false
1
7
12
24
9
15
null
null
DanielSchuessler/hstri
Triangulation/FacetGluing.hs
gpl-3.0
normalizeGluing' :: Gluing -> (Bool, NormalizedGluing) normalizeGluing' gl = second (uncurry UnsafeNormalizedGluing) (if isGluingNormalized gl then (True,gl) else (False,flipGluing gl))
189
normalizeGluing' :: Gluing -> (Bool, NormalizedGluing) normalizeGluing' gl = second (uncurry UnsafeNormalizedGluing) (if isGluingNormalized gl then (True,gl) else (False,flipGluing gl))
189
normalizeGluing' gl = second (uncurry UnsafeNormalizedGluing) (if isGluingNormalized gl then (True,gl) else (False,flipGluing gl))
134
false
true
0
8
23
65
35
30
null
null
dsalisbury/xmobar
src/Plugins/Monitors/Net.hs
bsd-3-clause
options :: [OptDescr (NetOpts -> NetOpts)] options = [ Option "" ["rx-icon-pattern"] (ReqArg (\x o -> o { rxIconPattern = Just $ parseIconPattern x }) "") "" , Option "" ["tx-icon-pattern"] (ReqArg (\x o -> o { txIconPattern = Just $ parseIconPattern x }) "") "" ]
280
options :: [OptDescr (NetOpts -> NetOpts)] options = [ Option "" ["rx-icon-pattern"] (ReqArg (\x o -> o { rxIconPattern = Just $ parseIconPattern x }) "") "" , Option "" ["tx-icon-pattern"] (ReqArg (\x o -> o { txIconPattern = Just $ parseIconPattern x }) "") "" ]
280
options = [ Option "" ["rx-icon-pattern"] (ReqArg (\x o -> o { rxIconPattern = Just $ parseIconPattern x }) "") "" , Option "" ["tx-icon-pattern"] (ReqArg (\x o -> o { txIconPattern = Just $ parseIconPattern x }) "") "" ]
237
false
true
0
14
62
120
65
55
null
null
olsner/ghc
compiler/iface/IfaceType.hs
bsd-3-clause
ppr_tc_args :: TyPrec -> IfaceTcArgs -> SDoc ppr_tc_args ctx_prec args = let pprTys t ts = ppr_ty ctx_prec t <+> ppr_tc_args ctx_prec ts in case args of ITC_Nil -> empty ITC_Vis t ts -> pprTys t ts ITC_Invis t ts -> pprTys t ts -------------------
285
ppr_tc_args :: TyPrec -> IfaceTcArgs -> SDoc ppr_tc_args ctx_prec args = let pprTys t ts = ppr_ty ctx_prec t <+> ppr_tc_args ctx_prec ts in case args of ITC_Nil -> empty ITC_Vis t ts -> pprTys t ts ITC_Invis t ts -> pprTys t ts -------------------
285
ppr_tc_args ctx_prec args = let pprTys t ts = ppr_ty ctx_prec t <+> ppr_tc_args ctx_prec ts in case args of ITC_Nil -> empty ITC_Vis t ts -> pprTys t ts ITC_Invis t ts -> pprTys t ts -------------------
240
false
true
0
10
82
97
45
52
null
null
ghc-android/ghc
testsuite/tests/ghci/should_run/ghcirun004.hs
bsd-3-clause
1407 = 1406
11
1407 = 1406
11
1407 = 1406
11
false
false
1
5
2
10
3
7
null
null
cdornan/keystore
src/Data/KeyStore/CLI/Command.hs
bsd-3-clause
pi_version , pi_keystore , pi_initialise , pi_update_settings , pi_list_settings , pi_list_setting_opts , pi_add_trigger , pi_rmv_trigger , pi_list_triggers , pi_create , pi_create_key_pair , pi_secure , pi_list , pi_info , pi_show_identity , pi_show_comment ...
666
pi_version , pi_keystore , pi_initialise , pi_update_settings , pi_list_settings , pi_list_setting_opts , pi_add_trigger , pi_rmv_trigger , pi_list_triggers , pi_create , pi_create_key_pair , pi_secure , pi_list , pi_info , pi_show_identity , pi_show_comment ...
665
pi_version = h_info (helper <*> pure Version) (progDesc "report the version of this package")
113
false
true
1
7
194
92
69
23
null
null
pascalpoizat/vecahaskell
test/VecaTests.hs
apache-2.0
b2 :: VName b2 = Name ["2"]
27
b2 :: VName b2 = Name ["2"]
27
b2 = Name ["2"]
15
false
true
0
6
6
17
9
8
null
null
shlevy/ghc
compiler/basicTypes/Module.hs
bsd-3-clause
delModuleEnv :: ModuleEnv a -> Module -> ModuleEnv a delModuleEnv (ModuleEnv e) m = ModuleEnv (Map.delete (NDModule m) e)
121
delModuleEnv :: ModuleEnv a -> Module -> ModuleEnv a delModuleEnv (ModuleEnv e) m = ModuleEnv (Map.delete (NDModule m) e)
121
delModuleEnv (ModuleEnv e) m = ModuleEnv (Map.delete (NDModule m) e)
68
false
true
0
9
18
55
26
29
null
null
archhaskell/archlinux
Distribution/ArchLinux/SrcRepo.hs
bsd-3-clause
trueDepends :: PkgBuild -> SrcRepo -> [String] trueDepends p repo = L.filter (\p' -> not $ isExternalDep p' repo) (strDepends p)
128
trueDepends :: PkgBuild -> SrcRepo -> [String] trueDepends p repo = L.filter (\p' -> not $ isExternalDep p' repo) (strDepends p)
128
trueDepends p repo = L.filter (\p' -> not $ isExternalDep p' repo) (strDepends p)
81
false
true
0
9
20
57
29
28
null
null
airobert/yices_haskell
Main.hs
bsd-3-clause
ctr_unique l = (differ (head l) (tail l)) ++ (ctr_unique (tail l))
69
ctr_unique l = (differ (head l) (tail l)) ++ (ctr_unique (tail l))
69
ctr_unique l = (differ (head l) (tail l)) ++ (ctr_unique (tail l))
69
false
false
3
9
14
50
22
28
null
null
bredelings/BAli-Phy
haskell/Probability/Distribution/Tree.hs
gpl-2.0
xrange start end | start < end = start : xrange (start + 1) end | otherwise = []
99
xrange start end | start < end = start : xrange (start + 1) end | otherwise = []
99
xrange start end | start < end = start : xrange (start + 1) end | otherwise = []
99
false
false
0
9
37
49
22
27
null
null
fmapfmapfmap/amazonka
amazonka-s3/gen/Network/AWS/S3/HeadObject.hs
mpl-2.0
-- | Undocumented member. hoRequestPayer :: Lens' HeadObject (Maybe RequestPayer) hoRequestPayer = lens _hoRequestPayer (\ s a -> s{_hoRequestPayer = a})
153
hoRequestPayer :: Lens' HeadObject (Maybe RequestPayer) hoRequestPayer = lens _hoRequestPayer (\ s a -> s{_hoRequestPayer = a})
127
hoRequestPayer = lens _hoRequestPayer (\ s a -> s{_hoRequestPayer = a})
71
true
true
2
9
20
54
25
29
null
null
mdorman/emacs2nix
src/Distribution/Nix/Fetch.hs
gpl-3.0
prefetchHelper :: String -> [String] -> (S.InputStream ByteString -> IO a) -> IO a prefetchHelper fetcher args go = mapException FetchError helper where helper = do env <- addToEnv [("PRINT_PATH", "1")] runInteractiveProcess fetcher args Nothing (Just env) go
307
prefetchHelper :: String -> [String] -> (S.InputStream ByteString -> IO a) -> IO a prefetchHelper fetcher args go = mapException FetchError helper where helper = do env <- addToEnv [("PRINT_PATH", "1")] runInteractiveProcess fetcher args Nothing (Just env) go
307
prefetchHelper fetcher args go = mapException FetchError helper where helper = do env <- addToEnv [("PRINT_PATH", "1")] runInteractiveProcess fetcher args Nothing (Just env) go
194
false
true
0
11
85
103
50
53
null
null
lucamtudor/haskell-podcatcher
PodParser.hs
apache-2.0
{- | Parse the data from a given string, with the given name to use in error messages. -} parse :: String -> String -> Feed parse content name = Feed { channelTitle = getTitle doc, items = getEnclosures doc} where doc = getContent parseResults parseResults = xmlParse name $ stripUn...
590
parse :: String -> String -> Feed parse content name = Feed { channelTitle = getTitle doc, items = getEnclosures doc} where doc = getContent parseResults parseResults = xmlParse name $ stripUnicodeBOM content getContent :: Document Posn -> Content Posn getContent (Document...
500
parse content name = Feed { channelTitle = getTitle doc, items = getEnclosures doc} where doc = getContent parseResults parseResults = xmlParse name $ stripUnicodeBOM content getContent :: Document Posn -> Content Posn getContent (Document _ _ e _) = CElem e noPos str...
466
true
true
0
7
152
149
74
75
null
null
ezyang/ghc
compiler/coreSyn/CoreSyn.hs
bsd-3-clause
tickishPlace Breakpoint{} = PlaceRuntime
41
tickishPlace Breakpoint{} = PlaceRuntime
41
tickishPlace Breakpoint{} = PlaceRuntime
41
false
false
0
6
4
13
6
7
null
null
d0kt0r0/Tidal
src/Sound/Tidal/Params.hs
gpl-3.0
miditouch :: Pattern Double -> ControlPattern miditouch = pF "miditouch"
72
miditouch :: Pattern Double -> ControlPattern miditouch = pF "miditouch"
72
miditouch = pF "miditouch"
26
false
true
0
6
9
21
10
11
null
null
fmapfmapfmap/amazonka
amazonka-codedeploy/gen/Network/AWS/CodeDeploy/Types/Product.hs
mpl-2.0
-- | A service role ARN. dgiServiceRoleARN :: Lens' DeploymentGroupInfo (Maybe Text) dgiServiceRoleARN = lens _dgiServiceRoleARN (\ s a -> s{_dgiServiceRoleARN = a})
165
dgiServiceRoleARN :: Lens' DeploymentGroupInfo (Maybe Text) dgiServiceRoleARN = lens _dgiServiceRoleARN (\ s a -> s{_dgiServiceRoleARN = a})
140
dgiServiceRoleARN = lens _dgiServiceRoleARN (\ s a -> s{_dgiServiceRoleARN = a})
80
true
true
0
9
22
46
25
21
null
null
olsner/ghc
libraries/template-haskell/Language/Haskell/TH/Ppr.hs
bsd-3-clause
nestDepth :: Int nestDepth = 4
30
nestDepth :: Int nestDepth = 4
30
nestDepth = 4
13
false
true
0
4
5
11
6
5
null
null
rahulmutt/ghcvm
compiler/Eta/Core/CoreFVs.hs
bsd-3-clause
orphNamesOfCoAxBranch :: CoAxBranch -> NameSet orphNamesOfCoAxBranch (CoAxBranch { cab_lhs = lhs, cab_rhs = rhs }) = orphNamesOfTypes lhs `unionNameSet` orphNamesOfType rhs
174
orphNamesOfCoAxBranch :: CoAxBranch -> NameSet orphNamesOfCoAxBranch (CoAxBranch { cab_lhs = lhs, cab_rhs = rhs }) = orphNamesOfTypes lhs `unionNameSet` orphNamesOfType rhs
174
orphNamesOfCoAxBranch (CoAxBranch { cab_lhs = lhs, cab_rhs = rhs }) = orphNamesOfTypes lhs `unionNameSet` orphNamesOfType rhs
127
false
true
0
9
22
48
26
22
null
null
DavidAlphaFox/ghc
libraries/bytestring/Data/ByteString/Internal.hs
bsd-3-clause
unpackBytes :: ByteString -> [Word8] unpackBytes bs = unpackAppendBytesLazy bs []
81
unpackBytes :: ByteString -> [Word8] unpackBytes bs = unpackAppendBytesLazy bs []
81
unpackBytes bs = unpackAppendBytesLazy bs []
44
false
true
0
6
10
28
14
14
null
null
ingemaradahl/bilder
src/Compiler/Utils.hs
lgpl-3.0
mapStmExpM f (SExp e) = SExp <$> f e
36
mapStmExpM f (SExp e) = SExp <$> f e
36
mapStmExpM f (SExp e) = SExp <$> f e
36
false
false
0
7
8
24
11
13
null
null
JohnL4/HaskellXamlScan
find-common-resources.hs
mit
isDirOpt :: OptFlag -> Bool isDirOpt (DirOpt _) = True
54
isDirOpt :: OptFlag -> Bool isDirOpt (DirOpt _) = True
54
isDirOpt (DirOpt _) = True
26
false
true
0
7
9
24
12
12
null
null
vollmerm/accelerate-apart
Data/Array/Accelerate/Apart/Exp.hs
bsd-3-clause
-- Compile an open embedded scalar binary function into a list of C expression whose length corresponds to the number of -- tuple components of the embedded result type. In addition ot the generated C, the types and names of the variables -- that need to contain the function argument are returned. -- -- The expression ...
833
fun2ToC :: forall t1 t2 t3 aenv. (Elt t1, Elt t2, Elt t3) => Env aenv -> OpenFun () aenv (t1 -> t2 -> t3) -> ([(C.Type, Name)], [(C.Type, Name)], [C.Exp]) fun2ToC aenv (Lam (Lam (Body f))) = (bnds1, bnds2, openExpToC env2 aenv f) where (bnds1, env1) = EmptyEnv `pushExpEnv` (undefined::OpenExp () a...
407
fun2ToC aenv (Lam (Lam (Body f))) = (bnds1, bnds2, openExpToC env2 aenv f) where (bnds1, env1) = EmptyEnv `pushExpEnv` (undefined::OpenExp () aenv t1) (bnds2, env2) = env1 `pushExpEnv` (undefined::OpenExp ((), t1) aenv t2)
244
true
true
0
12
166
227
130
97
null
null
ndmitchell/nsis
src/Development/NSIS/Plugins/WinMessages.hs
bsd-3-clause
wm_IME_KEYLAST = 0x010F
40
wm_IME_KEYLAST = 0x010F
40
wm_IME_KEYLAST = 0x010F
40
false
false
0
4
19
6
3
3
null
null
hesiod/OpenGL
src/Graphics/Rendering/OpenGL/GL/PerFragment.hs
bsd-3-clause
blendEquationSeparate :: StateVar (BlendEquation,BlendEquation) blendEquationSeparate = makeStateVar (liftM2 (,) (getEnum1 unmarshalBlendEquation GetBlendEquation) (getEnum1 unmarshalBlendEquation GetBlendEquationAlpha)) (\(funcRGB, funcAlpha) -> glBlendEquationSeparate (marsh...
412
blendEquationSeparate :: StateVar (BlendEquation,BlendEquation) blendEquationSeparate = makeStateVar (liftM2 (,) (getEnum1 unmarshalBlendEquation GetBlendEquation) (getEnum1 unmarshalBlendEquation GetBlendEquationAlpha)) (\(funcRGB, funcAlpha) -> glBlendEquationSeparate (marsh...
412
blendEquationSeparate = makeStateVar (liftM2 (,) (getEnum1 unmarshalBlendEquation GetBlendEquation) (getEnum1 unmarshalBlendEquation GetBlendEquationAlpha)) (\(funcRGB, funcAlpha) -> glBlendEquationSeparate (marshalBlendEquation funcRGB) (mars...
348
false
true
0
10
99
85
45
40
null
null
ku-fpg/kansas-amber
System/Hardware/Haskino/Show.hs
bsd-3-clause
showCommand (DigitalWriteE p b) = showCommand2 "DigitalWriteE" p b
66
showCommand (DigitalWriteE p b) = showCommand2 "DigitalWriteE" p b
66
showCommand (DigitalWriteE p b) = showCommand2 "DigitalWriteE" p b
66
false
false
0
7
8
24
11
13
null
null
kim/amazonka
amazonka-kinesis/gen/Network/AWS/Kinesis/ListTagsForStream.hs
mpl-2.0
-- | 'ListTagsForStreamResponse' constructor. -- -- The fields accessible through corresponding lenses are: -- -- * 'ltfsrHasMoreTags' @::@ 'Bool' -- -- * 'ltfsrTags' @::@ ['Tag'] -- listTagsForStreamResponse :: Bool -- ^ 'ltfsrHasMoreTags' -> ListTagsForStreamResponse listTagsForStreamRespons...
420
listTagsForStreamResponse :: Bool -- ^ 'ltfsrHasMoreTags' -> ListTagsForStreamResponse listTagsForStreamResponse p1 = ListTagsForStreamResponse { _ltfsrHasMoreTags = p1 , _ltfsrTags = mempty }
237
listTagsForStreamResponse p1 = ListTagsForStreamResponse { _ltfsrHasMoreTags = p1 , _ltfsrTags = mempty }
124
true
true
0
7
91
45
28
17
null
null
TomMD/ghc
compiler/utils/Outputable.hs
bsd-3-clause
double n = docToSDoc $ Pretty.double n
41
double n = docToSDoc $ Pretty.double n
41
double n = docToSDoc $ Pretty.double n
41
false
false
0
7
9
18
8
10
null
null
corajr/cataskell
src/Cataskell/Game.hs
bsd-3-clause
removeBonuses :: (RandomGen g) => Bonus -> GameState g removeBonuses bonus' = do pIs <- uses players Map.keys forM_ pIs $ \pI -> do oldBonuses <- use (players . ix pI . bonuses) players . ix pI . bonuses .= Set.filter (/= bonus') oldBonuses
253
removeBonuses :: (RandomGen g) => Bonus -> GameState g removeBonuses bonus' = do pIs <- uses players Map.keys forM_ pIs $ \pI -> do oldBonuses <- use (players . ix pI . bonuses) players . ix pI . bonuses .= Set.filter (/= bonus') oldBonuses
253
removeBonuses bonus' = do pIs <- uses players Map.keys forM_ pIs $ \pI -> do oldBonuses <- use (players . ix pI . bonuses) players . ix pI . bonuses .= Set.filter (/= bonus') oldBonuses
198
false
true
0
16
56
112
53
59
null
null
Gabriel439/succinct
tests/popCountTest.hs
bsd-2-clause
main :: IO () main = $defaultMainGenerator
42
main :: IO () main = $defaultMainGenerator
42
main = $defaultMainGenerator
28
false
true
0
7
6
23
9
14
null
null
pparkkin/eta
compiler/ETA/Types/Type.hs
bsd-3-clause
mkPiKinds (tv:tvs) res | isKindVar tv = ForAllTy tv (mkPiKinds tvs res) | otherwise = FunTy (tyVarKind tv) (mkPiKinds tvs res)
142
mkPiKinds (tv:tvs) res | isKindVar tv = ForAllTy tv (mkPiKinds tvs res) | otherwise = FunTy (tyVarKind tv) (mkPiKinds tvs res)
142
mkPiKinds (tv:tvs) res | isKindVar tv = ForAllTy tv (mkPiKinds tvs res) | otherwise = FunTy (tyVarKind tv) (mkPiKinds tvs res)
142
false
false
0
8
36
76
33
43
null
null
acowley/roshask
src/Ros/Node.hs
bsd-3-clause
getServerParam :: XmlRpcType a => String -> Node (Maybe a) getServerParam var = do state <- get let masterUri = master state myName = nodeName state -- Call hasParam first because getParam only returns -- a partial resul...
784
getServerParam :: XmlRpcType a => String -> Node (Maybe a) getServerParam var = do state <- get let masterUri = master state myName = nodeName state -- Call hasParam first because getParam only returns -- a partial resul...
784
getServerParam var = do state <- get let masterUri = master state myName = nodeName state -- Call hasParam first because getParam only returns -- a partial result (just the return code) in failure. ...
725
false
true
0
13
302
128
60
68
null
null
siddhanathan/ghc
testsuite/tests/rename/should_compile/timing001.hs
bsd-3-clause
a326 = a327
11
a326 = a327
11
a326 = a327
11
false
false
1
5
2
10
3
7
null
null
lukasepple/spacecookie
src/Network/Gopher/Types.hs
gpl-3.0
isFile GifFile = True
21
isFile GifFile = True
21
isFile GifFile = True
21
false
false
0
5
3
9
4
5
null
null
AndrewRademacher/wai
wai-extra/test/Network/Wai/Middleware/StripHeadersSpec.hs
mit
spec :: Spec spec = describe "stripHeader" $ do let host = "example.com" let ciTestHeaders = map (first CI.mk) testHeaders it "strips a specific header" $ do resp1 <- runApp host (addHeaders testHeaders) defaultRequest resp2 <- runApp host (stripHeaderIf "Foo" (const False) . addHeaders tes...
1,124
spec :: Spec spec = describe "stripHeader" $ do let host = "example.com" let ciTestHeaders = map (first CI.mk) testHeaders it "strips a specific header" $ do resp1 <- runApp host (addHeaders testHeaders) defaultRequest resp2 <- runApp host (stripHeaderIf "Foo" (const False) . addHeaders tes...
1,124
spec = describe "stripHeader" $ do let host = "example.com" let ciTestHeaders = map (first CI.mk) testHeaders it "strips a specific header" $ do resp1 <- runApp host (addHeaders testHeaders) defaultRequest resp2 <- runApp host (stripHeaderIf "Foo" (const False) . addHeaders testHeaders) def...
1,111
false
true
21
13
240
324
160
164
null
null
rleshchinskiy/vector
Data/Vector/Primitive.hs
bsd-3-clause
ifoldl = G.ifoldl
17
ifoldl = G.ifoldl
17
ifoldl = G.ifoldl
17
false
false
0
5
2
8
4
4
null
null
oldmanmike/haskellmade-hero
game/Main.hs
bsd-3-clause
main :: IO () main = undefined
30
main :: IO () main = undefined
30
main = undefined
16
false
true
1
6
6
20
8
12
null
null
MichaelBurge/ToxicSludgeDB
src/Database/Toxic/Query/Parser.hs
mit
variable :: CharParser Expression variable = EVariable <$> identifier
69
variable :: CharParser Expression variable = EVariable <$> identifier
69
variable = EVariable <$> identifier
35
false
true
0
5
8
18
9
9
null
null
omefire/lens
src/Control/Lens/Indexed.hs
bsd-3-clause
-- $setup -- >>> :set -XNoOverloadedStrings -- >>> import Control.Lens -- | Compose an 'Indexed' function with a non-indexed function. -- -- Mnemonically, the @<@ points to the indexing we want to preserve. -- -- >>> let nestedMap = (fmap Map.fromList . Map.fromList) [(1, [(10, "one,ten"), (20, "one,twenty")]), (2, [(...
606
(<.) :: Indexable i p => (Indexed i s t -> r) -> ((a -> b) -> s -> t) -> p a b -> r (<.) f g h = f . Indexed $ g . indexed h
124
(<.) f g h = f . Indexed $ g . indexed h
40
true
true
0
11
96
105
59
46
null
null
nevrenato/Hets_Fork
Propositional/ProveWithTruthTable.hs
gpl-2.0
ttProver :: LP.Prover Sig.Sign FORMULA PMorphism.Morphism PropSL ProofTree ttProver = LP.mkProverTemplate ttS top ttProveGUI
124
ttProver :: LP.Prover Sig.Sign FORMULA PMorphism.Morphism PropSL ProofTree ttProver = LP.mkProverTemplate ttS top ttProveGUI
124
ttProver = LP.mkProverTemplate ttS top ttProveGUI
49
false
true
1
6
13
41
18
23
null
null
aBhallo/AoC2016
Day 6/day6part1.hs
mit
mostFreq :: Ord a => [a] -> a mostFreq list = head $ head $ sortBy (\x -> (\y -> compare (length y) (length x))) $ group $ sort list
132
mostFreq :: Ord a => [a] -> a mostFreq list = head $ head $ sortBy (\x -> (\y -> compare (length y) (length x))) $ group $ sort list
132
mostFreq list = head $ head $ sortBy (\x -> (\y -> compare (length y) (length x))) $ group $ sort list
102
false
true
4
13
29
90
43
47
null
null
grnet/snf-ganeti
src/Ganeti/Constants.hs
bsd-2-clause
drbdStatusFile :: String drbdStatusFile = "/proc/drbd"
54
drbdStatusFile :: String drbdStatusFile = "/proc/drbd"
54
drbdStatusFile = "/proc/drbd"
29
false
true
0
6
5
18
7
11
null
null
formrre/yi
yi-core/src/Yi/Core.hs
gpl-2.0
startSubprocess :: FilePath -> [String] -> (Either SomeException ExitCode -> YiM x) -> YiM BufferRef startSubprocess cmd args onExit = onYiVar $ \yi var -> do let (e', bufref) = runEditor (yiConfig yi) (p...
904
startSubprocess :: FilePath -> [String] -> (Either SomeException ExitCode -> YiM x) -> YiM BufferRef startSubprocess cmd args onExit = onYiVar $ \yi var -> do let (e', bufref) = runEditor (yiConfig yi) (p...
904
startSubprocess cmd args onExit = onYiVar $ \yi var -> do let (e', bufref) = runEditor (yiConfig yi) (printMsg ("Launched process: " <> T.pack cmd) >> newEmptyBufferE (MemBuffer bufferName)) ...
755
false
true
0
19
366
239
116
123
null
null
EindhovenHaskellMeetup/meetup
courses/programming-in-haskell/pih-exercises/test/Chapter05Spec.hs
mit
spec :: Spec spec = do describe "Exercise 1: pyths" $ do it "yields all pythagorean triples with numbers at most n" $ do pyths 4 `shouldBe` [] pyths 5 `shouldBe` [(3,4,5),(4,3,5)]
198
spec :: Spec spec = do describe "Exercise 1: pyths" $ do it "yields all pythagorean triples with numbers at most n" $ do pyths 4 `shouldBe` [] pyths 5 `shouldBe` [(3,4,5),(4,3,5)]
198
spec = do describe "Exercise 1: pyths" $ do it "yields all pythagorean triples with numbers at most n" $ do pyths 4 `shouldBe` [] pyths 5 `shouldBe` [(3,4,5),(4,3,5)]
185
false
true
0
16
50
88
44
44
null
null
framp/postgrest
test/SpecHelper.hs
mit
rangeUnit :: Header rangeUnit = ("Range-Unit" :: CI BS.ByteString, "items")
75
rangeUnit :: Header rangeUnit = ("Range-Unit" :: CI BS.ByteString, "items")
75
rangeUnit = ("Range-Unit" :: CI BS.ByteString, "items")
55
false
true
0
7
9
25
14
11
null
null
guoguo12/haskell-ptable
ptable.hs
apache-2.0
gnum "La" = -1
14
gnum "La" = -1
14
gnum "La" = -1
14
false
false
0
5
3
12
5
7
null
null
UBMLtonGroup/timberc
src/Type.hs
bsd-3-clause
tiLhs env alpha tiX xs = do x <- newName tempSym let env' = addTEnv [(x,scheme alpha)] env (_,pes,ts,es) <- fmap unzip4 (mapM (tiX env' x) xs) -- ignore returned substs (must be null) (s,_,f) <- re...
1,110
tiLhs env alpha tiX xs = do x <- newName tempSym let env' = addTEnv [(x,scheme alpha)] env (_,pes,ts,es) <- fmap unzip4 (mapM (tiX env' x) xs) -- ignore returned substs (must be null) (s,_,f) <- re...
1,110
tiLhs env alpha tiX xs = do x <- newName tempSym let env' = addTEnv [(x,scheme alpha)] env (_,pes,ts,es) <- fmap unzip4 (mapM (tiX env' x) xs) -- ignore returned substs (must be null) (s,_,f) <- re...
1,110
false
false
0
17
514
294
147
147
null
null
fmapfmapfmap/amazonka
amazonka-ssm/gen/Network/AWS/SSM/DeleteAssociation.hs
mpl-2.0
-- | The name of the configuration document. delName :: Lens' DeleteAssociation Text delName = lens _delName (\ s a -> s{_delName = a})
135
delName :: Lens' DeleteAssociation Text delName = lens _delName (\ s a -> s{_delName = a})
90
delName = lens _delName (\ s a -> s{_delName = a})
50
true
true
0
9
23
40
22
18
null
null
ch1bo/dotfiles
xsession/xmonad/xmonad.hs
mit
xmobar = statusBar "xmobar" pp toggleStrutsKey where -- Pretty print xmonad status pp = def { ppCurrent = xmobarColor "#51afef" "" . wrap "[" "]" , ppTitle = xmobarColor "#51afef" "" . shorten 40 , ppVisible = wrap "(" ")" } -- Toggle display of top bar toggleStrutsKey XConfig { XMonad.modMas...
420
xmobar = statusBar "xmobar" pp toggleStrutsKey where -- Pretty print xmonad status pp = def { ppCurrent = xmobarColor "#51afef" "" . wrap "[" "]" , ppTitle = xmobarColor "#51afef" "" . shorten 40 , ppVisible = wrap "(" ")" } -- Toggle display of top bar toggleStrutsKey XConfig { XMonad.modMas...
420
xmobar = statusBar "xmobar" pp toggleStrutsKey where -- Pretty print xmonad status pp = def { ppCurrent = xmobarColor "#51afef" "" . wrap "[" "]" , ppTitle = xmobarColor "#51afef" "" . shorten 40 , ppVisible = wrap "(" ")" } -- Toggle display of top bar toggleStrutsKey XConfig { XMonad.modMas...
420
false
false
1
8
92
107
54
53
null
null
robbertkrebbers/fewdigits
Data/Real/ICReal.hs
bsd-2-clause
unsafeMkCReal = makeCReal . (CReal.unsafeMkCReal)
49
unsafeMkCReal = makeCReal . (CReal.unsafeMkCReal)
49
unsafeMkCReal = makeCReal . (CReal.unsafeMkCReal)
49
false
false
2
7
4
20
8
12
null
null
MichielDerhaeg/stack
src/Stack/Types/PackageIdentifier.hs
bsd-3-clause
packageIdentifierText :: PackageIdentifier -> Text packageIdentifierText = T.pack . packageIdentifierString
108
packageIdentifierText :: PackageIdentifier -> Text packageIdentifierText = T.pack . packageIdentifierString
108
packageIdentifierText = T.pack . packageIdentifierString
57
false
true
0
6
10
21
11
10
null
null
NorfairKing/the-notes
src/Logic/HoareLogic/Macro.hs
gpl-2.0
-- * Hoare Logic -- | Hoare Triple htrip :: Note -> Note -> Note -> Note htrip p a q = brac p <> commS "," <> a <> commS "," <> brac q
135
htrip :: Note -> Note -> Note -> Note htrip p a q = brac p <> commS "," <> a <> commS "," <> brac q
99
htrip p a q = brac p <> commS "," <> a <> commS "," <> brac q
61
true
true
2
9
35
66
30
36
null
null
kxxoling/hl
src/HL/View/Community.hs
bsd-3-clause
commercialConferences :: Html () commercialConferences = do li_ (a_ [href_ "http://cufp.org/"] "Commercial Users of Functional Programming (Roving)") li_ (a_ [href_ "http://www.lambdajam.com/"] "LambdaJam (Chicago, IL, USA)") li_ (a_ [href_ "http://functionalconf.com/"] "Functional Conf (Bangalore, IN)") ...
869
commercialConferences :: Html () commercialConferences = do li_ (a_ [href_ "http://cufp.org/"] "Commercial Users of Functional Programming (Roving)") li_ (a_ [href_ "http://www.lambdajam.com/"] "LambdaJam (Chicago, IL, USA)") li_ (a_ [href_ "http://functionalconf.com/"] "Functional Conf (Bangalore, IN)") ...
869
commercialConferences = do li_ (a_ [href_ "http://cufp.org/"] "Commercial Users of Functional Programming (Roving)") li_ (a_ [href_ "http://www.lambdajam.com/"] "LambdaJam (Chicago, IL, USA)") li_ (a_ [href_ "http://functionalconf.com/"] "Functional Conf (Bangalore, IN)") li_ (a_ [href_ "http://www.lam...
836
false
true
0
11
124
196
89
107
null
null
JacquesCarette/literate-scientific-software
code/drasil-example/Drasil/SSP/GenDefs.hs
bsd-2-clause
momEqlDerivExtEqn = inxi surfLoad * sin (inxi impLoadAngle) * inxi midpntHght
77
momEqlDerivExtEqn = inxi surfLoad * sin (inxi impLoadAngle) * inxi midpntHght
77
momEqlDerivExtEqn = inxi surfLoad * sin (inxi impLoadAngle) * inxi midpntHght
77
false
false
0
9
10
29
13
16
null
null
ucsd-progsys/nanomaly
bin/Evaluate.hs
bsd-3-clause
avg :: Fractional a => [a] -> a avg xs = sum xs / genericLength xs
66
avg :: Fractional a => [a] -> a avg xs = sum xs / genericLength xs
66
avg xs = sum xs / genericLength xs
34
false
true
2
8
15
44
19
25
null
null
wavewave/madgraph-auto-model
src/HEP/Automation/MadGraph/Model/ADMXUDD112degen.hs
bsd-2-clause
xudd112degenparse :: ParsecT String () Identity (ModelParam ADMXUDD112degen) xudd112degenparse = do string "MG" mgstr <- many1 (oneOf "+-0123456789.") string "MQ" mqstr <- many1 (oneOf "+-0123456789.") string "ML" mlstr <- many1 (oneOf "+-0123456789.") string "MN" mnstr <- many1 (oneOf "+-0123456789.")...
501
xudd112degenparse :: ParsecT String () Identity (ModelParam ADMXUDD112degen) xudd112degenparse = do string "MG" mgstr <- many1 (oneOf "+-0123456789.") string "MQ" mqstr <- many1 (oneOf "+-0123456789.") string "ML" mlstr <- many1 (oneOf "+-0123456789.") string "MN" mnstr <- many1 (oneOf "+-0123456789.")...
501
xudd112degenparse = do string "MG" mgstr <- many1 (oneOf "+-0123456789.") string "MQ" mqstr <- many1 (oneOf "+-0123456789.") string "ML" mlstr <- many1 (oneOf "+-0123456789.") string "MN" mnstr <- many1 (oneOf "+-0123456789.") return (ADMXUDD112degenParam (read mgstr) (read mqstr) (read mlstr) (read...
424
false
true
0
11
80
162
74
88
null
null
erantapaa/haskell-platform
hptool/os-extras/osx/bin/uninstall-hs.hs
bsd-3-clause
extract :: (FilePath -> Maybe b) -> Find a b extract p = findFilter $ const p
77
extract :: (FilePath -> Maybe b) -> Find a b extract p = findFilter $ const p
77
extract p = findFilter $ const p
32
false
true
0
8
16
40
19
21
null
null
Mahdi89/eTeak
src/SimTypes.hs
bsd-3-clause
uidToSv :: Int -> SimValue uidToSv uid = specialToSv $ UidSimValue uid
74
uidToSv :: Int -> SimValue uidToSv uid = specialToSv $ UidSimValue uid
70
uidToSv uid = specialToSv $ UidSimValue uid
43
false
true
2
7
15
32
13
19
null
null
LightAndLight/hindley-milner
src/Phil/AST/Binding.hs
bsd-3-clause
bindingName :: Binding a -> Ident bindingName (VariableBinding name _) = name
77
bindingName :: Binding a -> Ident bindingName (VariableBinding name _) = name
77
bindingName (VariableBinding name _) = name
43
false
true
0
7
11
29
14
15
null
null
Deewiant/haschoo
Haschoo/Evaluator/Macros.hs
bsd-3-clause
simplifyList vs = ScmList vs
29
simplifyList vs = ScmList vs
29
simplifyList vs = ScmList vs
29
false
false
0
5
5
12
5
7
null
null
choener/BiobaseVienna
Biobase/Vienna/ImportPar.hs
gpl-3.0
blockAssocs minKey maxKey keys (Just (Block xs)) = fromAssocs minKey maxKey 999999 $ P.zip keys xs
98
blockAssocs minKey maxKey keys (Just (Block xs)) = fromAssocs minKey maxKey 999999 $ P.zip keys xs
98
blockAssocs minKey maxKey keys (Just (Block xs)) = fromAssocs minKey maxKey 999999 $ P.zip keys xs
98
false
false
0
9
15
45
21
24
null
null
HJvT/hdirect
src/Parser.hs
bsd-3-clause
action_422 (193#) = happyShift action_69
40
action_422 (193#) = happyShift action_69
40
action_422 (193#) = happyShift action_69
40
false
false
0
6
4
15
7
8
null
null
xmonad/xmonad-contrib
XMonad/Layout/OneBig.hs
bsd-3-clause
cmaster:: Int -> Int -> Float -> Float -> Rectangle -> Rectangle cmaster n m cx cy (Rectangle x y sw sh) = Rectangle x y w h where w = if n > m+1 then round (fromIntegral sw*cx) else sw h = if n > 1 then round (fromIntegral sh*cy) ...
389
cmaster:: Int -> Int -> Float -> Float -> Rectangle -> Rectangle cmaster n m cx cy (Rectangle x y sw sh) = Rectangle x y w h where w = if n > m+1 then round (fromIntegral sw*cx) else sw h = if n > 1 then round (fromIntegral sh*cy) ...
389
cmaster n m cx cy (Rectangle x y sw sh) = Rectangle x y w h where w = if n > m+1 then round (fromIntegral sw*cx) else sw h = if n > 1 then round (fromIntegral sh*cy) else sh -- | Calculate rectangle for bottom win...
324
false
true
0
11
166
130
67
63
null
null
alexander-at-github/eta
compiler/ETA/TypeCheck/TcTypeNats.hs
bsd-3-clause
axLeq0L = mkAxiom1 "Leq0L" $ \t -> (num 0 <== t) === bool True
69
axLeq0L = mkAxiom1 "Leq0L" $ \t -> (num 0 <== t) === bool True
69
axLeq0L = mkAxiom1 "Leq0L" $ \t -> (num 0 <== t) === bool True
69
false
false
0
10
20
35
17
18
null
null
brendanhay/gogol
gogol-blogger/gen/Network/Google/Resource/Blogger/Posts/Delete.hs
mpl-2.0
-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\"). pdUploadType :: Lens' PostsDelete (Maybe Text) pdUploadType = lens _pdUploadType (\ s a -> s{_pdUploadType = a})
185
pdUploadType :: Lens' PostsDelete (Maybe Text) pdUploadType = lens _pdUploadType (\ s a -> s{_pdUploadType = a})
114
pdUploadType = lens _pdUploadType (\ s a -> s{_pdUploadType = a})
67
true
true
0
9
28
48
25
23
null
null
orangeduck/PyMark
parsers/PyMark.hs
bsd-2-clause
-- Unpacks Object from filename pyMarkUnpack :: FilePath -> IO PyMarkObject pyMarkUnpack file = do hndl <- openBinaryFile file ReadMode magic <- replicateM 6 (hGetChar hndl) if magic /= "PYMARK" then ioError (userError "Bad magic number for file") else return () version <- hGetChar hndl if version ...
498
pyMarkUnpack :: FilePath -> IO PyMarkObject pyMarkUnpack file = do hndl <- openBinaryFile file ReadMode magic <- replicateM 6 (hGetChar hndl) if magic /= "PYMARK" then ioError (userError "Bad magic number for file") else return () version <- hGetChar hndl if version /= (chr 1) then ioError (userE...
466
pyMarkUnpack file = do hndl <- openBinaryFile file ReadMode magic <- replicateM 6 (hGetChar hndl) if magic /= "PYMARK" then ioError (userError "Bad magic number for file") else return () version <- hGetChar hndl if version /= (chr 1) then ioError (userError "Bad version number for file") else r...
422
true
true
0
10
110
149
69
80
null
null