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
andrewMacmurray/haskell-book-solutions
src/ch22/Person.hs
mit
getDogR' :: Person -> Dog getDogR' = myLiftA2 Dog dogName address
67
getDogR' :: Person -> Dog getDogR' = myLiftA2 Dog dogName address
67
getDogR' = myLiftA2 Dog dogName address
41
false
true
0
5
12
22
11
11
null
null
merijn/parsers
src/Text/Parser/Token.hs
bsd-3-clause
-- | Lift an identifier style into a monad transformer -- -- Using @over@ from the @lens@ package: -- -- @'liftIdentifierStyle' = over 'styleChars' 'lift'@ liftIdentifierStyle :: (MonadTrans t, Monad m) => IdentifierStyle m -> IdentifierStyle (t m) liftIdentifierStyle = runIdentity . styleChars (Identity . lift)
313
liftIdentifierStyle :: (MonadTrans t, Monad m) => IdentifierStyle m -> IdentifierStyle (t m) liftIdentifierStyle = runIdentity . styleChars (Identity . lift)
157
liftIdentifierStyle = runIdentity . styleChars (Identity . lift)
64
true
true
0
9
45
61
33
28
null
null
jrahm/DuckTest
src/DuckTest/Builtins.hs
bsd-2-clause
intAttrs :: [(String, PyType)] intAttrs = map (,Any) ["__abs__", "__add__", "__and__", "__bool__", "__ceil__", "__class__", "__delattr__", "__dir__", "__divmod__", "__doc__", "__eq__", "__float__", "__floor__", "__floordiv__", "__format__", "__ge__", "__getattribute__", "...
1,232
intAttrs :: [(String, PyType)] intAttrs = map (,Any) ["__abs__", "__add__", "__and__", "__bool__", "__ceil__", "__class__", "__delattr__", "__dir__", "__divmod__", "__doc__", "__eq__", "__float__", "__floor__", "__floordiv__", "__format__", "__ge__", "__getattribute__", "...
1,232
intAttrs = map (,Any) ["__abs__", "__add__", "__and__", "__bool__", "__ceil__", "__class__", "__delattr__", "__dir__", "__divmod__", "__doc__", "__eq__", "__float__", "__floor__", "__floordiv__", "__format__", "__ge__", "__getattribute__", "__getnewargs__", "__gt__", "__h...
1,201
false
true
3
10
266
295
188
107
null
null
Rotsor/factorio-module-selector
factorio-module-selector.hs
unlicense
currentSolvedRecipes = solvedRecipes current_game_config
56
currentSolvedRecipes = solvedRecipes current_game_config
56
currentSolvedRecipes = solvedRecipes current_game_config
56
false
false
0
5
3
9
4
5
null
null
y-kamiya/parallel-concurrent-haskell
src/Mvar/Logger.hs
gpl-2.0
initLogger :: IO Logger initLogger = do m <- newEmptyMVar let l = Logger m forkIO (logger l) return l
109
initLogger :: IO Logger initLogger = do m <- newEmptyMVar let l = Logger m forkIO (logger l) return l
109
initLogger = do m <- newEmptyMVar let l = Logger m forkIO (logger l) return l
85
false
true
0
10
27
51
22
29
null
null
ngzax/urbit
pkg/hs/urbit-king/lib/Urbit/King/CLI.hs
mit
conCmd :: Parser Cmd conCmd = CmdCon <$> pierPath
49
conCmd :: Parser Cmd conCmd = CmdCon <$> pierPath
49
conCmd = CmdCon <$> pierPath
28
false
true
0
5
8
18
9
9
null
null
neilmayhew/DebianAnalytics
Analyze.hs
gpl-3.0
-- Count architectures archCounts :: [LogLine] -> [(Arch, Int)] archCounts = map (second length) . archUsers
108
archCounts :: [LogLine] -> [(Arch, Int)] archCounts = map (second length) . archUsers
85
archCounts = map (second length) . archUsers
44
true
true
1
9
15
49
24
25
null
null
lunaris/hindent
src/HIndent/Styles/Gibiansky.hs
bsd-3-clause
exprs (RecUpdate _ exp updates) = recUpdateExpr updates (pretty exp) (map prettyCommentCallbacks updates)
105
exprs (RecUpdate _ exp updates) = recUpdateExpr updates (pretty exp) (map prettyCommentCallbacks updates)
105
exprs (RecUpdate _ exp updates) = recUpdateExpr updates (pretty exp) (map prettyCommentCallbacks updates)
105
false
false
0
7
12
41
19
22
null
null
ezyang/ghc
compiler/prelude/THNames.hs
bsd-3-clause
letSIdKey = mkPreludeMiscIdUnique 311
44
letSIdKey = mkPreludeMiscIdUnique 311
44
letSIdKey = mkPreludeMiscIdUnique 311
44
false
false
0
5
10
9
4
5
null
null
abooij/cubicaltt
CTT.hs
mit
lookupBranch :: LIdent -> [Branch] -> Maybe Branch lookupBranch _ [] = Nothing
83
lookupBranch :: LIdent -> [Branch] -> Maybe Branch lookupBranch _ [] = Nothing
83
lookupBranch _ [] = Nothing
32
false
true
0
9
17
37
17
20
null
null
diku-dk/futhark
src/Futhark/CodeGen/Backends/GenericPython.hs
isc
readInput decl@(Imp.TransparentValue _ (Imp.ArrayValue _ _ bt ept dims)) = let type_name = readTypeEnum bt ept in Assign (Var $ extValueDescName decl) $ simpleCall "read_value" [String $ concat (replicate (length dims) "[]") ++ type_name]
271
readInput decl@(Imp.TransparentValue _ (Imp.ArrayValue _ _ bt ept dims)) = let type_name = readTypeEnum bt ept in Assign (Var $ extValueDescName decl) $ simpleCall "read_value" [String $ concat (replicate (length dims) "[]") ++ type_name]
271
readInput decl@(Imp.TransparentValue _ (Imp.ArrayValue _ _ bt ept dims)) = let type_name = readTypeEnum bt ept in Assign (Var $ extValueDescName decl) $ simpleCall "read_value" [String $ concat (replicate (length dims) "[]") ++ type_name]
271
false
false
0
16
66
104
50
54
null
null
akermu/akermu-xmonad
src/xmonad.hs
gpl-3.0
myTerminal :: String myTerminal = "urxvt"
41
myTerminal :: String myTerminal = "urxvt"
41
myTerminal = "urxvt"
20
false
true
0
4
5
11
6
5
null
null
ddssff/pandoc
src/Text/Pandoc/Readers/LaTeX.hs
gpl-2.0
hacek 'j' = "ǰ"
15
hacek 'j' = "ǰ"
15
hacek 'j' = "ǰ"
15
false
false
0
5
3
9
4
5
null
null
ganeti/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
adminGroup :: String adminGroup = Runtime.daemonGroup (ExtraGroup AdminGroup)
77
adminGroup :: String adminGroup = Runtime.daemonGroup (ExtraGroup AdminGroup)
77
adminGroup = Runtime.daemonGroup (ExtraGroup AdminGroup)
56
false
true
0
7
7
22
11
11
null
null
kawu/crf-chain2-tiers
src/Data/CRF/Chain2/Tiers/Model.hs
bsd-2-clause
unOMap :: Int -> OMap -> [(Feat, FeatIx)] unOMap k OMap{..} = [ (OFeat o x k, i) | (o, (p, q)) <- zip (map mkOb [0..]) (pairs . map fromIntegral $ U.toList oBeg) , (x, i) <- zip (U.toList $ U.slice p (q - p) oLb) (U.toList $ U.slice p (q - p) oIx) ] where pairs xs = zi...
387
unOMap :: Int -> OMap -> [(Feat, FeatIx)] unOMap k OMap{..} = [ (OFeat o x k, i) | (o, (p, q)) <- zip (map mkOb [0..]) (pairs . map fromIntegral $ U.toList oBeg) , (x, i) <- zip (U.toList $ U.slice p (q - p) oLb) (U.toList $ U.slice p (q - p) oIx) ] where pairs xs = zi...
387
unOMap k OMap{..} = [ (OFeat o x k, i) | (o, (p, q)) <- zip (map mkOb [0..]) (pairs . map fromIntegral $ U.toList oBeg) , (x, i) <- zip (U.toList $ U.slice p (q - p) oLb) (U.toList $ U.slice p (q - p) oIx) ] where pairs xs = zip xs (tail xs) -- | Feature map restrict...
345
false
true
2
13
125
210
107
103
null
null
brendanhay/gogol
gogol-cloudprivatecatalogproducer/gen/Network/Google/CloudPrivateCatalogProducer/Types/Product.hs
mpl-2.0
-- | Creates a value of 'GoogleIAMV1AuditConfig' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'givacService' -- -- * 'givacAuditLogConfigs' googleIAMV1AuditConfig :: GoogleIAMV1AuditConfig googleIAMV1AuditConfig = GoogleIAMV1A...
394
googleIAMV1AuditConfig :: GoogleIAMV1AuditConfig googleIAMV1AuditConfig = GoogleIAMV1AuditConfig' {_givacService = Nothing, _givacAuditLogConfigs = Nothing}
166
googleIAMV1AuditConfig = GoogleIAMV1AuditConfig' {_givacService = Nothing, _givacAuditLogConfigs = Nothing}
113
true
true
0
7
59
42
24
18
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/enumFromThenTo_4.hs
mit
primCmpInt (Neg Zero) (Neg Zero) = EQ
37
primCmpInt (Neg Zero) (Neg Zero) = EQ
37
primCmpInt (Neg Zero) (Neg Zero) = EQ
37
false
false
0
7
6
23
11
12
null
null
mzini/TcT
source/Tct/Certificate.hs
gpl-3.0
(Exp Nothing) `compose` (Exp _) = Exp Nothing
64
(Exp Nothing) `compose` (Exp _) = Exp Nothing
64
(Exp Nothing) `compose` (Exp _) = Exp Nothing
64
false
false
0
7
26
29
14
15
null
null
klangner/radium
src/Radium/Element.hs
bsd-2-clause
possibleIonValences :: Ion -> [Int] possibleIonValences i = valenceHelper <$> possibleIonElectronConfigs i
106
possibleIonValences :: Ion -> [Int] possibleIonValences i = valenceHelper <$> possibleIonElectronConfigs i
106
possibleIonValences i = valenceHelper <$> possibleIonElectronConfigs i
70
false
true
0
6
11
28
14
14
null
null
karamaan/karamaan-opaleye
Karamaan/Opaleye/Values.hs
bsd-3-clause
nextColName :: S String nextColName = do { s <- ask; a <- nextCol; return (s ++ show a) }
89
nextColName :: S String nextColName = do { s <- ask; a <- nextCol; return (s ++ show a) }
89
nextColName = do { s <- ask; a <- nextCol; return (s ++ show a) }
65
false
true
0
11
19
54
25
29
null
null
Spheniscida/symmath
Symmath/Simplify.hs
mit
simplifyAbs (Abs (Product (Number n) t)) = Product (Number $ abs n) (Abs t)
75
simplifyAbs (Abs (Product (Number n) t)) = Product (Number $ abs n) (Abs t)
75
simplifyAbs (Abs (Product (Number n) t)) = Product (Number $ abs n) (Abs t)
75
false
false
0
10
13
51
24
27
null
null
mfpi/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/NV/ExplicitMultisample.hs
bsd-3-clause
gl_TEXTURE_RENDERBUFFER :: GLenum gl_TEXTURE_RENDERBUFFER = 0x8E55
66
gl_TEXTURE_RENDERBUFFER :: GLenum gl_TEXTURE_RENDERBUFFER = 0x8E55
66
gl_TEXTURE_RENDERBUFFER = 0x8E55
32
false
true
0
4
5
11
6
5
null
null
kim/amazonka
amazonka-iam/gen/Network/AWS/IAM/GetRolePolicy.hs
mpl-2.0
-- | The name of the role associated with the policy. grpRoleName :: Lens' GetRolePolicy Text grpRoleName = lens _grpRoleName (\s a -> s { _grpRoleName = a })
158
grpRoleName :: Lens' GetRolePolicy Text grpRoleName = lens _grpRoleName (\s a -> s { _grpRoleName = a })
104
grpRoleName = lens _grpRoleName (\s a -> s { _grpRoleName = a })
64
true
true
0
9
28
40
22
18
null
null
xenog/haskoin
src/Network/Haskoin/Util.hs
unlicense
-- | Returns the last value of a triple. lst3 :: (a,b,c) -> c lst3 (_,_,c) = c
78
lst3 :: (a,b,c) -> c lst3 (_,_,c) = c
37
lst3 (_,_,c) = c
16
true
true
0
6
17
37
22
15
null
null
wereHamster/haskell-appc
test/Test.hs
mit
main :: IO () main = do hspec spec
38
main :: IO () main = do hspec spec
38
main = do hspec spec
24
false
true
0
7
12
22
10
12
null
null
ku-fpg/kansas-amber
legacy/Rewrite/LCD.hs
bsd-3-clause
lcdI2CBitsToVal LCD_I2C_RS = 1
37
lcdI2CBitsToVal LCD_I2C_RS = 1
37
lcdI2CBitsToVal LCD_I2C_RS = 1
37
false
false
0
5
10
9
4
5
null
null
DanielWaterworth/Idris-dev
src/IRTS/Compiler.hs
bsd-3-clause
irAlt vs _ (ConstCase x rhs) | matchable x = LConstCase x <$> irSC vs rhs | matchableTy x = LDefaultCase <$> irSC vs rhs where matchable (I _) = True matchable (BI _) = True matchable (Ch _) = True matchable (Str _) = True matchable _ = False matchableTy (AType (ATInt ITNative)) = T...
689
irAlt vs _ (ConstCase x rhs) | matchable x = LConstCase x <$> irSC vs rhs | matchableTy x = LDefaultCase <$> irSC vs rhs where matchable (I _) = True matchable (BI _) = True matchable (Ch _) = True matchable (Str _) = True matchable _ = False matchableTy (AType (ATInt ITNative)) = T...
689
irAlt vs _ (ConstCase x rhs) | matchable x = LConstCase x <$> irSC vs rhs | matchableTy x = LDefaultCase <$> irSC vs rhs where matchable (I _) = True matchable (BI _) = True matchable (Ch _) = True matchable (Str _) = True matchable _ = False matchableTy (AType (ATInt ITNative)) = T...
689
false
false
1
11
175
309
150
159
null
null
advancedtelematic/quickcheck-state-machine-model
test/ShrinkingProps.hs
bsd-3-clause
execCmd :: Model Symbolic -> QSM.Command (At Cmd) (At Resp) -> Event Symbolic execCmd model (QSM.Command cmd resp _) = lockstep model cmd resp
142
execCmd :: Model Symbolic -> QSM.Command (At Cmd) (At Resp) -> Event Symbolic execCmd model (QSM.Command cmd resp _) = lockstep model cmd resp
142
execCmd model (QSM.Command cmd resp _) = lockstep model cmd resp
64
false
true
0
9
23
68
32
36
null
null
fmapfmapfmap/amazonka
amazonka-swf/gen/Network/AWS/SWF/Types/Product.hs
mpl-2.0
-- | If the event is of type 'ActivityTaskFailed' then this member is set and -- provides detailed information about the event. It is not set for other -- event types. heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes) heActivityTaskFailedEventAttributes = lens _heActivi...
402
heActivityTaskFailedEventAttributes :: Lens' HistoryEvent (Maybe ActivityTaskFailedEventAttributes) heActivityTaskFailedEventAttributes = lens _heActivityTaskFailedEventAttributes (\ s a -> s{_heActivityTaskFailedEventAttributes = a})
234
heActivityTaskFailedEventAttributes = lens _heActivityTaskFailedEventAttributes (\ s a -> s{_heActivityTaskFailedEventAttributes = a})
134
true
true
0
9
47
48
27
21
null
null
spinda/liquidhaskell
tests/gsoc15/unknown/pos/gadtEval.hs
bsd-3-clause
equal (B x) (B y) = B (x == y)
31
equal (B x) (B y) = B (x == y)
31
equal (B x) (B y) = B (x == y)
31
false
false
0
7
10
33
16
17
null
null
luinix/haskell_snail
.cabal-sandbox/share/x86_64-osx-ghc-7.6.3/hlint-1.8.59/Default.hs
gpl-3.0
warn = (\(x,y) -> (x,f y)) ==> Control.Arrow.second f
54
warn = (\(x,y) -> (x,f y)) ==> Control.Arrow.second f
54
warn = (\(x,y) -> (x,f y)) ==> Control.Arrow.second f
54
false
false
2
8
9
39
21
18
null
null
Lythimus/lptv
sites/all/modules/jgm-pandoc-8be6cc2/src/markdown2pdf.hs
gpl-2.0
run :: FilePath -> [String] -> IO (Either String String) run file opts = do (code, out, err) <- readProcessWithExitCode' (encodeString file) (map encodeString opts) "" let msg = out ++ err case code of ExitFailure _ -> return $ Left $! msg ExitSuccess -> return $ Right $! msg
317
run :: FilePath -> [String] -> IO (Either String String) run file opts = do (code, out, err) <- readProcessWithExitCode' (encodeString file) (map encodeString opts) "" let msg = out ++ err case code of ExitFailure _ -> return $ Left $! msg ExitSuccess -> return $ Right $! msg
317
run file opts = do (code, out, err) <- readProcessWithExitCode' (encodeString file) (map encodeString opts) "" let msg = out ++ err case code of ExitFailure _ -> return $ Left $! msg ExitSuccess -> return $ Right $! msg
260
false
true
0
12
90
132
63
69
null
null
fmapfmapfmap/amazonka
amazonka-codedeploy/test/Test/AWS/Gen/CodeDeploy.hs
mpl-2.0
testUpdateApplication :: UpdateApplication -> TestTree testUpdateApplication = req "UpdateApplication" "fixture/UpdateApplication.yaml"
143
testUpdateApplication :: UpdateApplication -> TestTree testUpdateApplication = req "UpdateApplication" "fixture/UpdateApplication.yaml"
143
testUpdateApplication = req "UpdateApplication" "fixture/UpdateApplication.yaml"
88
false
true
0
7
17
28
11
17
null
null
fmapfmapfmap/amazonka
amazonka-ec2/gen/Network/AWS/EC2/Types/Product.hs
mpl-2.0
-- | The state of the Spot Instance request. csirState :: Lens' CancelledSpotInstanceRequest (Maybe CancelSpotInstanceRequestState) csirState = lens _csirState (\ s a -> s{_csirState = a})
188
csirState :: Lens' CancelledSpotInstanceRequest (Maybe CancelSpotInstanceRequestState) csirState = lens _csirState (\ s a -> s{_csirState = a})
143
csirState = lens _csirState (\ s a -> s{_csirState = a})
56
true
true
0
9
25
46
25
21
null
null
jaapterwoerds/algorithmx
src/Sudoku.hs
bsd-3-clause
columnToRow ::[(CellCoordinate, [Int])] -> Int -> [CellCoordinate] columnToRow x i = [coordinate | (coordinate,columns)<- x, i `elem` columns]
142
columnToRow ::[(CellCoordinate, [Int])] -> Int -> [CellCoordinate] columnToRow x i = [coordinate | (coordinate,columns)<- x, i `elem` columns]
142
columnToRow x i = [coordinate | (coordinate,columns)<- x, i `elem` columns]
75
false
true
0
9
17
72
39
33
null
null
AlexanderPankiv/ghc
compiler/cmm/CLabel.hs
bsd-3-clause
pprCLabel platform (DynamicLinkerLabel info lbl) | cGhcWithNativeCodeGen == "YES" = pprDynamicLinkerAsmLabel platform info lbl
130
pprCLabel platform (DynamicLinkerLabel info lbl) | cGhcWithNativeCodeGen == "YES" = pprDynamicLinkerAsmLabel platform info lbl
130
pprCLabel platform (DynamicLinkerLabel info lbl) | cGhcWithNativeCodeGen == "YES" = pprDynamicLinkerAsmLabel platform info lbl
130
false
false
0
8
17
38
16
22
null
null
tolysz/prepare-ghcjs
spec-lts8/base/GHC/Storable.hs
bsd-3-clause
writeWord64OffPtr (Ptr a) (I# i) (W64# x) = IO $ \s -> case writeWord64OffAddr# a i x s of s2 -> (# s2, () #)
114
writeWord64OffPtr (Ptr a) (I# i) (W64# x) = IO $ \s -> case writeWord64OffAddr# a i x s of s2 -> (# s2, () #)
114
writeWord64OffPtr (Ptr a) (I# i) (W64# x) = IO $ \s -> case writeWord64OffAddr# a i x s of s2 -> (# s2, () #)
114
false
false
0
11
29
66
33
33
null
null
robeverest/ast-decoration
Rewrite.hs
bsd-3-clause
var1 = OpenSTLC (Var (SuccIdx ZeroIdx))
39
var1 = OpenSTLC (Var (SuccIdx ZeroIdx))
39
var1 = OpenSTLC (Var (SuccIdx ZeroIdx))
39
false
false
1
9
5
24
10
14
null
null
josuf107/Slash
Java.hs
gpl-3.0
handleBuilder :: Handler Builder handleBuilder e cb@(ClassBuilder c p) = case p of Class -> case e of EvKey (KASCII 'c') [MCtrl] -> ClassBuilder c Done EvKey (KASCII 'P') _ -> ClassBuilder (c & modifyClass <>~ [Public]) p EvKey (KASCII 'n') _ -> ClassBuilder c ClassName ...
624
handleBuilder :: Handler Builder handleBuilder e cb@(ClassBuilder c p) = case p of Class -> case e of EvKey (KASCII 'c') [MCtrl] -> ClassBuilder c Done EvKey (KASCII 'P') _ -> ClassBuilder (c & modifyClass <>~ [Public]) p EvKey (KASCII 'n') _ -> ClassBuilder c ClassName ...
624
handleBuilder e cb@(ClassBuilder c p) = case p of Class -> case e of EvKey (KASCII 'c') [MCtrl] -> ClassBuilder c Done EvKey (KASCII 'P') _ -> ClassBuilder (c & modifyClass <>~ [Public]) p EvKey (KASCII 'n') _ -> ClassBuilder c ClassName _ -> cb ClassN...
591
false
true
0
14
214
243
119
124
null
null
josercruz01/hsoptions
tests/unit/System/Console/HsOptionsTestHelpers.hs
apache-2.0
makeConfFile :: [String] -> String makeConfFile = unlines
57
makeConfFile :: [String] -> String makeConfFile = unlines
57
makeConfFile = unlines
22
false
true
0
6
7
18
10
8
null
null
keithodulaigh/Hets
GUI/HTkProofDetails.hs
gpl-2.0
toggleMultipleTags :: Content -- ^ kind of text tag to toggle -> Bool -- ^ current visibility state -> Editor -- ^ editor window to which button will be attached -> IORef (OMap.OMap (String, Int) GoalDescription) -- ^ c...
1,102
toggleMultipleTags :: Content -- ^ kind of text tag to toggle -> Bool -- ^ current visibility state -> Editor -- ^ editor window to which button will be attached -> IORef (OMap.OMap (String, Int) GoalDescription) -- ^ c...
1,102
toggleMultipleTags content expanded ed stateRef = do s <- readIORef stateRef mapM_ (\ (dKey, goalDesc) -> do let openText = if content == TacticScriptText then tacticScriptText goalDesc else proofTreeText goalDesc when (textShown openText == expa...
715
false
true
0
17
368
164
82
82
null
null
icyfork/shellcheck
ShellCheck/Analytics.hs
gpl-3.0
prop_checkTr3 = verifyNot checkTr "tr -d '[:lower:]'"
53
prop_checkTr3 = verifyNot checkTr "tr -d '[:lower:]'"
53
prop_checkTr3 = verifyNot checkTr "tr -d '[:lower:]'"
53
false
false
1
5
6
15
5
10
null
null
DaMSL/K3
src/Language/K3/Runtime/Engine.hs
apache-2.0
builtinHandle Stderr = SIO.stderr
33
builtinHandle Stderr = SIO.stderr
33
builtinHandle Stderr = SIO.stderr
33
false
false
0
5
3
11
5
6
null
null
nomicflux/threals
src/Threal/Impartial.hs
gpl-2.0
impartializeTree :: ThrealTree -> ImpartialTree impartializeTree TThunk = IThunk
80
impartializeTree :: ThrealTree -> ImpartialTree impartializeTree TThunk = IThunk
80
impartializeTree TThunk = IThunk
32
false
true
0
5
8
18
9
9
null
null
TomMD/ghc
compiler/basicTypes/IdInfo.hs
bsd-3-clause
-- | Remove usage (but not strictness) info on the 'IdInfo' zapUsageInfo :: IdInfo -> Maybe IdInfo zapUsageInfo info = Just (info {demandInfo = zapUsageDemand (demandInfo info)})
178
zapUsageInfo :: IdInfo -> Maybe IdInfo zapUsageInfo info = Just (info {demandInfo = zapUsageDemand (demandInfo info)})
118
zapUsageInfo info = Just (info {demandInfo = zapUsageDemand (demandInfo info)})
79
true
true
0
11
26
45
23
22
null
null
andir/ganeti
src/Ganeti/HTools/Types.hs
bsd-2-clause
-- | Base spindles unit. unitSpindle :: Int unitSpindle = 1
59
unitSpindle :: Int unitSpindle = 1
34
unitSpindle = 1
15
true
true
0
4
10
12
7
5
null
null
blambo/accelerate-examples
tests/broken/quickcheck/src/Main.hs
bsd-3-clause
-- All tests, all element types (coffee time!) -- main :: IO () main = do mapM_ (\(s,t) -> printf "===> %s\n" s >> runTests t >> putStrLn "") $ [ ("Int", prop_integral (undefined :: Int) ++ prop_Int) , ("Int8", prop_integral (undefined :: Int8)) , ("Int16", prop_integral (undefined ...
894
main :: IO () main = do mapM_ (\(s,t) -> printf "===> %s\n" s >> runTests t >> putStrLn "") $ [ ("Int", prop_integral (undefined :: Int) ++ prop_Int) , ("Int8", prop_integral (undefined :: Int8)) , ("Int16", prop_integral (undefined :: Int16)) , ("Int32", prop_integral (undefin...
844
main = do mapM_ (\(s,t) -> printf "===> %s\n" s >> runTests t >> putStrLn "") $ [ ("Int", prop_integral (undefined :: Int) ++ prop_Int) , ("Int8", prop_integral (undefined :: Int8)) , ("Int16", prop_integral (undefined :: Int16)) , ("Int32", prop_integral (undefined :: Int32)) ...
830
true
true
1
13
215
291
169
122
null
null
thalerjonathan/phd
coding/learning/haskell/haskellFirstPrinciples/ch2/exercises.hs
gpl-3.0
waxOff x = triple x
19
waxOff x = triple x
19
waxOff x = triple x
19
false
false
1
5
4
16
5
11
null
null
maximilianhuber/softwareProjekt
src/GalFld/Core/Polynomials/FFT.hs
bsd-3-clause
-- | Schönhagen-Strassen für Polynome ssP :: (Show a, Fractional a, Num a, Eq a) => Polynom a -> Polynom a -> Polynom a ssP f g = pList $ ss l fs gs where fs = p2List f gs = p2List g -- || deg f*g < 2^l || l = 1 + log2 (uDegP f + uDegP g) -- |Der eigentliche Schönhagen-Strassen Algorithmus...
368
ssP :: (Show a, Fractional a, Num a, Eq a) => Polynom a -> Polynom a -> Polynom a ssP f g = pList $ ss l fs gs where fs = p2List f gs = p2List g -- || deg f*g < 2^l || l = 1 + log2 (uDegP f + uDegP g) -- |Der eigentliche Schönhagen-Strassen Algorithmus -- Funktioniert nur, falls 2 eine Ei...
330
ssP f g = pList $ ss l fs gs where fs = p2List f gs = p2List g -- || deg f*g < 2^l || l = 1 + log2 (uDegP f + uDegP g) -- |Der eigentliche Schönhagen-Strassen Algorithmus -- Funktioniert nur, falls 2 eine Einheit ist!
248
true
true
7
9
103
137
60
77
null
null
oldmanmike/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
uAddrTyConKey = mkPreludeTyConUnique 158
42
uAddrTyConKey = mkPreludeTyConUnique 158
42
uAddrTyConKey = mkPreludeTyConUnique 158
42
false
false
0
5
5
9
4
5
null
null
uuhan/Idris-dev
src/Idris/REPL.hs
bsd-3-clause
process fn Warranty = iPrintResult warranty
43
process fn Warranty = iPrintResult warranty
43
process fn Warranty = iPrintResult warranty
43
false
false
0
5
5
14
6
8
null
null
ezyang/ghc
compiler/stgSyn/CoreToStg.hs
bsd-3-clause
myCollectArgs :: CoreExpr -> (Id, [CoreArg], [Tickish Id]) -- We assume that we only have variables -- in the function position by now myCollectArgs expr = go expr [] [] where go (Var v) as ts = (v, as, ts) go (App f a) as ts = go f (a:as) ts go (Tick t e) as ts = A...
802
myCollectArgs :: CoreExpr -> (Id, [CoreArg], [Tickish Id]) myCollectArgs expr = go expr [] [] where go (Var v) as ts = (v, as, ts) go (App f a) as ts = go f (a:as) ts go (Tick t e) as ts = ASSERT( all isTypeArg as ) go e as (t:ts) -- ticks can appear...
710
myCollectArgs expr = go expr [] [] where go (Var v) as ts = (v, as, ts) go (App f a) as ts = go f (a:as) ts go (Tick t e) as ts = ASSERT( all isTypeArg as ) go e as (t:ts) -- ticks can appear in type apps go (Cast e _) as ts = go e as ts ...
651
true
true
1
10
285
268
130
138
null
null
alphaHeavy/shake-install
Development/Shake/Install/Utils.hs
bsd-3-clause
systemWithDirectory :: String -> String -> [String] -> Shake.Action () systemWithDirectory command cwd args = do traced command $ do let cp = (proc command args){cwd = Just cwd} putStrLn $ unwords (cwd:command:args) (_, _, _, h) <- createProcess cp -- putLoud command -- res <- traced ("s...
468
systemWithDirectory :: String -> String -> [String] -> Shake.Action () systemWithDirectory command cwd args = do traced command $ do let cp = (proc command args){cwd = Just cwd} putStrLn $ unwords (cwd:command:args) (_, _, _, h) <- createProcess cp -- putLoud command -- res <- traced ("s...
468
systemWithDirectory command cwd args = do traced command $ do let cp = (proc command args){cwd = Just cwd} putStrLn $ unwords (cwd:command:args) (_, _, _, h) <- createProcess cp -- putLoud command -- res <- traced ("system " ++ cmd) $ rawSystem path2 args res <- waitForProcess h when (re...
389
false
true
0
15
116
163
79
84
null
null
DanielG/hipo
HostListParser.hs
gpl-3.0
field :: Parser String field = token_ TOK1(Field)
55
field :: Parser String field = token_ TOK1(Field)
55
field = token_ TOK1(Field)
32
false
true
1
6
13
25
11
14
null
null
bitemyapp/roshask
src/Ros/Logging.hs
bsd-3-clause
logError = mkLogMsg Log.eRROR
29
logError = mkLogMsg Log.eRROR
29
logError = mkLogMsg Log.eRROR
29
false
false
0
6
3
11
5
6
null
null
kosmikus/cabal
Cabal/Distribution/Simple/PreProcess.hs
bsd-3-clause
ppGreenCard :: BuildInfo -> LocalBuildInfo -> PreProcessor ppGreenCard _ lbi = PreProcessor { platformIndependent = False, runPreProcessor = mkSimplePreProcessor $ \inFile outFile verbosity -> rawSystemProgramConf verbosity greencardProgram (withPrograms lbi) (["-tffi", "-o" ...
348
ppGreenCard :: BuildInfo -> LocalBuildInfo -> PreProcessor ppGreenCard _ lbi = PreProcessor { platformIndependent = False, runPreProcessor = mkSimplePreProcessor $ \inFile outFile verbosity -> rawSystemProgramConf verbosity greencardProgram (withPrograms lbi) (["-tffi", "-o" ...
348
ppGreenCard _ lbi = PreProcessor { platformIndependent = False, runPreProcessor = mkSimplePreProcessor $ \inFile outFile verbosity -> rawSystemProgramConf verbosity greencardProgram (withPrograms lbi) (["-tffi", "-o" ++ outFile, inFile]) }
289
false
true
0
12
84
82
45
37
null
null
thumphries/HaLVM
examples/Core/LoopThreads/LoopThreads.hs
bsd-3-clause
say :: Int -> String -> IO () say 0 s = return ()
49
say :: Int -> String -> IO () say 0 s = return ()
49
say 0 s = return ()
19
false
true
0
9
13
38
17
21
null
null
shlevy/ghc
compiler/coreSyn/CoreUtils.hs
bsd-3-clause
-- Hopefully coercions are not too big! exprIsBig (Tick _ e) = exprIsBig e
76
exprIsBig (Tick _ e) = exprIsBig e
36
exprIsBig (Tick _ e) = exprIsBig e
36
true
false
0
7
15
21
10
11
null
null
wavewave/yesodcrud-type
lib/Application/YesodCRUD/Type.hs
bsd-2-clause
queryAll :: Query YesodcrudInfoRepository [YesodcrudInfo] queryAll = do m <- ask return (M.elems m) -- |
123
queryAll :: Query YesodcrudInfoRepository [YesodcrudInfo] queryAll = do m <- ask return (M.elems m) -- |
123
queryAll = do m <- ask return (M.elems m) -- |
65
false
true
0
10
34
41
20
21
null
null
ranjitjhala/gradr
Handler/Class.hs
mit
runFormHandler :: Form a -> Handler (Maybe a) runFormHandler form = do ((result,_),_) <- runFormPost form case result of FormSuccess o -> return (Just o) _ -> return Nothing
197
runFormHandler :: Form a -> Handler (Maybe a) runFormHandler form = do ((result,_),_) <- runFormPost form case result of FormSuccess o -> return (Just o) _ -> return Nothing
197
runFormHandler form = do ((result,_),_) <- runFormPost form case result of FormSuccess o -> return (Just o) _ -> return Nothing
151
false
true
0
12
52
86
41
45
null
null
csrhodes/pandoc
src/Text/Pandoc/Readers/Markdown.hs
gpl-2.0
normalDefinitionList :: MarkdownParser (F Blocks) normalDefinitionList = do guardEnabled Ext_definition_lists items <- fmap sequence $ many1 $ definitionListItem False return $ B.definitionList <$> items -- -- paragraph block --
235
normalDefinitionList :: MarkdownParser (F Blocks) normalDefinitionList = do guardEnabled Ext_definition_lists items <- fmap sequence $ many1 $ definitionListItem False return $ B.definitionList <$> items -- -- paragraph block --
235
normalDefinitionList = do guardEnabled Ext_definition_lists items <- fmap sequence $ many1 $ definitionListItem False return $ B.definitionList <$> items -- -- paragraph block --
185
false
true
0
10
35
63
30
33
null
null
frantisekfarka/ghc-dsi
compiler/codeGen/StgCmmUtils.hs
bsd-3-clause
newUnboxedTupleRegs :: Type -> FCode ([LocalReg], [ForeignHint]) -- Choose suitable local regs to use for the components -- of an unboxed tuple that we are about to return to -- the Sequel. If the Sequel is a join point, using the -- regs it wants will save later assignments. newUnboxedTupleRegs res_ty = ASSERT( isU...
1,022
newUnboxedTupleRegs :: Type -> FCode ([LocalReg], [ForeignHint]) newUnboxedTupleRegs res_ty = ASSERT( isUnboxedTupleType res_ty ) do { dflags <- getDynFlags ; sequel <- getSequel ; regs <- choose_regs dflags sequel ; ASSERT( regs `equalLength` reps ) return (regs, map primRepFor...
809
newUnboxedTupleRegs res_ty = ASSERT( isUnboxedTupleType res_ty ) do { dflags <- getDynFlags ; sequel <- getSequel ; regs <- choose_regs dflags sequel ; ASSERT( regs `equalLength` reps ) return (regs, map primRepForeignHint reps) } where UbxTupleRep ty_args = repType res_ty...
744
true
true
1
10
241
219
111
108
null
null
AlexanderPankiv/ghc
compiler/codeGen/StgCmmPrim.hs
bsd-3-clause
doWriteByteArrayOp :: Maybe MachOp -> CmmType -> [LocalReg] -> [CmmExpr] -> FCode () doWriteByteArrayOp maybe_pre_write_cast idx_ty [] [addr,idx,val] = do dflags <- getDynFlags mkBasicIndexedWrite (arrWordsHdrSize dflags) maybe_pre_w...
349
doWriteByteArrayOp :: Maybe MachOp -> CmmType -> [LocalReg] -> [CmmExpr] -> FCode () doWriteByteArrayOp maybe_pre_write_cast idx_ty [] [addr,idx,val] = do dflags <- getDynFlags mkBasicIndexedWrite (arrWordsHdrSize dflags) maybe_pre_w...
349
doWriteByteArrayOp maybe_pre_write_cast idx_ty [] [addr,idx,val] = do dflags <- getDynFlags mkBasicIndexedWrite (arrWordsHdrSize dflags) maybe_pre_write_cast addr idx_ty idx val
188
false
true
0
10
117
90
45
45
null
null
justinethier/husk-scheme
hs-src/Language/Scheme/Numerical.hs
mit
-- |Predicate to determine if given value is a number isNumber :: [LispVal] -> ThrowsError LispVal isNumber ([Number _]) = return $ Bool True
141
isNumber :: [LispVal] -> ThrowsError LispVal isNumber ([Number _]) = return $ Bool True
87
isNumber ([Number _]) = return $ Bool True
42
true
true
0
8
23
41
21
20
null
null
spell-music/temporal-music-notation-western
src/Temporal/Music/Western/P13.hs
bsd-3-clause
cf = b
6
cf = b
6
cf = b
6
false
false
1
5
2
10
3
7
null
null
ddssff/lens
src/Numeric/Lens.hs
bsd-3-clause
-- | A simpler variant of 'Numeric.readSigned' that supports any base, only -- recognizes an initial dash and doesn't know about parentheses readSigned' :: Real a => ReadS a -> ReadS a readSigned' f ('-':xs) = f xs <&> _1 %~ negate
231
readSigned' :: Real a => ReadS a -> ReadS a readSigned' f ('-':xs) = f xs <&> _1 %~ negate
90
readSigned' f ('-':xs) = f xs <&> _1 %~ negate
46
true
true
0
7
41
53
26
27
null
null
UBMLtonGroup/timberc
src/Kindle.hs
bsd-3-clause
subexps (CRun e _) = [e]
45
subexps (CRun e _) = [e]
45
subexps (CRun e _) = [e]
45
false
false
0
6
26
21
10
11
null
null
paolino/dependencies-sm
Dependency/Graph.hs
bsd-3-clause
isUptodate _ = False
20
isUptodate _ = False
20
isUptodate _ = False
20
false
false
0
5
3
9
4
5
null
null
jchitel/ProjectEuler.hs
Problems/Problem0031.hs
mit
main = print problem31Value
27
main = print problem31Value
27
main = print problem31Value
27
false
false
0
5
3
9
4
5
null
null
alokpndy/haskell-learn
src/lenses/lens1.hs
mit
-- preview (_all' 0) [1,2,2] => Nothing -- | HAS -- Check for value has :: ((a -> Const Any a) -> s -> Const Any s) -> s -> Bool has l = getAny . getConst . l (\_ -> Const (Any True))
187
has :: ((a -> Const Any a) -> s -> Const Any s) -> s -> Bool has l = getAny . getConst . l (\_ -> Const (Any True))
115
has l = getAny . getConst . l (\_ -> Const (Any True))
54
true
true
0
11
47
83
42
41
null
null
jgoerzen/dfsbuild
Actions.hs
gpl-2.0
installlib env = do im "Installing runtime library files." -- Copy the runtime boot files mapM_ (\x -> runIO ("cp", ["-rL", libdir ++ "/" ++ x, (targetdir env) ++ "/opt/dfsruntime/"])) ["home.html", "dfs_startup_funcs"] -- Set modes ...
972
installlib env = do im "Installing runtime library files." -- Copy the runtime boot files mapM_ (\x -> runIO ("cp", ["-rL", libdir ++ "/" ++ x, (targetdir env) ++ "/opt/dfsruntime/"])) ["home.html", "dfs_startup_funcs"] -- Set modes ...
972
installlib env = do im "Installing runtime library files." -- Copy the runtime boot files mapM_ (\x -> runIO ("cp", ["-rL", libdir ++ "/" ++ x, (targetdir env) ++ "/opt/dfsruntime/"])) ["home.html", "dfs_startup_funcs"] -- Set modes ...
972
false
false
0
17
400
265
140
125
null
null
ti1024/hacq
src/Control/Monad/Quantum/Adder.hs
bsd-3-clause
xorBoolBit :: Bool -> Bit w -> Bit w xorBoolBit False = id
58
xorBoolBit :: Bool -> Bit w -> Bit w xorBoolBit False = id
58
xorBoolBit False = id
21
false
true
0
8
12
33
14
19
null
null
rahulmutt/ghcvm
compiler/Eta/CodeGen/Expr.hs
bsd-3-clause
cgLneBinds :: StgBinding -> StgExpr -> CodeGen () cgLneBinds (StgNonRec binder rhs) expr = do -- TODO: Optimize this to calculate the smallest type that can hold the target label <- newLabel targetLoc <- newTemp False jint (info, genBindCode) <- cgLetNoEscapeRhsBody binder rhs label 1 targetLoc n' <- peekNext...
694
cgLneBinds :: StgBinding -> StgExpr -> CodeGen () cgLneBinds (StgNonRec binder rhs) expr = do -- TODO: Optimize this to calculate the smallest type that can hold the target label <- newLabel targetLoc <- newTemp False jint (info, genBindCode) <- cgLetNoEscapeRhsBody binder rhs label 1 targetLoc n' <- peekNext...
694
cgLneBinds (StgNonRec binder rhs) expr = do -- TODO: Optimize this to calculate the smallest type that can hold the target label <- newLabel targetLoc <- newTemp False jint (info, genBindCode) <- cgLetNoEscapeRhsBody binder rhs label 1 targetLoc n' <- peekNextLocal bindCode <- genBindCode n' addBinding in...
644
false
true
0
12
158
192
90
102
null
null
YuichiroSato/CategoryTheory
src/chapter02/SetsFin.hs
apache-2.0
justArrows :: [Maybe Arrow] -> [Arrow] justArrows arrows = map maybeToArrow jarrows where jarrows = filter (\m -> Maybe.isJust m) arrows
146
justArrows :: [Maybe Arrow] -> [Arrow] justArrows arrows = map maybeToArrow jarrows where jarrows = filter (\m -> Maybe.isJust m) arrows
145
justArrows arrows = map maybeToArrow jarrows where jarrows = filter (\m -> Maybe.isJust m) arrows
106
false
true
1
9
30
64
30
34
null
null
kojiromike/Idris-dev
src/IRTS/CodegenC.hs
bsd-3-clause
cname :: Name -> String cname n = "_idris_" ++ concatMap cchar (showCG n) where cchar x | isAscii x && isAlpha x || isDigit x = [x] | otherwise = "_" ++ show (fromEnum x) ++ "_"
195
cname :: Name -> String cname n = "_idris_" ++ concatMap cchar (showCG n) where cchar x | isAscii x && isAlpha x || isDigit x = [x] | otherwise = "_" ++ show (fromEnum x) ++ "_"
195
cname n = "_idris_" ++ concatMap cchar (showCG n) where cchar x | isAscii x && isAlpha x || isDigit x = [x] | otherwise = "_" ++ show (fromEnum x) ++ "_"
171
false
true
0
10
55
95
44
51
null
null
anttisalonen/freekick2
src/Listings.hs
gpl-3.0
showTeamNation 43 = "Argentina"
31
showTeamNation 43 = "Argentina"
31
showTeamNation 43 = "Argentina"
31
false
false
1
5
3
13
4
9
null
null
elieux/ghc
compiler/hsSyn/HsPat.hs
bsd-3-clause
{- ************************************************************************ * * * Predicates for checking things about pattern-lists in EquationInfo * * * *************************...
1,225
isUnliftedLPat :: LPat id -> Bool isUnliftedLPat (L _ (ParPat p)) = isUnliftedLPat p
96
isUnliftedLPat (L _ (ParPat p)) = isUnliftedLPat p
62
true
true
0
9
286
39
19
20
null
null
haroldcarr/learn-haskell-coq-ml-etc
haskell/topic/type-level/2017-08-justin-le-fixed-length-vector-types/src/L2.hs
unlicense
atLeastS :: S.Sing n -> Vec m a -> Maybe (LTE n m, Vec m a) atLeastS sN v = case isLTE sN (vecLength v) of SD.Proved l -> Just (l, v) SD.Disproved _ -> Nothing
170
atLeastS :: S.Sing n -> Vec m a -> Maybe (LTE n m, Vec m a) atLeastS sN v = case isLTE sN (vecLength v) of SD.Proved l -> Just (l, v) SD.Disproved _ -> Nothing
170
atLeastS sN v = case isLTE sN (vecLength v) of SD.Proved l -> Just (l, v) SD.Disproved _ -> Nothing
110
false
true
0
9
46
99
47
52
null
null
Ian-Stewart-Binks/courseography
dependencies/HaXml-1.25.3/src/Text/XML/HaXml/Html/Parse.hs
gpl-3.0
-- opening this, implicitly closes that closes :: Name -> Name -> Bool "a" `closes` "a" = True
104
closes :: Name -> Name -> Bool "a" `closes` "a" = True
64
"a" `closes` "a" = True
33
true
true
0
6
27
28
15
13
null
null
swamp-agr/carbuyer-advisor
Handler/Admin.hs
mit
renderAdvicesByLevelName :: forall (t :: * -> *) a t1. (Foldable t, MonoFoldable (t [Entity Advice]), ToMarkup a) => t [Entity Advice] -> Text -> (Route App -> [t1] -> a) -> MarkupM () renderAdvicesByLevelName as (ln::Text) = [hamlet|<ul> <span>#{ln} $if null as <br> <span>Пусто пока... <br> $else ...
602
renderAdvicesByLevelName :: forall (t :: * -> *) a t1. (Foldable t, MonoFoldable (t [Entity Advice]), ToMarkup a) => t [Entity Advice] -> Text -> (Route App -> [t1] -> a) -> MarkupM () renderAdvicesByLevelName as (ln::Text) = [hamlet|<ul> <span>#{ln} $if null as <br> <span>Пусто пока... <br> $else ...
602
renderAdvicesByLevelName as (ln::Text) = [hamlet|<ul> <span>#{ln} $if null as <br> <span>Пусто пока... <br> $else <br> $forall as' <- as $maybe ag <- adviceGroup $ entityVal $ L.head $ as' <span>#{ag} $nothing <span>Пустая группа <br> $forall Entity ad...
417
false
true
0
13
166
120
65
55
null
null
jaalonso/I1M-Cod-Temas
src/Tema_13/Calculadora.hs
gpl-2.0
agregar :: Char -> String -> IO () agregar c xs = calc (xs ++ [c])
66
agregar :: Char -> String -> IO () agregar c xs = calc (xs ++ [c])
66
agregar c xs = calc (xs ++ [c])
31
false
true
0
8
15
42
21
21
null
null
ComputationWithBoundedResources/tct-its
src/Tct/Its/Processor/PolyRank.hs
bsd-3-clause
--- Instances -------------------------------------------------------------------------------------------------------- poly :: PI.Shape -> ItsStrategy poly shp = T.Apply polyRankProcessor{ shape = shp}
201
poly :: PI.Shape -> ItsStrategy poly shp = T.Apply polyRankProcessor{ shape = shp}
82
poly shp = T.Apply polyRankProcessor{ shape = shp}
50
true
true
0
7
15
34
18
16
null
null
bneijt/dirsum
src/Main.hs
gpl-3.0
main = do arguments <- cmdArgs options hash <- hashFile $ head (files arguments) putStrLn (show hash)
113
main = do arguments <- cmdArgs options hash <- hashFile $ head (files arguments) putStrLn (show hash)
113
main = do arguments <- cmdArgs options hash <- hashFile $ head (files arguments) putStrLn (show hash)
113
false
false
0
11
28
48
21
27
null
null
ekmett/ghc
compiler/cmm/CmmRewriteAssignments.hs
bsd-3-clause
annotateUsage :: DynFlags -> CmmGraph -> UniqSM (CmmGraphWithRegUsage) annotateUsage dflags vanilla_g = let g = modifyGraph liftRegUsage vanilla_g in liftM fst $ dataflowPassBwd g [(g_entry g, fact_bot usageLattice)] $ analRewBwd usageLattice (usageTransfer dflags) usageRewrit...
321
annotateUsage :: DynFlags -> CmmGraph -> UniqSM (CmmGraphWithRegUsage) annotateUsage dflags vanilla_g = let g = modifyGraph liftRegUsage vanilla_g in liftM fst $ dataflowPassBwd g [(g_entry g, fact_bot usageLattice)] $ analRewBwd usageLattice (usageTransfer dflags) usageRewrit...
321
annotateUsage dflags vanilla_g = let g = modifyGraph liftRegUsage vanilla_g in liftM fst $ dataflowPassBwd g [(g_entry g, fact_bot usageLattice)] $ analRewBwd usageLattice (usageTransfer dflags) usageRewrite
250
false
true
0
12
76
90
43
47
null
null
josuf107/Adverb
Adverb/Common.hs
gpl-3.0
orderly = id
12
orderly = id
12
orderly = id
12
false
false
0
4
2
6
3
3
null
null
cpehle/faust
src/Parser.hs
mit
{-| statement: var '=' expression expression -} {-| operand number vector operand [ expr ]... unop expr -} {-| expr operand operand binop expr -} expression = do op <- operand try binop {-| index expr expr [ expr ] expr [ expr ] [ expr ] .... -} {-| number integer rational varia...
340
expression = do op <- operand try binop {-| index expr expr [ expr ] expr [ expr ] [ expr ] .... -} {-| number integer rational variable '(' expr ')' -}
171
expression = do op <- operand try binop {-| index expr expr [ expr ] expr [ expr ] [ expr ] .... -} {-| number integer rational variable '(' expr ')' -}
171
true
false
1
8
99
28
13
15
null
null
xnning/TypeInfer
src/Syntax.hs
gpl-3.0
-- smart constructors evar :: String -> Expr evar = Var . string2Name
70
evar :: String -> Expr evar = Var . string2Name
47
evar = Var . string2Name
24
true
true
1
7
13
28
12
16
null
null
hpacheco/jasminv
src/Options.hs
gpl-3.0
joinSolver x Nothing = x
24
joinSolver x Nothing = x
24
joinSolver x Nothing = x
24
false
false
0
5
4
11
5
6
null
null
wouwouwou/2017_module_8
src/haskell/PP-project-2017/lib/blackboard_resources/ParseBasis.hs
apache-2.0
addListNotation ((str:strs):strss) = (("["++str):strs) : [ (","++str'):strs' | (str':strs') <- strss ]
142
addListNotation ((str:strs):strss) = (("["++str):strs) : [ (","++str'):strs' | (str':strs') <- strss ]
142
addListNotation ((str:strs):strss) = (("["++str):strs) : [ (","++str'):strs' | (str':strs') <- strss ]
142
false
false
0
10
51
70
38
32
null
null
fmapfmapfmap/amazonka
amazonka-codepipeline/gen/Network/AWS/CodePipeline/Types/Product.hs
mpl-2.0
-- | The configuration information for the action type. adActionTypeId :: Lens' ActionDeclaration ActionTypeId adActionTypeId = lens _adActionTypeId (\ s a -> s{_adActionTypeId = a})
182
adActionTypeId :: Lens' ActionDeclaration ActionTypeId adActionTypeId = lens _adActionTypeId (\ s a -> s{_adActionTypeId = a})
126
adActionTypeId = lens _adActionTypeId (\ s a -> s{_adActionTypeId = a})
71
true
true
0
9
24
40
22
18
null
null
m4lvin/NooBDD
Data/NooBdd.hs
gpl-2.0
disSet :: [Bdd] -> Bdd disSet [] = Bot
38
disSet :: [Bdd] -> Bdd disSet [] = Bot
38
disSet [] = Bot
15
false
true
0
6
8
23
12
11
null
null
antalsz/quantum-halftoning
src/lib/Graphics/QuantumHalftoning/Canvas.hs
bsd-3-clause
readPixel ∷ (PrimMonad m, Storable px) ⇒ Canvas c (PrimState m) px → Index c → m px readPixel canvas (Index i) = c_pixels canvas `MV.unsafeRead` i
156
readPixel ∷ (PrimMonad m, Storable px) ⇒ Canvas c (PrimState m) px → Index c → m px readPixel canvas (Index i) = c_pixels canvas `MV.unsafeRead` i
156
readPixel canvas (Index i) = c_pixels canvas `MV.unsafeRead` i
62
false
true
0
9
36
75
37
38
null
null
swfrench/GSLInterp
src/Math/GSLInterp.hs
bsd-3-clause
-- Helpers used below -- Converts an Unboxed Vector of Doubles to a Storable Vector of CDoubles toStorable :: V.Vector Double -> S.Vector CDouble toStorable = S.map realToFrac . S.convert
192
toStorable :: V.Vector Double -> S.Vector CDouble toStorable = S.map realToFrac . S.convert
95
toStorable = S.map realToFrac . S.convert
41
true
true
0
7
34
38
19
19
null
null
thiry/DComp
src/DBstrict.hs
gpl-2.0
display file db = do view file db callCommand ("dot -Tpng "++file++".dot -o "++file++".png") -- matching
107
display file db = do view file db callCommand ("dot -Tpng "++file++".dot -o "++file++".png") -- matching
107
display file db = do view file db callCommand ("dot -Tpng "++file++".dot -o "++file++".png") -- matching
107
false
false
1
13
18
50
21
29
null
null
romanb/amazonka
amazonka-swf/gen/Network/AWS/SWF/Types.hs
mpl-2.0
-- | If the event is of type 'TimerFired' then this member is set and provides -- detailed information about the event. It is not set for other event types. heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes) heTimerFiredEventAttributes = lens _heTimerFiredEventAttributes (\s...
365
heTimerFiredEventAttributes :: Lens' HistoryEvent (Maybe TimerFiredEventAttributes) heTimerFiredEventAttributes = lens _heTimerFiredEventAttributes (\s a -> s { _heTimerFiredEventAttributes = a })
208
heTimerFiredEventAttributes = lens _heTimerFiredEventAttributes (\s a -> s { _heTimerFiredEventAttributes = a })
124
true
true
0
9
60
47
26
21
null
null
yairchu/ad
src/Numeric/AD/Internal/Tower.hs
bsd-3-clause
apply :: Num a => (AD Tower a -> b) -> a -> b apply f a = f (AD (Tower [a,1]))
78
apply :: Num a => (AD Tower a -> b) -> a -> b apply f a = f (AD (Tower [a,1]))
78
apply f a = f (AD (Tower [a,1]))
32
false
true
0
10
21
64
32
32
null
null
Fuuzetsu/yi-emacs-colours
src/Yi/Style/EmacsColours.hs
gpl-2.0
-- | Names: @["LightSteelBlue2"]@ -- -- R188 G210 B238, 0xbcd2ee lightSteelBlue2 :: Color lightSteelBlue2 = RGB 188 210 238
123
lightSteelBlue2 :: Color lightSteelBlue2 = RGB 188 210 238
58
lightSteelBlue2 = RGB 188 210 238
33
true
true
0
5
18
21
12
9
null
null
ghcjs/ghcjs
lib/ghc/includes/CodeGen.Platform.hs
mit
callerSaves (VanillaReg 6 _) = True
36
callerSaves (VanillaReg 6 _) = True
36
callerSaves (VanillaReg 6 _) = True
36
false
false
0
6
6
18
8
10
null
null
muspellsson/hiccup
TclLib/Interp.hs
lgpl-2.1
interpEvalStr :: BString -> Interp -> IO (Either BString BString) interpEvalStr s i = runInterpStr (evalTcl (T.fromBStr s :: T.TclObj)) i
137
interpEvalStr :: BString -> Interp -> IO (Either BString BString) interpEvalStr s i = runInterpStr (evalTcl (T.fromBStr s :: T.TclObj)) i
137
interpEvalStr s i = runInterpStr (evalTcl (T.fromBStr s :: T.TclObj)) i
71
false
true
0
10
20
59
29
30
null
null
utsav2601/cmpe295A
tools/flounder/UMPCommon.hs
mit
-- Name of the cap transmit handler tx_cap_handler_name p ifn = ump_ifscope p ifn "cap_send_handler"
100
tx_cap_handler_name p ifn = ump_ifscope p ifn "cap_send_handler"
64
tx_cap_handler_name p ifn = ump_ifscope p ifn "cap_send_handler"
64
true
false
0
5
14
20
9
11
null
null