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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
brendanhay/gogol
|
gogol-testing/gen/Network/Google/Testing/Types/Product.hs
|
mpl-2.0
|
-- | Creates a value of 'DeviceIPBlock' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'dibAddedDate'
--
-- * 'dibBlock'
--
-- * 'dibForm'
deviceIPBlock
:: DeviceIPBlock
deviceIPBlock =
DeviceIPBlock'
{_dibAddedDate = Nothing, _dibBlock = Nothing, _dibForm = Nothing}
| 363
|
deviceIPBlock
:: DeviceIPBlock
deviceIPBlock =
DeviceIPBlock'
{_dibAddedDate = Nothing, _dibBlock = Nothing, _dibForm = Nothing}
| 138
|
deviceIPBlock =
DeviceIPBlock'
{_dibAddedDate = Nothing, _dibBlock = Nothing, _dibForm = Nothing}
| 103
| true
| true
| 1
| 7
| 66
| 47
| 29
| 18
| null | null |
hpacheco/HAAP
|
examples/gameworker/li1g175/Bomberman.hs
|
mit
|
espiralaGrid y e (h:t) | y == snd e = espiralaGrid' (0,y) e h : t
| otherwise = h : espiralaGrid (y+1) e t
| 129
|
espiralaGrid y e (h:t) | y == snd e = espiralaGrid' (0,y) e h : t
| otherwise = h : espiralaGrid (y+1) e t
| 129
|
espiralaGrid y e (h:t) | y == snd e = espiralaGrid' (0,y) e h : t
| otherwise = h : espiralaGrid (y+1) e t
| 129
| false
| false
| 0
| 9
| 47
| 77
| 37
| 40
| null | null |
wangwangwar/cis194
|
src/ch6/Ch6.hs
|
bsd-3-clause
|
-- Exercise 2
-- More efficient implementation for fibs
fibs2 :: [Integer]
fibs2 = fibs2Inner 1 1
| 98
|
fibs2 :: [Integer]
fibs2 = fibs2Inner 1 1
| 41
|
fibs2 = fibs2Inner 1 1
| 22
| true
| true
| 0
| 7
| 17
| 29
| 13
| 16
| null | null |
na4zagin3/uhim-dict
|
test/Language/UHIM/Japanese/CollatorSpec.hs
|
gpl-3.0
|
inverseOrdering GT = LT
| 23
|
inverseOrdering GT = LT
| 23
|
inverseOrdering GT = LT
| 23
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
TomMD/CV
|
CV/ImageOp.hs
|
bsd-3-clause
|
-- |An unit operation for compose
nonOp = ImgOp (\i -> return ())
| 65
|
nonOp = ImgOp (\i -> return ())
| 31
|
nonOp = ImgOp (\i -> return ())
| 31
| true
| false
| 1
| 9
| 12
| 27
| 12
| 15
| null | null |
pbevin/toycss
|
src/Layout.hs
|
gpl-2.0
|
resizeNode :: (Dimensions -> Dimensions) -> DomNode -> DomNode
resizeNode f node = node { boundingBox = f (boundingBox node) }
| 126
|
resizeNode :: (Dimensions -> Dimensions) -> DomNode -> DomNode
resizeNode f node = node { boundingBox = f (boundingBox node) }
| 126
|
resizeNode f node = node { boundingBox = f (boundingBox node) }
| 63
| false
| true
| 0
| 9
| 20
| 48
| 25
| 23
| null | null |
snoyberg/ghc
|
libraries/base/GHC/Show.hs
|
bsd-3-clause
|
showLitChar '\v' s = showString "\\v" s
| 50
|
showLitChar '\v' s = showString "\\v" s
| 50
|
showLitChar '\v' s = showString "\\v" s
| 50
| false
| false
| 1
| 5
| 17
| 18
| 7
| 11
| null | null |
kim/amazonka
|
amazonka-rds/gen/Network/AWS/RDS/Types.hs
|
mpl-2.0
|
-- | Indicates the type of opt-in request that has been received for the resource.
pmaOptInStatus :: Lens' PendingMaintenanceAction (Maybe Text)
pmaOptInStatus = lens _pmaOptInStatus (\s a -> s { _pmaOptInStatus = a })
| 218
|
pmaOptInStatus :: Lens' PendingMaintenanceAction (Maybe Text)
pmaOptInStatus = lens _pmaOptInStatus (\s a -> s { _pmaOptInStatus = a })
| 135
|
pmaOptInStatus = lens _pmaOptInStatus (\s a -> s { _pmaOptInStatus = a })
| 73
| true
| true
| 1
| 9
| 33
| 51
| 25
| 26
| null | null |
haskell-distributed/distributed-process-supervisor
|
tests/TestUtils.hs
|
bsd-3-clause
|
shouldNotContain :: (Show a, Eq a) => [a] -> a -> Process ()
shouldNotContain xs x = expectThat xs $ isNot (hasItem (equalTo x))
| 128
|
shouldNotContain :: (Show a, Eq a) => [a] -> a -> Process ()
shouldNotContain xs x = expectThat xs $ isNot (hasItem (equalTo x))
| 128
|
shouldNotContain xs x = expectThat xs $ isNot (hasItem (equalTo x))
| 67
| false
| true
| 0
| 10
| 23
| 69
| 34
| 35
| null | null |
HJvT/hdirect
|
src/Parser.hs
|
bsd-3-clause
|
action_470 (16#) = happyGoto action_302
| 39
|
action_470 (16#) = happyGoto action_302
| 39
|
action_470 (16#) = happyGoto action_302
| 39
| false
| false
| 0
| 6
| 4
| 15
| 7
| 8
| null | null |
urbanslug/ghc
|
compiler/cmm/CmmCommonBlockElim.hs
|
bsd-3-clause
|
lookupBid :: BlockEnv BlockId -> BlockId -> BlockId
lookupBid subst bid = case mapLookup bid subst of
Just bid -> lookupBid subst bid
Nothing -> bid
-- Middle nodes and expressions can contain BlockIds, in particular in
-- CmmStackSlot and CmmBlock, so we have to use a special equality for
-- these.
--
| 353
|
lookupBid :: BlockEnv BlockId -> BlockId -> BlockId
lookupBid subst bid = case mapLookup bid subst of
Just bid -> lookupBid subst bid
Nothing -> bid
-- Middle nodes and expressions can contain BlockIds, in particular in
-- CmmStackSlot and CmmBlock, so we have to use a special equality for
-- these.
--
| 353
|
lookupBid subst bid = case mapLookup bid subst of
Just bid -> lookupBid subst bid
Nothing -> bid
-- Middle nodes and expressions can contain BlockIds, in particular in
-- CmmStackSlot and CmmBlock, so we have to use a special equality for
-- these.
--
| 301
| false
| true
| 0
| 8
| 102
| 60
| 30
| 30
| null | null |
danplubell/hmp3-phoenix
|
src/Style.hs
|
gpl-3.0
|
------------------------------------------------------------------------
--
-- Basic (ncurses) colours.
--
defaultColor :: Curses.Color
defaultColor = fromJust $ Curses.color "default"
| 184
|
defaultColor :: Curses.Color
defaultColor = fromJust $ Curses.color "default"
| 77
|
defaultColor = fromJust $ Curses.color "default"
| 48
| true
| true
| 0
| 7
| 15
| 26
| 15
| 11
| null | null |
ckaestne/CIDE
|
other/CaseStudies/fgl/CIDEfgl/Data/Graph/Inductive/Basic.hs
|
gpl-3.0
|
gsel ::
(Graph gr) => (Context a b -> Bool) -> gr a b -> [Context a b];
gsel p = ufold (\ c cs -> if p c then c : cs else cs) []
| 137
|
gsel ::
(Graph gr) => (Context a b -> Bool) -> gr a b -> [Context a b]
gsel p = ufold (\ c cs -> if p c then c : cs else cs) []
| 134
|
gsel p = ufold (\ c cs -> if p c then c : cs else cs) []
| 56
| false
| true
| 0
| 9
| 44
| 92
| 47
| 45
| null | null |
pushkinma/frag
|
src/Game.hs
|
gpl-2.0
|
listToEvent :: [a] -> Event [a]
listToEvent [] = noEvent
| 56
|
listToEvent :: [a] -> Event [a]
listToEvent [] = noEvent
| 56
|
listToEvent [] = noEvent
| 24
| false
| true
| 0
| 7
| 9
| 29
| 15
| 14
| null | null |
SmallImprovements/spring-clean
|
src/Java/References.hs
|
mit
|
parseStmt (ExpStmt e) = parseExp e
| 34
|
parseStmt (ExpStmt e) = parseExp e
| 34
|
parseStmt (ExpStmt e) = parseExp e
| 34
| false
| false
| 0
| 7
| 5
| 18
| 8
| 10
| null | null |
sdiehl/ghc
|
compiler/GHC/Hs/Lit.hs
|
bsd-3-clause
|
convertLit (HsInteger a x b) = (HsInteger (convert a) x b)
| 59
|
convertLit (HsInteger a x b) = (HsInteger (convert a) x b)
| 59
|
convertLit (HsInteger a x b) = (HsInteger (convert a) x b)
| 59
| false
| false
| 0
| 8
| 11
| 36
| 17
| 19
| null | null |
unisonweb/platform
|
parser-typechecker/src/Unison/Runtime/ANF/Serialize.hs
|
mit
|
getBytes :: MonadGet m => m Bytes.Bytes
getBytes = Bytes.fromChunks <$> getList getBlock
| 88
|
getBytes :: MonadGet m => m Bytes.Bytes
getBytes = Bytes.fromChunks <$> getList getBlock
| 88
|
getBytes = Bytes.fromChunks <$> getList getBlock
| 48
| false
| true
| 0
| 7
| 12
| 32
| 15
| 17
| null | null |
FranklinChen/hugs98-plus-Sep2006
|
packages/base/Data/ByteString/Lazy/Char8.hs
|
bsd-3-clause
|
-- | /O(n)/ 'elem' is the 'ByteString' membership predicate. This
-- implementation uses @memchr(3)@.
elem :: Char -> ByteString -> Bool
elem c = L.elem (c2w c)
| 160
|
elem :: Char -> ByteString -> Bool
elem c = L.elem (c2w c)
| 58
|
elem c = L.elem (c2w c)
| 23
| true
| true
| 0
| 7
| 26
| 35
| 18
| 17
| null | null |
ku-fpg/kansas-amber
|
System/Hardware/Haskino/Protocol.hs
|
bsd-3-clause
|
parseQueryResult (IterateW16FloatE _ _ _) (IterateFloatReply r) = Just $ lit r
| 78
|
parseQueryResult (IterateW16FloatE _ _ _) (IterateFloatReply r) = Just $ lit r
| 78
|
parseQueryResult (IterateW16FloatE _ _ _) (IterateFloatReply r) = Just $ lit r
| 78
| false
| false
| 0
| 7
| 11
| 34
| 16
| 18
| null | null |
teleshoes/taffybar
|
src/System/Taffybar/Information/EWMHDesktopInfo.hs
|
bsd-3-clause
|
-- | Retrieve the index of the current workspace in the desktop, starting from
-- 0.
getCurrentWorkspace :: X11Property WorkspaceId
getCurrentWorkspace = WorkspaceId <$> readAsInt Nothing ewmhCurrentDesktop
| 206
|
getCurrentWorkspace :: X11Property WorkspaceId
getCurrentWorkspace = WorkspaceId <$> readAsInt Nothing ewmhCurrentDesktop
| 121
|
getCurrentWorkspace = WorkspaceId <$> readAsInt Nothing ewmhCurrentDesktop
| 74
| true
| true
| 0
| 6
| 26
| 25
| 13
| 12
| null | null |
shlevy/ghc
|
compiler/typecheck/TcRnTypes.hs
|
bsd-3-clause
|
pprCts :: Cts -> SDoc
pprCts cts = vcat (map ppr (bagToList cts))
| 65
|
pprCts :: Cts -> SDoc
pprCts cts = vcat (map ppr (bagToList cts))
| 65
|
pprCts cts = vcat (map ppr (bagToList cts))
| 43
| false
| true
| 0
| 9
| 12
| 41
| 18
| 23
| null | null |
mcmaniac/ghc
|
compiler/cmm/OldPprCmm.hs
|
bsd-3-clause
|
pprUpdateFrame :: Platform -> UpdateFrame -> SDoc
pprUpdateFrame platform (UpdateFrame expr args) =
hcat [ ptext (sLit "jump")
, space
, if isTrivialCmmExpr expr
then pprExpr platform expr
else case expr of
CmmLoad (CmmReg _) _ -> pprExpr platform expr
_ -> parens (pprExpr platform expr)
, space
, parens ( commafy $ map (pprPlatform platform) args ) ]
| 466
|
pprUpdateFrame :: Platform -> UpdateFrame -> SDoc
pprUpdateFrame platform (UpdateFrame expr args) =
hcat [ ptext (sLit "jump")
, space
, if isTrivialCmmExpr expr
then pprExpr platform expr
else case expr of
CmmLoad (CmmReg _) _ -> pprExpr platform expr
_ -> parens (pprExpr platform expr)
, space
, parens ( commafy $ map (pprPlatform platform) args ) ]
| 466
|
pprUpdateFrame platform (UpdateFrame expr args) =
hcat [ ptext (sLit "jump")
, space
, if isTrivialCmmExpr expr
then pprExpr platform expr
else case expr of
CmmLoad (CmmReg _) _ -> pprExpr platform expr
_ -> parens (pprExpr platform expr)
, space
, parens ( commafy $ map (pprPlatform platform) args ) ]
| 416
| false
| true
| 0
| 13
| 171
| 144
| 70
| 74
| null | null |
hugo-dc/hsmarkov
|
src/Main.hs
|
bsd-3-clause
|
prefixList = do
conts <- St.readFile "resources/prefix_list.txt"
return (lines conts)
-- | Replace char in string
| 118
|
prefixList = do
conts <- St.readFile "resources/prefix_list.txt"
return (lines conts)
-- | Replace char in string
| 118
|
prefixList = do
conts <- St.readFile "resources/prefix_list.txt"
return (lines conts)
-- | Replace char in string
| 118
| false
| false
| 0
| 9
| 20
| 31
| 14
| 17
| null | null |
neothemachine/monadiccp
|
src/Control/CP/FD/FD.hs
|
bsd-3-clause
|
setAlter typ (Just x) = let f = fl x in if Set.null f then Nothing else Just f
where fl = Set.filter $ not . Set.member typ
| 125
|
setAlter typ (Just x) = let f = fl x in if Set.null f then Nothing else Just f
where fl = Set.filter $ not . Set.member typ
| 125
|
setAlter typ (Just x) = let f = fl x in if Set.null f then Nothing else Just f
where fl = Set.filter $ not . Set.member typ
| 125
| false
| false
| 0
| 9
| 29
| 70
| 33
| 37
| null | null |
WraithM/fingmodules
|
src/Language/Lambda/Eval.hs
|
bsd-3-clause
|
eval env (Let x e body) = eval env' body
where env' = (x, eval env e) : env
| 77
|
eval env (Let x e body) = eval env' body
where env' = (x, eval env e) : env
| 77
|
eval env (Let x e body) = eval env' body
where env' = (x, eval env e) : env
| 77
| false
| false
| 1
| 7
| 20
| 55
| 24
| 31
| null | null |
mpickering/hlint
|
src/HSE/Util.hs
|
bsd-3-clause
|
isLambda Lambda{} = True
| 24
|
isLambda Lambda{} = True
| 24
|
isLambda Lambda{} = True
| 24
| false
| false
| 1
| 5
| 3
| 16
| 6
| 10
| null | null |
alexisVallet/hnn
|
src/HNN/Tensor/Internal.hs
|
bsd-3-clause
|
unsafeThaw :: (PrimMonad m) => Tensor s a -> m (MT.MTensor (PrimState m) s a)
unsafeThaw (Tensor ptr) = return $ MT.MTensor ptr
| 127
|
unsafeThaw :: (PrimMonad m) => Tensor s a -> m (MT.MTensor (PrimState m) s a)
unsafeThaw (Tensor ptr) = return $ MT.MTensor ptr
| 127
|
unsafeThaw (Tensor ptr) = return $ MT.MTensor ptr
| 49
| false
| true
| 0
| 11
| 22
| 68
| 33
| 35
| null | null |
charleso/intellij-haskforce
|
tests/gold/parser/Hello00001.hs
|
apache-2.0
|
main = print "Hello, World!"
| 28
|
main = print "Hello, World!"
| 28
|
main = print "Hello, World!"
| 28
| false
| false
| 1
| 5
| 4
| 13
| 4
| 9
| null | null |
lomeo/my
|
src/My/Control/Monad.hs
|
mit
|
unliftM :: (Monad m) => (m a -> m r) -> (a -> m r)
unliftM f = f . return
| 73
|
unliftM :: (Monad m) => (m a -> m r) -> (a -> m r)
unliftM f = f . return
| 73
|
unliftM f = f . return
| 22
| false
| true
| 1
| 11
| 20
| 61
| 28
| 33
| null | null |
ghc-android/ghc
|
testsuite/tests/ghci/should_run/ghcirun004.hs
|
bsd-3-clause
|
214 = 213
| 9
|
214 = 213
| 9
|
214 = 213
| 9
| false
| false
| 1
| 5
| 2
| 10
| 3
| 7
| null | null |
uduki/hsQt
|
extra-pkgs/Glome/Qt/Glome/Cone.hs
|
bsd-2-clause
|
rayint_cone :: Cone -> Ray -> Flt -> Texture -> Rayint
rayint_cone (Cone r clip1 clip2 height) (Ray orig dir) d t =
let Vec ox oy oz = orig
Vec dx dy dz = dir
k' = (r/height)
k = k'*k'
a = dx*dx + dy*dy - k*dz*dz
b = 2*(dx*ox + dy*oy - k*dz*(oz-height))
c = ox*ox + oy*oy - k*(oz-height)*(oz-height)
disc = b*b - 4*a*c
in if disc < 0
then RayMiss
else
let discsqrt = sqrt disc
q = if b < 0
then (b-discsqrt)*(-0.5)
else (b+discsqrt)*(-0.5)
t0' = q/a
t1' = c/q
t0 = fmin t0' t1'
t1 = fmax t0' t1'
in if t1 < 0 || t0 > d
then RayMiss
else let dist = if t0 < 0
then t1
else t0
in if dist < 0 || dist > d
then RayMiss
else
let pos = vscaleadd orig dir dist
Vec posx posy posz = pos
in if posz > clip1 && posz < clip2
then let invhyp = 1 / (sqrt (height*height + r*r))
up = r * invhyp
out = height * invhyp
r_ = sqrt (posx*posx + posy*posy)
correction = (out)/(r_)
in RayHit dist pos (Vec (posx*correction) (posy*correction) up) t
else
if dz > 0 -- ray pointing up from bottom
then if oz < clip1
then rayint_disc (Disc (Vec 0 0 clip1) nvz (r*r)) (Ray orig dir) d t
else RayMiss
else if oz > clip2
then let r2 = r*(1-((clip2-clip1)/(height)))
in rayint_disc (Disc (Vec 0 0 clip2) vz (r2*r2)) (Ray orig dir) d t
--rayint_aadisc clip2 r2 (Ray orig dir) d t
else RayMiss
| 1,970
|
rayint_cone :: Cone -> Ray -> Flt -> Texture -> Rayint
rayint_cone (Cone r clip1 clip2 height) (Ray orig dir) d t =
let Vec ox oy oz = orig
Vec dx dy dz = dir
k' = (r/height)
k = k'*k'
a = dx*dx + dy*dy - k*dz*dz
b = 2*(dx*ox + dy*oy - k*dz*(oz-height))
c = ox*ox + oy*oy - k*(oz-height)*(oz-height)
disc = b*b - 4*a*c
in if disc < 0
then RayMiss
else
let discsqrt = sqrt disc
q = if b < 0
then (b-discsqrt)*(-0.5)
else (b+discsqrt)*(-0.5)
t0' = q/a
t1' = c/q
t0 = fmin t0' t1'
t1 = fmax t0' t1'
in if t1 < 0 || t0 > d
then RayMiss
else let dist = if t0 < 0
then t1
else t0
in if dist < 0 || dist > d
then RayMiss
else
let pos = vscaleadd orig dir dist
Vec posx posy posz = pos
in if posz > clip1 && posz < clip2
then let invhyp = 1 / (sqrt (height*height + r*r))
up = r * invhyp
out = height * invhyp
r_ = sqrt (posx*posx + posy*posy)
correction = (out)/(r_)
in RayHit dist pos (Vec (posx*correction) (posy*correction) up) t
else
if dz > 0 -- ray pointing up from bottom
then if oz < clip1
then rayint_disc (Disc (Vec 0 0 clip1) nvz (r*r)) (Ray orig dir) d t
else RayMiss
else if oz > clip2
then let r2 = r*(1-((clip2-clip1)/(height)))
in rayint_disc (Disc (Vec 0 0 clip2) vz (r2*r2)) (Ray orig dir) d t
--rayint_aadisc clip2 r2 (Ray orig dir) d t
else RayMiss
| 1,970
|
rayint_cone (Cone r clip1 clip2 height) (Ray orig dir) d t =
let Vec ox oy oz = orig
Vec dx dy dz = dir
k' = (r/height)
k = k'*k'
a = dx*dx + dy*dy - k*dz*dz
b = 2*(dx*ox + dy*oy - k*dz*(oz-height))
c = ox*ox + oy*oy - k*(oz-height)*(oz-height)
disc = b*b - 4*a*c
in if disc < 0
then RayMiss
else
let discsqrt = sqrt disc
q = if b < 0
then (b-discsqrt)*(-0.5)
else (b+discsqrt)*(-0.5)
t0' = q/a
t1' = c/q
t0 = fmin t0' t1'
t1 = fmax t0' t1'
in if t1 < 0 || t0 > d
then RayMiss
else let dist = if t0 < 0
then t1
else t0
in if dist < 0 || dist > d
then RayMiss
else
let pos = vscaleadd orig dir dist
Vec posx posy posz = pos
in if posz > clip1 && posz < clip2
then let invhyp = 1 / (sqrt (height*height + r*r))
up = r * invhyp
out = height * invhyp
r_ = sqrt (posx*posx + posy*posy)
correction = (out)/(r_)
in RayHit dist pos (Vec (posx*correction) (posy*correction) up) t
else
if dz > 0 -- ray pointing up from bottom
then if oz < clip1
then rayint_disc (Disc (Vec 0 0 clip1) nvz (r*r)) (Ray orig dir) d t
else RayMiss
else if oz > clip2
then let r2 = r*(1-((clip2-clip1)/(height)))
in rayint_disc (Disc (Vec 0 0 clip2) vz (r2*r2)) (Ray orig dir) d t
--rayint_aadisc clip2 r2 (Ray orig dir) d t
else RayMiss
| 1,915
| false
| true
| 0
| 29
| 976
| 762
| 400
| 362
| null | null |
bgamari/text
|
src/Data/Text.hs
|
bsd-2-clause
|
-- | /O(n)/ Convert a string to upper case, using simple case
-- conversion. Subject to fusion.
--
-- The result string may be longer than the input string. For
-- instance, the German \"ß\" (eszett, U+00DF) maps to the
-- two-letter sequence \"SS\".
toUpper :: Text -> Text
toUpper t = unstream (S.toUpper (stream t))
| 325
|
toUpper :: Text -> Text
toUpper t = unstream (S.toUpper (stream t))
| 67
|
toUpper t = unstream (S.toUpper (stream t))
| 43
| true
| true
| 0
| 9
| 57
| 41
| 23
| 18
| null | null |
rahulmutt/ghcvm
|
compiler/Eta/Prelude/PrimOp.hs
|
bsd-3-clause
|
primOpCanFail IndexOffAddrOp_Int32 = True
| 41
|
primOpCanFail IndexOffAddrOp_Int32 = True
| 41
|
primOpCanFail IndexOffAddrOp_Int32 = True
| 41
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
Motions/motions
|
Motions.hs
|
apache-2.0
|
run :: Settings -> IO ()
run settings@Settings{..} = do
when (simplePDB runSettings) $
putStrLn "Warning: when using \"simple-pdb-output: True\" with 3 or more different binder types \
\ it won't be possible to use the resulting output as initial state later."
_ <- runSimulation settings
-- TODO: do something with the dump?
pure ()
| 375
|
run :: Settings -> IO ()
run settings@Settings{..} = do
when (simplePDB runSettings) $
putStrLn "Warning: when using \"simple-pdb-output: True\" with 3 or more different binder types \
\ it won't be possible to use the resulting output as initial state later."
_ <- runSimulation settings
-- TODO: do something with the dump?
pure ()
| 375
|
run settings@Settings{..} = do
when (simplePDB runSettings) $
putStrLn "Warning: when using \"simple-pdb-output: True\" with 3 or more different binder types \
\ it won't be possible to use the resulting output as initial state later."
_ <- runSimulation settings
-- TODO: do something with the dump?
pure ()
| 350
| false
| true
| 0
| 11
| 96
| 75
| 33
| 42
| null | null |
noinia/hsync-server
|
src/HSync/Server/LocalAuth.hs
|
bsd-3-clause
|
getRegisterR :: (RenderMessage master FormMessage
, YesodAuth master
)
=> HandlerT Auth (HandlerT master IO) Html
getRegisterR = do
-- Generate the form to be displayed
(widget, enctype) <- lift $ generateFormPost registerForm
tp <- getRouteToParent
lift $ authLayout $ do
setTitleI Msg.RegisterLong
$(widgetFile "register")
| 401
|
getRegisterR :: (RenderMessage master FormMessage
, YesodAuth master
)
=> HandlerT Auth (HandlerT master IO) Html
getRegisterR = do
-- Generate the form to be displayed
(widget, enctype) <- lift $ generateFormPost registerForm
tp <- getRouteToParent
lift $ authLayout $ do
setTitleI Msg.RegisterLong
$(widgetFile "register")
| 401
|
getRegisterR = do
-- Generate the form to be displayed
(widget, enctype) <- lift $ generateFormPost registerForm
tp <- getRouteToParent
lift $ authLayout $ do
setTitleI Msg.RegisterLong
$(widgetFile "register")
| 242
| false
| true
| 0
| 12
| 121
| 100
| 48
| 52
| null | null |
imalsogreg/realtime-streams
|
src/System/IO/Streams/Realtime.hs
|
bsd-3-clause
|
------------------------------------------------------------------------------
atTimes :: InputStream a -> InputStream UTCTime -> IO (InputStream a)
atTimes = Streams.zipWithM returnAt
| 184
|
atTimes :: InputStream a -> InputStream UTCTime -> IO (InputStream a)
atTimes = Streams.zipWithM returnAt
| 105
|
atTimes = Streams.zipWithM returnAt
| 35
| true
| true
| 0
| 9
| 15
| 40
| 19
| 21
| null | null |
nushio3/ghc
|
compiler/basicTypes/OccName.hs
|
bsd-3-clause
|
isVarNameSpace :: NameSpace -> Bool -- Variables or type variables, but not constructors
isVarNameSpace TvName = True
| 122
|
isVarNameSpace :: NameSpace -> Bool
isVarNameSpace TvName = True
| 65
|
isVarNameSpace TvName = True
| 29
| true
| true
| 0
| 5
| 21
| 19
| 10
| 9
| null | null |
DaMSL/K3
|
src/Language/K3/Utils/Pretty.hs
|
apache-2.0
|
boxWidth :: [String] -> Int
boxWidth = maximum . map length
| 59
|
boxWidth :: [String] -> Int
boxWidth = maximum . map length
| 59
|
boxWidth = maximum . map length
| 31
| false
| true
| 0
| 7
| 10
| 31
| 14
| 17
| null | null |
begriffs/postgrest
|
src/PostgREST/QueryBuilder.hs
|
mit
|
-- |
-- These CTEs convert a json object into a json array, this way we can use json_populate_recordset for all json payloads
-- Otherwise we'd have to use json_populate_record for json objects and json_populate_recordset for json arrays
-- We do this in SQL to avoid processing the JSON in application code
normalizedBody :: SqlFragment
normalizedBody =
unwords [
"pgrst_payload AS (SELECT $1::json AS json_data),",
"pgrst_body AS (",
"SELECT",
"CASE WHEN json_typeof(json_data) = 'array'",
"THEN json_data",
"ELSE json_build_array(json_data)",
"END AS val",
"FROM pgrst_payload)"]
| 640
|
normalizedBody :: SqlFragment
normalizedBody =
unwords [
"pgrst_payload AS (SELECT $1::json AS json_data),",
"pgrst_body AS (",
"SELECT",
"CASE WHEN json_typeof(json_data) = 'array'",
"THEN json_data",
"ELSE json_build_array(json_data)",
"END AS val",
"FROM pgrst_payload)"]
| 332
|
normalizedBody =
unwords [
"pgrst_payload AS (SELECT $1::json AS json_data),",
"pgrst_body AS (",
"SELECT",
"CASE WHEN json_typeof(json_data) = 'array'",
"THEN json_data",
"ELSE json_build_array(json_data)",
"END AS val",
"FROM pgrst_payload)"]
| 302
| true
| true
| 0
| 6
| 140
| 42
| 27
| 15
| null | null |
brendanhay/gogol
|
gogol-serviceconsumermanagement/gen/Network/Google/Resource/ServiceConsumerManagement/Services/TenancyUnits/Create.hs
|
mpl-2.0
|
-- | V1 error format.
stucXgafv :: Lens' ServicesTenancyUnitsCreate (Maybe Xgafv)
stucXgafv
= lens _stucXgafv (\ s a -> s{_stucXgafv = a})
| 140
|
stucXgafv :: Lens' ServicesTenancyUnitsCreate (Maybe Xgafv)
stucXgafv
= lens _stucXgafv (\ s a -> s{_stucXgafv = a})
| 118
|
stucXgafv
= lens _stucXgafv (\ s a -> s{_stucXgafv = a})
| 58
| true
| true
| 0
| 9
| 23
| 48
| 25
| 23
| null | null |
oldmanmike/ghc
|
compiler/codeGen/StgCmmPrim.hs
|
bsd-3-clause
|
emitPrimOp dflags res WriteByteArrayOp_Int8 args = doWriteByteArrayOp (Just (mo_WordTo8 dflags)) b8 res args
| 121
|
emitPrimOp dflags res WriteByteArrayOp_Int8 args = doWriteByteArrayOp (Just (mo_WordTo8 dflags)) b8 res args
| 121
|
emitPrimOp dflags res WriteByteArrayOp_Int8 args = doWriteByteArrayOp (Just (mo_WordTo8 dflags)) b8 res args
| 121
| false
| false
| 0
| 9
| 25
| 36
| 17
| 19
| null | null |
brendanhay/gogol
|
gogol-containeranalysis/gen/Network/Google/ContainerAnalysis/Types/Product.hs
|
mpl-2.0
|
-- | Required. The layer ID of the final layer in the Docker image\'s v1
-- representation.
fV1Name :: Lens' Fingerprint (Maybe Text)
fV1Name = lens _fV1Name (\ s a -> s{_fV1Name = a})
| 184
|
fV1Name :: Lens' Fingerprint (Maybe Text)
fV1Name = lens _fV1Name (\ s a -> s{_fV1Name = a})
| 92
|
fV1Name = lens _fV1Name (\ s a -> s{_fV1Name = a})
| 50
| true
| true
| 0
| 9
| 33
| 47
| 26
| 21
| null | null |
lucasdicioccio/laborantin-hs
|
Laborantin/Query/Parse.hs
|
apache-2.0
|
addOp = binOp [("+",UPlus),("-",UMinus)]
| 41
|
addOp = binOp [("+",UPlus),("-",UMinus)]
| 41
|
addOp = binOp [("+",UPlus),("-",UMinus)]
| 41
| false
| false
| 1
| 6
| 4
| 30
| 16
| 14
| null | null |
roelvandijk/ftdi
|
System/FTDI/Internal.hs
|
bsd-3-clause
|
interfaceEndPointOut ∷ Interface → USB.EndpointAddress
interfaceEndPointOut i =
USB.EndpointAddress { USB.endpointNumber = 2 + 2 ⋅ genFromEnum i
, USB.transferDirection = USB.Out
}
| 235
|
interfaceEndPointOut ∷ Interface → USB.EndpointAddress
interfaceEndPointOut i =
USB.EndpointAddress { USB.endpointNumber = 2 + 2 ⋅ genFromEnum i
, USB.transferDirection = USB.Out
}
| 235
|
interfaceEndPointOut i =
USB.EndpointAddress { USB.endpointNumber = 2 + 2 ⋅ genFromEnum i
, USB.transferDirection = USB.Out
}
| 180
| false
| true
| 0
| 9
| 77
| 62
| 30
| 32
| null | null |
amccausl/Swish
|
Swish/HaskellRDF/RDFGraphTest.hs
|
lgpl-2.1
|
testNewNodeSuite = TestList
[ testNewNode01
, testNewNode02
, testNewNode03
, testNewNode04
, testNewNode05
, testNewNode06
, testNewNode07
, testNewNode08
, testNewNode09
]
| 203
|
testNewNodeSuite = TestList
[ testNewNode01
, testNewNode02
, testNewNode03
, testNewNode04
, testNewNode05
, testNewNode06
, testNewNode07
, testNewNode08
, testNewNode09
]
| 203
|
testNewNodeSuite = TestList
[ testNewNode01
, testNewNode02
, testNewNode03
, testNewNode04
, testNewNode05
, testNewNode06
, testNewNode07
, testNewNode08
, testNewNode09
]
| 203
| false
| false
| 0
| 5
| 51
| 36
| 22
| 14
| null | null |
cmc-haskell-2016/fluids
|
app/Main.hs
|
bsd-3-clause
|
rightAcc:: Pic -> Pic
rightAcc (Pic ps a bs s) = accPic
where newa = if a == 3 then 0 else 3
accPic = (Pic ps newa bs s)
-- Добавление новой частицы по нажатию левой клавиши мыши
| 189
|
rightAcc:: Pic -> Pic
rightAcc (Pic ps a bs s) = accPic
where newa = if a == 3 then 0 else 3
accPic = (Pic ps newa bs s)
-- Добавление новой частицы по нажатию левой клавиши мыши
| 189
|
rightAcc (Pic ps a bs s) = accPic
where newa = if a == 3 then 0 else 3
accPic = (Pic ps newa bs s)
-- Добавление новой частицы по нажатию левой клавиши мыши
| 167
| false
| true
| 2
| 9
| 49
| 80
| 37
| 43
| null | null |
rCEx/feldspar-lang-small
|
src/Feldspar/Core/Interpretation.hs
|
bsd-3-clause
|
-- | Construct a 'Literal' decorated with 'Info'
literalDecorSrc :: (Type a, (Literal :|| Type) :<: dom) =>
SourceInfo -> a -> ASTF (Decor Info (dom :|| Typeable)) a
literalDecorSrc src a = Sym $ Decor
((mkInfo (sizeOf a)) {infoSource = src})
(C' $ inj $ c' $ Literal a)
| 282
|
literalDecorSrc :: (Type a, (Literal :|| Type) :<: dom) =>
SourceInfo -> a -> ASTF (Decor Info (dom :|| Typeable)) a
literalDecorSrc src a = Sym $ Decor
((mkInfo (sizeOf a)) {infoSource = src})
(C' $ inj $ c' $ Literal a)
| 233
|
literalDecorSrc src a = Sym $ Decor
((mkInfo (sizeOf a)) {infoSource = src})
(C' $ inj $ c' $ Literal a)
| 112
| true
| true
| 0
| 12
| 61
| 120
| 62
| 58
| null | null |
kisp/ksquant2
|
Lisp.hs
|
gpl-3.0
|
keywordp _ = False
| 18
|
keywordp _ = False
| 18
|
keywordp _ = False
| 18
| false
| false
| 0
| 4
| 3
| 10
| 4
| 6
| null | null |
karamellpelle/grid
|
designer/source/LevelTools/File.hs
|
gpl-3.0
|
rCompatibleHeaderLevel :: Reader ()
rCompatibleHeaderLevel = do
ws <- replicateM 4 rAnyWord8
unless (ws == version) $ fail $ "can not read .ldef file with header " ++ show ws
-- | assuming Level
| 205
|
rCompatibleHeaderLevel :: Reader ()
rCompatibleHeaderLevel = do
ws <- replicateM 4 rAnyWord8
unless (ws == version) $ fail $ "can not read .ldef file with header " ++ show ws
-- | assuming Level
| 205
|
rCompatibleHeaderLevel = do
ws <- replicateM 4 rAnyWord8
unless (ws == version) $ fail $ "can not read .ldef file with header " ++ show ws
-- | assuming Level
| 169
| false
| true
| 0
| 12
| 44
| 57
| 27
| 30
| null | null |
kowey/GenI
|
src/NLP/GenI/Simple/SimpleBuilder.hs
|
gpl-2.0
|
switchToAux :: SimpleState ()
switchToAux = do
st <- get
let oldAuxTrees = theHoldingPen st
-- You might be wondering why we ignore the auxiliary trees in the
-- chart; this is because all the syntactically complete auxiliary
-- trees have already been filtered away by calls to classifyNew
initialT = filter siInitial (theChart st)
(compT1, incompT1) = partition (null.siSubstnodes) initialT
(auxTrees, compT2) =
( mapMaybe (detectNa oldAuxTrees) oldAuxTrees
, mapMaybe (detectNa auxTrees) compT1 )
(compT3, incompT3) = semfilter (tsem st) auxTrees compT2
--
compT = compT3
put st{ theAgenda = []
, theHoldingPen = []
, theChart = auxTrees
, step = AdjunctionPhase }
mapM_ simpleDispatch_2p_adjphase compT
-- toss the syntactically incomplete stuff in the trash
mapM_ (\t -> addToTrash t ts_synIncomplete) incompT1
mapM_ (\t -> addToTrash t =<< ts_semFiltered <$> missingSem t) incompT3
where
ts_semFiltered sem = T.unpack $
"Sem-filtered, MISSING:" <+> squeezed 72 (map pretty sem)
-- Completion
| 1,120
|
switchToAux :: SimpleState ()
switchToAux = do
st <- get
let oldAuxTrees = theHoldingPen st
-- You might be wondering why we ignore the auxiliary trees in the
-- chart; this is because all the syntactically complete auxiliary
-- trees have already been filtered away by calls to classifyNew
initialT = filter siInitial (theChart st)
(compT1, incompT1) = partition (null.siSubstnodes) initialT
(auxTrees, compT2) =
( mapMaybe (detectNa oldAuxTrees) oldAuxTrees
, mapMaybe (detectNa auxTrees) compT1 )
(compT3, incompT3) = semfilter (tsem st) auxTrees compT2
--
compT = compT3
put st{ theAgenda = []
, theHoldingPen = []
, theChart = auxTrees
, step = AdjunctionPhase }
mapM_ simpleDispatch_2p_adjphase compT
-- toss the syntactically incomplete stuff in the trash
mapM_ (\t -> addToTrash t ts_synIncomplete) incompT1
mapM_ (\t -> addToTrash t =<< ts_semFiltered <$> missingSem t) incompT3
where
ts_semFiltered sem = T.unpack $
"Sem-filtered, MISSING:" <+> squeezed 72 (map pretty sem)
-- Completion
| 1,120
|
switchToAux = do
st <- get
let oldAuxTrees = theHoldingPen st
-- You might be wondering why we ignore the auxiliary trees in the
-- chart; this is because all the syntactically complete auxiliary
-- trees have already been filtered away by calls to classifyNew
initialT = filter siInitial (theChart st)
(compT1, incompT1) = partition (null.siSubstnodes) initialT
(auxTrees, compT2) =
( mapMaybe (detectNa oldAuxTrees) oldAuxTrees
, mapMaybe (detectNa auxTrees) compT1 )
(compT3, incompT3) = semfilter (tsem st) auxTrees compT2
--
compT = compT3
put st{ theAgenda = []
, theHoldingPen = []
, theChart = auxTrees
, step = AdjunctionPhase }
mapM_ simpleDispatch_2p_adjphase compT
-- toss the syntactically incomplete stuff in the trash
mapM_ (\t -> addToTrash t ts_synIncomplete) incompT1
mapM_ (\t -> addToTrash t =<< ts_semFiltered <$> missingSem t) incompT3
where
ts_semFiltered sem = T.unpack $
"Sem-filtered, MISSING:" <+> squeezed 72 (map pretty sem)
-- Completion
| 1,090
| false
| true
| 2
| 13
| 273
| 284
| 143
| 141
| null | null |
spechub/Hets
|
Common/ExampleMixIds.hs
|
gpl-2.0
|
stdPredsL :: [String]
stdPredsL =
[ "__<__", "__<=__", "__>__", "__>=__", "__!=__", "__<>__"
, "__/=__", "even__", "odd__", "__isEmpty", "__<=__<=__" ]
| 155
|
stdPredsL :: [String]
stdPredsL =
[ "__<__", "__<=__", "__>__", "__>=__", "__!=__", "__<>__"
, "__/=__", "even__", "odd__", "__isEmpty", "__<=__<=__" ]
| 155
|
stdPredsL =
[ "__<__", "__<=__", "__>__", "__>=__", "__!=__", "__<>__"
, "__/=__", "even__", "odd__", "__isEmpty", "__<=__<=__" ]
| 133
| false
| true
| 0
| 5
| 22
| 47
| 30
| 17
| null | null |
flipstone/orville
|
orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/SyntheticField.hs
|
mit
|
{- |
Decodes a calculated value selected from the database to its expected
Haskell type. Returns a 'Left' with an error message if the decoding fails.
-}
syntheticFieldValueFromSqlValue :: SyntheticField a -> SqlValue.SqlValue -> Either String a
syntheticFieldValueFromSqlValue =
_syntheticFieldValueFromSqlValue
| 318
|
syntheticFieldValueFromSqlValue :: SyntheticField a -> SqlValue.SqlValue -> Either String a
syntheticFieldValueFromSqlValue =
_syntheticFieldValueFromSqlValue
| 160
|
syntheticFieldValueFromSqlValue =
_syntheticFieldValueFromSqlValue
| 68
| true
| true
| 0
| 7
| 45
| 30
| 15
| 15
| null | null |
flipstone/orville
|
orville-postgresql/src/Database/Orville/PostgreSQL/Internal/QueryKey.hs
|
mit
|
compareSqlValue _ (SqlInt64 _) = GT
| 35
|
compareSqlValue _ (SqlInt64 _) = GT
| 35
|
compareSqlValue _ (SqlInt64 _) = GT
| 35
| false
| false
| 0
| 7
| 5
| 17
| 8
| 9
| null | null |
ryantm/ghc
|
ghc/GhciMonad.hs
|
bsd-3-clause
|
liftGhc :: Ghc a -> GHCi a
liftGhc m = GHCi $ \_ -> m
| 53
|
liftGhc :: Ghc a -> GHCi a
liftGhc m = GHCi $ \_ -> m
| 53
|
liftGhc m = GHCi $ \_ -> m
| 26
| false
| true
| 2
| 7
| 14
| 39
| 17
| 22
| null | null |
rleshchinskiy/vector
|
Data/Vector/Storable.hs
|
bsd-3-clause
|
minimum = G.minimum
| 19
|
minimum = G.minimum
| 19
|
minimum = G.minimum
| 19
| false
| false
| 1
| 6
| 2
| 12
| 4
| 8
| null | null |
lukemaurer/sequent-core
|
src/Language/SequentCore/FloatOut/Summary.hs
|
bsd-3-clause
|
tagVarSet :: VarSet -> VarUses
-- For tyvars, etc.
tagVarSet = mapVarEnv (\var -> (var, unusedSummary))
| 103
|
tagVarSet :: VarSet -> VarUses
tagVarSet = mapVarEnv (\var -> (var, unusedSummary))
| 83
|
tagVarSet = mapVarEnv (\var -> (var, unusedSummary))
| 52
| true
| true
| 0
| 8
| 15
| 33
| 19
| 14
| null | null |
Pieterjaninfo/PP
|
FP/Tokenizer.hs
|
unlicense
|
tokenizer :: String -> [(Alphabet,String)]
tokenizer [] = []
| 61
|
tokenizer :: String -> [(Alphabet,String)]
tokenizer [] = []
| 60
|
tokenizer [] = []
| 17
| false
| true
| 0
| 9
| 9
| 37
| 18
| 19
| null | null |
sapek/pandoc
|
src/Text/Pandoc/Readers/LaTeX.hs
|
gpl-2.0
|
circ 'S' = "Ŝ"
| 14
|
circ 'S' = "Ŝ"
| 14
|
circ 'S' = "Ŝ"
| 14
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
rohitjha/DiMPL
|
examples/lineq.hs
|
bsd-2-clause
|
solveEqns (Matrix coeff) (Matrix const) = (inverse (Matrix coeff)) |><| (Matrix const)
| 86
|
solveEqns (Matrix coeff) (Matrix const) = (inverse (Matrix coeff)) |><| (Matrix const)
| 86
|
solveEqns (Matrix coeff) (Matrix const) = (inverse (Matrix coeff)) |><| (Matrix const)
| 86
| false
| false
| 1
| 10
| 11
| 49
| 22
| 27
| null | null |
Ian-Stewart-Binks/courseography
|
hs/WebParsing/TimeTableParser.hs
|
gpl-3.0
|
-- | Inserts a single courseSlot into a session
insertSession :: Session -> CourseSlot -> Session
insertSession session slot
| isLecture slot = session { lectures = makeLecture slot:lectures session }
| otherwise = session { tutorials = makeTutorial slot:tutorials session }
| 282
|
insertSession :: Session -> CourseSlot -> Session
insertSession session slot
| isLecture slot = session { lectures = makeLecture slot:lectures session }
| otherwise = session { tutorials = makeTutorial slot:tutorials session }
| 234
|
insertSession session slot
| isLecture slot = session { lectures = makeLecture slot:lectures session }
| otherwise = session { tutorials = makeTutorial slot:tutorials session }
| 184
| true
| true
| 1
| 9
| 49
| 78
| 38
| 40
| null | null |
ancientlanguage/haskell-analysis
|
grammar/src/Grammar/Common/Decompose.hs
|
mit
|
decomposeChar '\x21CF' = "\x21D2\x0338"
| 39
|
decomposeChar '\x21CF' = "\x21D2\x0338"
| 39
|
decomposeChar '\x21CF' = "\x21D2\x0338"
| 39
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
termite2/tsl
|
Frontend/SpecInline.hs
|
bsd-3-clause
|
forkedProcs (SChoice _ _ ss) = concatMap forkedProcs ss
| 65
|
forkedProcs (SChoice _ _ ss) = concatMap forkedProcs ss
| 65
|
forkedProcs (SChoice _ _ ss) = concatMap forkedProcs ss
| 65
| false
| false
| 0
| 6
| 18
| 25
| 11
| 14
| null | null |
beni55/LambdaHack
|
Game/LambdaHack/Client/UI/HandleHumanGlobalClient.hs
|
bsd-3-clause
|
projectCheck :: MonadClientUI m => Point -> m (Maybe ReqFailure)
projectCheck tpos = do
Kind.COps{cotile} <- getsState scops
leader <- getLeaderUI
eps <- getsClient seps
sb <- getsState $ getActorBody leader
let lid = blid sb
spos = bpos sb
Level{lxsize, lysize} <- getLevel lid
case bla lxsize lysize eps spos tpos of
Nothing -> return $ Just ProjectAimOnself
Just [] -> assert `failure` "project from the edge of level"
`twith` (spos, tpos, sb)
Just (pos : _) -> do
lvl <- getLevel lid
let t = lvl `at` pos
if not $ Tile.isWalkable cotile t
then return $ Just ProjectBlockTerrain
else do
lab <- getsState $ posToActors pos lid
if all (bproj . snd) lab
then return Nothing
else return $ Just ProjectBlockActor
| 838
|
projectCheck :: MonadClientUI m => Point -> m (Maybe ReqFailure)
projectCheck tpos = do
Kind.COps{cotile} <- getsState scops
leader <- getLeaderUI
eps <- getsClient seps
sb <- getsState $ getActorBody leader
let lid = blid sb
spos = bpos sb
Level{lxsize, lysize} <- getLevel lid
case bla lxsize lysize eps spos tpos of
Nothing -> return $ Just ProjectAimOnself
Just [] -> assert `failure` "project from the edge of level"
`twith` (spos, tpos, sb)
Just (pos : _) -> do
lvl <- getLevel lid
let t = lvl `at` pos
if not $ Tile.isWalkable cotile t
then return $ Just ProjectBlockTerrain
else do
lab <- getsState $ posToActors pos lid
if all (bproj . snd) lab
then return Nothing
else return $ Just ProjectBlockActor
| 838
|
projectCheck tpos = do
Kind.COps{cotile} <- getsState scops
leader <- getLeaderUI
eps <- getsClient seps
sb <- getsState $ getActorBody leader
let lid = blid sb
spos = bpos sb
Level{lxsize, lysize} <- getLevel lid
case bla lxsize lysize eps spos tpos of
Nothing -> return $ Just ProjectAimOnself
Just [] -> assert `failure` "project from the edge of level"
`twith` (spos, tpos, sb)
Just (pos : _) -> do
lvl <- getLevel lid
let t = lvl `at` pos
if not $ Tile.isWalkable cotile t
then return $ Just ProjectBlockTerrain
else do
lab <- getsState $ posToActors pos lid
if all (bproj . snd) lab
then return Nothing
else return $ Just ProjectBlockActor
| 773
| false
| true
| 0
| 19
| 251
| 309
| 146
| 163
| null | null |
erochest/barth-scrape
|
src/BarthPar/Scrape/XML.hs
|
apache-2.0
|
filterNode _ n@(NodeContent _) = return n
| 45
|
filterNode _ n@(NodeContent _) = return n
| 45
|
filterNode _ n@(NodeContent _) = return n
| 45
| false
| false
| 0
| 8
| 10
| 23
| 11
| 12
| null | null |
nevrenato/Hets_Fork
|
Hybrid/StatAna.hs
|
gpl-2.0
|
ana_H_SIG_ITEM :: Ana H_SIG_ITEM H_BASIC_ITEM H_SIG_ITEM H_FORMULA HybridSign
ana_H_SIG_ITEM mix mi =
case mi of
Rigid_op_items r al ps ->
do ul <- mapM (ana_OP_ITEM minExpForm mix) al
case r of
Rigid -> mapM_ (\ aoi -> case item aoi of
Op_decl ops ty _ _ ->
mapM_ (updateExtInfo . addRigidOp (toOpType ty)) ops
Op_defn i par _ _ -> maybe (return ())
(\ ty -> updateExtInfo $ addRigidOp (toOpType ty) i)
$ headToType par) ul
_ -> return ()
return $ Rigid_op_items r ul ps
Rigid_pred_items r al ps ->
do ul <- mapM (ana_PRED_ITEM minExpForm mix) al
case r of
Rigid -> mapM_ (\ aoi -> case item aoi of
Pred_decl ops ty _ ->
mapM_ (updateExtInfo . addRigidPred (toPredType ty)) ops
Pred_defn i (Pred_head args _) _ _ ->
updateExtInfo $ addRigidPred
(PredType $ sortsOfArgs args) i ) ul
_ -> return ()
return $ Rigid_pred_items r ul ps
| 1,186
|
ana_H_SIG_ITEM :: Ana H_SIG_ITEM H_BASIC_ITEM H_SIG_ITEM H_FORMULA HybridSign
ana_H_SIG_ITEM mix mi =
case mi of
Rigid_op_items r al ps ->
do ul <- mapM (ana_OP_ITEM minExpForm mix) al
case r of
Rigid -> mapM_ (\ aoi -> case item aoi of
Op_decl ops ty _ _ ->
mapM_ (updateExtInfo . addRigidOp (toOpType ty)) ops
Op_defn i par _ _ -> maybe (return ())
(\ ty -> updateExtInfo $ addRigidOp (toOpType ty) i)
$ headToType par) ul
_ -> return ()
return $ Rigid_op_items r ul ps
Rigid_pred_items r al ps ->
do ul <- mapM (ana_PRED_ITEM minExpForm mix) al
case r of
Rigid -> mapM_ (\ aoi -> case item aoi of
Pred_decl ops ty _ ->
mapM_ (updateExtInfo . addRigidPred (toPredType ty)) ops
Pred_defn i (Pred_head args _) _ _ ->
updateExtInfo $ addRigidPred
(PredType $ sortsOfArgs args) i ) ul
_ -> return ()
return $ Rigid_pred_items r ul ps
| 1,186
|
ana_H_SIG_ITEM mix mi =
case mi of
Rigid_op_items r al ps ->
do ul <- mapM (ana_OP_ITEM minExpForm mix) al
case r of
Rigid -> mapM_ (\ aoi -> case item aoi of
Op_decl ops ty _ _ ->
mapM_ (updateExtInfo . addRigidOp (toOpType ty)) ops
Op_defn i par _ _ -> maybe (return ())
(\ ty -> updateExtInfo $ addRigidOp (toOpType ty) i)
$ headToType par) ul
_ -> return ()
return $ Rigid_op_items r ul ps
Rigid_pred_items r al ps ->
do ul <- mapM (ana_PRED_ITEM minExpForm mix) al
case r of
Rigid -> mapM_ (\ aoi -> case item aoi of
Pred_decl ops ty _ ->
mapM_ (updateExtInfo . addRigidPred (toPredType ty)) ops
Pred_defn i (Pred_head args _) _ _ ->
updateExtInfo $ addRigidPred
(PredType $ sortsOfArgs args) i ) ul
_ -> return ()
return $ Rigid_pred_items r ul ps
| 1,108
| false
| true
| 2
| 23
| 506
| 385
| 180
| 205
| null | null |
allanderek/ipclib
|
Language/Pepa/Pepato/OutputParser.hs
|
gpl-2.0
|
statesParser :: Parser Int
statesParser =
do string "Number of states explored:"
intParser
| 98
|
statesParser :: Parser Int
statesParser =
do string "Number of states explored:"
intParser
| 98
|
statesParser =
do string "Number of states explored:"
intParser
| 71
| false
| true
| 0
| 7
| 20
| 23
| 10
| 13
| null | null |
spechub/Hets
|
QBF/Parse_AS_Basic.hs
|
gpl-2.0
|
-- | parser for predicates = propositions
predItem :: AnnoState.AParser st AS_BASIC.PREDITEM
predItem = do
v <- AnnoState.asKey (Keywords.propS ++ Keywords.sS) <|>
AnnoState.asKey Keywords.propS
(ps, cs) <- propId `Lexer.separatedBy` AnnoState.anComma
return $ AS_BASIC.PredItem ps $ Id.catRange $ v : cs
-- | Parser for implies @=>@
| 363
|
predItem :: AnnoState.AParser st AS_BASIC.PREDITEM
predItem = do
v <- AnnoState.asKey (Keywords.propS ++ Keywords.sS) <|>
AnnoState.asKey Keywords.propS
(ps, cs) <- propId `Lexer.separatedBy` AnnoState.anComma
return $ AS_BASIC.PredItem ps $ Id.catRange $ v : cs
-- | Parser for implies @=>@
| 321
|
predItem = do
v <- AnnoState.asKey (Keywords.propS ++ Keywords.sS) <|>
AnnoState.asKey Keywords.propS
(ps, cs) <- propId `Lexer.separatedBy` AnnoState.anComma
return $ AS_BASIC.PredItem ps $ Id.catRange $ v : cs
-- | Parser for implies @=>@
| 270
| true
| true
| 0
| 12
| 75
| 105
| 53
| 52
| null | null |
brendanhay/gogol
|
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs
|
mpl-2.0
|
-- | Creates a value of 'ProductsListResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'plrTokenPagination'
--
-- * 'plrPageInfo'
--
-- * 'plrProduct'
productsListResponse
:: ProductsListResponse
productsListResponse =
ProductsListResponse'
{ _plrTokenPagination = Nothing
, _plrPageInfo = Nothing
, _plrProduct = Nothing
}
| 438
|
productsListResponse
:: ProductsListResponse
productsListResponse =
ProductsListResponse'
{ _plrTokenPagination = Nothing
, _plrPageInfo = Nothing
, _plrProduct = Nothing
}
| 194
|
productsListResponse =
ProductsListResponse'
{ _plrTokenPagination = Nothing
, _plrPageInfo = Nothing
, _plrProduct = Nothing
}
| 145
| true
| true
| 1
| 7
| 82
| 47
| 29
| 18
| null | null |
sebastiaanvisser/labels
|
src/Label/Codegen.hs
|
bsd-3-clause
|
nameFromBinder :: TyVarBndr -> Name
nameFromBinder (PlainTV n ) = n
| 69
|
nameFromBinder :: TyVarBndr -> Name
nameFromBinder (PlainTV n ) = n
| 69
|
nameFromBinder (PlainTV n ) = n
| 33
| false
| true
| 0
| 7
| 12
| 24
| 12
| 12
| null | null |
tomahawkins/atom-hd
|
Language/AtomHD.hs
|
bsd-3-clause
|
-- | Bit vector inequality.
(/=.) :: E -> E -> E
a /=. b = complement $ a ==. b
| 79
|
(/=.) :: E -> E -> E
a /=. b = complement $ a ==. b
| 51
|
a /=. b = complement $ a ==. b
| 30
| true
| true
| 0
| 9
| 20
| 37
| 19
| 18
| null | null |
peterokagey/haskellOEIS
|
src/AlecSequences/A269525.hs
|
apache-2.0
|
matchingIndices :: [Integer] -> [Integer]
matchingIndices list = filter f [1..n] where
n = genericLength list
f index = a032741 (n + 1) >= a032741 a_i where
a_i = genericIndex list (index - 1)
| 200
|
matchingIndices :: [Integer] -> [Integer]
matchingIndices list = filter f [1..n] where
n = genericLength list
f index = a032741 (n + 1) >= a032741 a_i where
a_i = genericIndex list (index - 1)
| 200
|
matchingIndices list = filter f [1..n] where
n = genericLength list
f index = a032741 (n + 1) >= a032741 a_i where
a_i = genericIndex list (index - 1)
| 158
| false
| true
| 0
| 11
| 41
| 91
| 46
| 45
| null | null |
zjhmale/Ntha
|
src/Ntha/Type/Infer.hs
|
bsd-3-clause
|
isGeneric :: Type -> NonGeneric -> Infer Bool
isGeneric t nonGeneric = not <$> (occursIn t $ S.toList nonGeneric)
| 113
|
isGeneric :: Type -> NonGeneric -> Infer Bool
isGeneric t nonGeneric = not <$> (occursIn t $ S.toList nonGeneric)
| 113
|
isGeneric t nonGeneric = not <$> (occursIn t $ S.toList nonGeneric)
| 67
| false
| true
| 0
| 9
| 18
| 46
| 22
| 24
| null | null |
bitemyapp/hakaru
|
Examples/Examples.hs
|
bsd-3-clause
|
categorical_mixture = undefined
| 31
|
categorical_mixture = undefined
| 31
|
categorical_mixture = undefined
| 31
| false
| false
| 0
| 4
| 2
| 6
| 3
| 3
| null | null |
blancas/trex
|
src/Select.hs
|
mit
|
process :: Bool -> Fields -> LB.ByteString -> LB.ByteString
process header fields contents =
let recLst = F.toList $ decode NoHeader contents in
encode $ [extract fields rec | rec <- if header then tail recLst else recLst]
| 232
|
process :: Bool -> Fields -> LB.ByteString -> LB.ByteString
process header fields contents =
let recLst = F.toList $ decode NoHeader contents in
encode $ [extract fields rec | rec <- if header then tail recLst else recLst]
| 232
|
process header fields contents =
let recLst = F.toList $ decode NoHeader contents in
encode $ [extract fields rec | rec <- if header then tail recLst else recLst]
| 172
| false
| true
| 0
| 12
| 47
| 87
| 43
| 44
| null | null |
mettekou/ghc
|
compiler/types/TyCoRep.hs
|
bsd-3-clause
|
coVarsOfCo (LRCo _ co) = coVarsOfCo co
| 46
|
coVarsOfCo (LRCo _ co) = coVarsOfCo co
| 46
|
coVarsOfCo (LRCo _ co) = coVarsOfCo co
| 46
| false
| false
| 0
| 7
| 14
| 20
| 9
| 11
| null | null |
snoyberg/ghc
|
compiler/nativeGen/Dwarf/Types.hs
|
bsd-3-clause
|
-- | Abbreviation declaration. This explains the binary encoding we
-- use for representing 'DwarfInfo'. Be aware that this must be updated
-- along with 'pprDwarfInfo'.
pprAbbrevDecls :: Bool -> SDoc
pprAbbrevDecls haveDebugLine =
let mkAbbrev abbr tag chld flds =
let fld (tag, form) = pprLEBWord tag $$ pprLEBWord form
in pprAbbrev abbr $$ pprLEBWord tag $$ pprByte chld $$
vcat (map fld flds) $$ pprByte 0 $$ pprByte 0
-- These are shared between DwAbbrSubprogram and
-- DwAbbrSubprogramWithParent
subprogramAttrs =
[ (dW_AT_name, dW_FORM_string)
, (dW_AT_MIPS_linkage_name, dW_FORM_string)
, (dW_AT_external, dW_FORM_flag)
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
, (dW_AT_frame_base, dW_FORM_block1)
]
in dwarfAbbrevSection $$
ptext dwarfAbbrevLabel <> colon $$
mkAbbrev DwAbbrCompileUnit dW_TAG_compile_unit dW_CHILDREN_yes
([(dW_AT_name, dW_FORM_string)
, (dW_AT_producer, dW_FORM_string)
, (dW_AT_language, dW_FORM_data4)
, (dW_AT_comp_dir, dW_FORM_string)
, (dW_AT_use_UTF8, dW_FORM_flag_present) -- not represented in body
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
] ++
(if haveDebugLine
then [ (dW_AT_stmt_list, dW_FORM_data4) ]
else [])) $$
mkAbbrev DwAbbrSubprogram dW_TAG_subprogram dW_CHILDREN_yes
subprogramAttrs $$
mkAbbrev DwAbbrSubprogramWithParent dW_TAG_subprogram dW_CHILDREN_yes
(subprogramAttrs ++ [(dW_AT_ghc_tick_parent, dW_FORM_ref_addr)]) $$
mkAbbrev DwAbbrBlockWithoutCode dW_TAG_lexical_block dW_CHILDREN_yes
[ (dW_AT_name, dW_FORM_string)
] $$
mkAbbrev DwAbbrBlock dW_TAG_lexical_block dW_CHILDREN_yes
[ (dW_AT_name, dW_FORM_string)
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
] $$
mkAbbrev DwAbbrGhcSrcNote dW_TAG_ghc_src_note dW_CHILDREN_no
[ (dW_AT_ghc_span_file, dW_FORM_string)
, (dW_AT_ghc_span_start_line, dW_FORM_data4)
, (dW_AT_ghc_span_start_col, dW_FORM_data2)
, (dW_AT_ghc_span_end_line, dW_FORM_data4)
, (dW_AT_ghc_span_end_col, dW_FORM_data2)
] $$
pprByte 0
| 2,316
|
pprAbbrevDecls :: Bool -> SDoc
pprAbbrevDecls haveDebugLine =
let mkAbbrev abbr tag chld flds =
let fld (tag, form) = pprLEBWord tag $$ pprLEBWord form
in pprAbbrev abbr $$ pprLEBWord tag $$ pprByte chld $$
vcat (map fld flds) $$ pprByte 0 $$ pprByte 0
-- These are shared between DwAbbrSubprogram and
-- DwAbbrSubprogramWithParent
subprogramAttrs =
[ (dW_AT_name, dW_FORM_string)
, (dW_AT_MIPS_linkage_name, dW_FORM_string)
, (dW_AT_external, dW_FORM_flag)
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
, (dW_AT_frame_base, dW_FORM_block1)
]
in dwarfAbbrevSection $$
ptext dwarfAbbrevLabel <> colon $$
mkAbbrev DwAbbrCompileUnit dW_TAG_compile_unit dW_CHILDREN_yes
([(dW_AT_name, dW_FORM_string)
, (dW_AT_producer, dW_FORM_string)
, (dW_AT_language, dW_FORM_data4)
, (dW_AT_comp_dir, dW_FORM_string)
, (dW_AT_use_UTF8, dW_FORM_flag_present) -- not represented in body
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
] ++
(if haveDebugLine
then [ (dW_AT_stmt_list, dW_FORM_data4) ]
else [])) $$
mkAbbrev DwAbbrSubprogram dW_TAG_subprogram dW_CHILDREN_yes
subprogramAttrs $$
mkAbbrev DwAbbrSubprogramWithParent dW_TAG_subprogram dW_CHILDREN_yes
(subprogramAttrs ++ [(dW_AT_ghc_tick_parent, dW_FORM_ref_addr)]) $$
mkAbbrev DwAbbrBlockWithoutCode dW_TAG_lexical_block dW_CHILDREN_yes
[ (dW_AT_name, dW_FORM_string)
] $$
mkAbbrev DwAbbrBlock dW_TAG_lexical_block dW_CHILDREN_yes
[ (dW_AT_name, dW_FORM_string)
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
] $$
mkAbbrev DwAbbrGhcSrcNote dW_TAG_ghc_src_note dW_CHILDREN_no
[ (dW_AT_ghc_span_file, dW_FORM_string)
, (dW_AT_ghc_span_start_line, dW_FORM_data4)
, (dW_AT_ghc_span_start_col, dW_FORM_data2)
, (dW_AT_ghc_span_end_line, dW_FORM_data4)
, (dW_AT_ghc_span_end_col, dW_FORM_data2)
] $$
pprByte 0
| 2,146
|
pprAbbrevDecls haveDebugLine =
let mkAbbrev abbr tag chld flds =
let fld (tag, form) = pprLEBWord tag $$ pprLEBWord form
in pprAbbrev abbr $$ pprLEBWord tag $$ pprByte chld $$
vcat (map fld flds) $$ pprByte 0 $$ pprByte 0
-- These are shared between DwAbbrSubprogram and
-- DwAbbrSubprogramWithParent
subprogramAttrs =
[ (dW_AT_name, dW_FORM_string)
, (dW_AT_MIPS_linkage_name, dW_FORM_string)
, (dW_AT_external, dW_FORM_flag)
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
, (dW_AT_frame_base, dW_FORM_block1)
]
in dwarfAbbrevSection $$
ptext dwarfAbbrevLabel <> colon $$
mkAbbrev DwAbbrCompileUnit dW_TAG_compile_unit dW_CHILDREN_yes
([(dW_AT_name, dW_FORM_string)
, (dW_AT_producer, dW_FORM_string)
, (dW_AT_language, dW_FORM_data4)
, (dW_AT_comp_dir, dW_FORM_string)
, (dW_AT_use_UTF8, dW_FORM_flag_present) -- not represented in body
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
] ++
(if haveDebugLine
then [ (dW_AT_stmt_list, dW_FORM_data4) ]
else [])) $$
mkAbbrev DwAbbrSubprogram dW_TAG_subprogram dW_CHILDREN_yes
subprogramAttrs $$
mkAbbrev DwAbbrSubprogramWithParent dW_TAG_subprogram dW_CHILDREN_yes
(subprogramAttrs ++ [(dW_AT_ghc_tick_parent, dW_FORM_ref_addr)]) $$
mkAbbrev DwAbbrBlockWithoutCode dW_TAG_lexical_block dW_CHILDREN_yes
[ (dW_AT_name, dW_FORM_string)
] $$
mkAbbrev DwAbbrBlock dW_TAG_lexical_block dW_CHILDREN_yes
[ (dW_AT_name, dW_FORM_string)
, (dW_AT_low_pc, dW_FORM_addr)
, (dW_AT_high_pc, dW_FORM_addr)
] $$
mkAbbrev DwAbbrGhcSrcNote dW_TAG_ghc_src_note dW_CHILDREN_no
[ (dW_AT_ghc_span_file, dW_FORM_string)
, (dW_AT_ghc_span_start_line, dW_FORM_data4)
, (dW_AT_ghc_span_start_col, dW_FORM_data2)
, (dW_AT_ghc_span_end_line, dW_FORM_data4)
, (dW_AT_ghc_span_end_col, dW_FORM_data2)
] $$
pprByte 0
| 2,115
| true
| true
| 14
| 16
| 562
| 465
| 259
| 206
| null | null |
CulpaBS/wbBach
|
src/Futhark/CodeGen/Backends/SimpleRepresentation.hs
|
bsd-3-clause
|
c_isnan32 ::C.Func
c_isnan32 = [C.cfun|
static inline char $id:(funName' "isnan32")(float x) {
return isnan(x);
}
|]
| 132
|
c_isnan32 ::C.Func
c_isnan32 = [C.cfun|
static inline char $id:(funName' "isnan32")(float x) {
return isnan(x);
}
|]
| 132
|
c_isnan32 = [C.cfun|
static inline char $id:(funName' "isnan32")(float x) {
return isnan(x);
}
|]
| 113
| false
| true
| 0
| 7
| 31
| 26
| 13
| 13
| null | null |
mcmaniac/ghc
|
compiler/cmm/CLabel.hs
|
bsd-3-clause
|
mkCmmDataLabel pkg str = CmmLabel pkg str CmmData
| 58
|
mkCmmDataLabel pkg str = CmmLabel pkg str CmmData
| 58
|
mkCmmDataLabel pkg str = CmmLabel pkg str CmmData
| 58
| false
| false
| 0
| 5
| 16
| 18
| 8
| 10
| null | null |
copland/cmdargs
|
System/Console/CmdArgs/Implicit/Local.hs
|
bsd-3-clause
|
flagAnn (FlagOptional a) x@Flag_{flagEnum=Nothing,flagFlag=Flag{flagInfo=FlagReq}} = withFlagFlag x $ \x -> x{flagInfo=FlagOpt a}
| 129
|
flagAnn (FlagOptional a) x@Flag_{flagEnum=Nothing,flagFlag=Flag{flagInfo=FlagReq}} = withFlagFlag x $ \x -> x{flagInfo=FlagOpt a}
| 129
|
flagAnn (FlagOptional a) x@Flag_{flagEnum=Nothing,flagFlag=Flag{flagInfo=FlagReq}} = withFlagFlag x $ \x -> x{flagInfo=FlagOpt a}
| 129
| false
| false
| 0
| 12
| 11
| 67
| 36
| 31
| null | null |
acowley/ghc
|
compiler/utils/FastString.hs
|
bsd-3-clause
|
lookupTbl :: FastStringTable -> Int -> IO (IORef [FastString])
lookupTbl (FastStringTable _ arr#) (I# i#) =
IO $ \ s# -> readArray# arr# i# s#
| 144
|
lookupTbl :: FastStringTable -> Int -> IO (IORef [FastString])
lookupTbl (FastStringTable _ arr#) (I# i#) =
IO $ \ s# -> readArray# arr# i# s#
| 144
|
lookupTbl (FastStringTable _ arr#) (I# i#) =
IO $ \ s# -> readArray# arr# i# s#
| 81
| false
| true
| 2
| 11
| 26
| 71
| 34
| 37
| null | null |
input-output-hk/pos-haskell-prototype
|
node/test/Chain/Abstract/Repartition.hs
|
mit
|
mkRepartitionT
:: forall e m a . (Ord a, MonadError e m)
=> ([RepartitionError a] -> e)
-> [(a, Word64)]
-> m (Repartition a)
mkRepartitionT liftErr rs =
validation (throwError . liftErr) return (mkRepartition rs)
| 223
|
mkRepartitionT
:: forall e m a . (Ord a, MonadError e m)
=> ([RepartitionError a] -> e)
-> [(a, Word64)]
-> m (Repartition a)
mkRepartitionT liftErr rs =
validation (throwError . liftErr) return (mkRepartition rs)
| 223
|
mkRepartitionT liftErr rs =
validation (throwError . liftErr) return (mkRepartition rs)
| 89
| false
| true
| 0
| 12
| 44
| 103
| 54
| 49
| null | null |
scott-fleischman/greek-grammar
|
haskell/greek-grammar/src/Text/Greek/Script/Syllable.hs
|
mit
|
getVocalicMark (VocalicIota _ m) = m
| 36
|
getVocalicMark (VocalicIota _ m) = m
| 36
|
getVocalicMark (VocalicIota _ m) = m
| 36
| false
| false
| 0
| 7
| 5
| 17
| 8
| 9
| null | null |
qnikst/distributed-process-extras
|
src/Control/Distributed/Process/Extras/Internal/Unsafe.hs
|
bsd-3-clause
|
-- | Given a raw @Message@, attempt to unwrap a @Typeable@ datum from
-- an enclosing @PCopy@ wrapper.
pUnwrap :: (Typeable m) => Message -> Process (Maybe m)
pUnwrap m = handleMessage m (\(PCopy m' :: PCopy m) -> return m')
| 224
|
pUnwrap :: (Typeable m) => Message -> Process (Maybe m)
pUnwrap m = handleMessage m (\(PCopy m' :: PCopy m) -> return m')
| 121
|
pUnwrap m = handleMessage m (\(PCopy m' :: PCopy m) -> return m')
| 65
| true
| true
| 0
| 10
| 40
| 67
| 34
| 33
| null | null |
acowley/PcdViewer
|
src/Camera.hs
|
bsd-3-clause
|
clampSpeed :: Float -> Camera -> Camera
clampSpeed maxSpeed = velocity %~ aux
where aux v = let q = quadrance v
in if q >= maxSpeed*maxSpeed
then maxSpeed *^ fmap (/ sqrt q) v
else v
| 239
|
clampSpeed :: Float -> Camera -> Camera
clampSpeed maxSpeed = velocity %~ aux
where aux v = let q = quadrance v
in if q >= maxSpeed*maxSpeed
then maxSpeed *^ fmap (/ sqrt q) v
else v
| 239
|
clampSpeed maxSpeed = velocity %~ aux
where aux v = let q = quadrance v
in if q >= maxSpeed*maxSpeed
then maxSpeed *^ fmap (/ sqrt q) v
else v
| 199
| false
| true
| 0
| 11
| 93
| 82
| 41
| 41
| null | null |
k0001/gtk2hs
|
tools/c2hs/chs/CHS.hs
|
gpl-3.0
|
dumpCHI :: String -> String -> CST s ()
dumpCHI fname contents =
do
(version, _, _) <- getId
writeFileCIO (fname ++ chisuffix) $
versionPrefix ++ version ++ "\n" ++ contents
-- extract major and minor number from a version string
--
| 265
|
dumpCHI :: String -> String -> CST s ()
dumpCHI fname contents =
do
(version, _, _) <- getId
writeFileCIO (fname ++ chisuffix) $
versionPrefix ++ version ++ "\n" ++ contents
-- extract major and minor number from a version string
--
| 265
|
dumpCHI fname contents =
do
(version, _, _) <- getId
writeFileCIO (fname ++ chisuffix) $
versionPrefix ++ version ++ "\n" ++ contents
-- extract major and minor number from a version string
--
| 210
| false
| true
| 0
| 13
| 74
| 79
| 40
| 39
| null | null |
ktvoelker/brick
|
programs/SuspendAndResumeDemo.hs
|
bsd-3-clause
|
theApp :: App St V.Event
theApp =
App { appDraw = drawUI
, appChooseCursor = neverShowCursor
, appHandleEvent = appEvent
, appStartEvent = return
, appAttrMap = const def
, appLiftVtyEvent = id
}
| 247
|
theApp :: App St V.Event
theApp =
App { appDraw = drawUI
, appChooseCursor = neverShowCursor
, appHandleEvent = appEvent
, appStartEvent = return
, appAttrMap = const def
, appLiftVtyEvent = id
}
| 247
|
theApp =
App { appDraw = drawUI
, appChooseCursor = neverShowCursor
, appHandleEvent = appEvent
, appStartEvent = return
, appAttrMap = const def
, appLiftVtyEvent = id
}
| 222
| false
| true
| 1
| 8
| 85
| 67
| 36
| 31
| null | null |
headprogrammingczar/cabal
|
cabal-install/Distribution/Client/Init.hs
|
bsd-3-clause
|
-- | Write a main file if it doesn't already exist.
writeMainHs :: InitFlags -> FilePath -> IO ()
writeMainHs flags mainPath = do
dir <- maybe getCurrentDirectory return (flagToMaybe $ packageDir flags)
let mainFullPath = dir </> mainPath
exists <- doesFileExist mainFullPath
unless exists $ do
message flags $ "Generating " ++ mainPath ++ "..."
writeFileSafe flags mainFullPath mainHs
-- | Default Main.hs file. Used when no Main.hs exists.
| 463
|
writeMainHs :: InitFlags -> FilePath -> IO ()
writeMainHs flags mainPath = do
dir <- maybe getCurrentDirectory return (flagToMaybe $ packageDir flags)
let mainFullPath = dir </> mainPath
exists <- doesFileExist mainFullPath
unless exists $ do
message flags $ "Generating " ++ mainPath ++ "..."
writeFileSafe flags mainFullPath mainHs
-- | Default Main.hs file. Used when no Main.hs exists.
| 411
|
writeMainHs flags mainPath = do
dir <- maybe getCurrentDirectory return (flagToMaybe $ packageDir flags)
let mainFullPath = dir </> mainPath
exists <- doesFileExist mainFullPath
unless exists $ do
message flags $ "Generating " ++ mainPath ++ "..."
writeFileSafe flags mainFullPath mainHs
-- | Default Main.hs file. Used when no Main.hs exists.
| 365
| true
| true
| 0
| 14
| 91
| 121
| 54
| 67
| null | null |
castaway/pandoc
|
src/Tests/Readers/LaTeX.hs
|
gpl-2.0
|
natbibCitations :: Test
natbibCitations = testGroup "natbib"
[ "citet" =: "\\citet{item1}"
=?> para (cite [baseCitation] (rt "\\citet{item1}"))
, "suffix" =: "\\citet[p.~30]{item1}"
=?> para
(cite [baseCitation{ citationSuffix = toList $ text ", p.\160\&30" }] (rt "\\citet[p.~30]{item1}"))
, "suffix long" =: "\\citet[p.~30, with suffix]{item1}"
=?> para (cite [baseCitation{ citationSuffix =
toList $ text ", p.\160\&30, with suffix" }] (rt "\\citet[p.~30, with suffix]{item1}"))
, "multiple" =: "\\citeauthor{item1} \\citetext{\\citeyear{item1}; \\citeyear[p.~30]{item2}; \\citealp[see also][]{item3}}"
=?> para (cite [baseCitation{ citationMode = AuthorInText }
,baseCitation{ citationMode = SuppressAuthor
, citationSuffix = [Str ",",Space,Str "p.\160\&30"]
, citationId = "item2" }
,baseCitation{ citationId = "item3"
, citationPrefix = [Str "see",Space,Str "also"]
, citationMode = NormalCitation }
] (rt "\\citetext{\\citeyear{item1}; \\citeyear[p.~30]{item2}; \\citealp[see also][]{item3}}"))
, "group" =: "\\citetext{\\citealp[see][p.~34--35]{item1}; \\citealp[also][chap. 3]{item3}}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationPrefix = [Str "see"]
, citationSuffix = [Str ",",Space,Str "p.\160\&34\8211\&35"] }
,baseCitation{ citationMode = NormalCitation
, citationId = "item3"
, citationPrefix = [Str "also"]
, citationSuffix = [Str ",",Space,Str "chap.",Space,Str "3"] }
] (rt "\\citetext{\\citealp[see][p.~34--35]{item1}; \\citealp[also][chap. 3]{item3}}"))
, "suffix and locator" =: "\\citep[pp.~33, 35--37, and nowhere else]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationSuffix = [Str ",",Space,Str "pp.\160\&33,",Space,Str "35\8211\&37,",Space,Str "and",Space,Str "nowhere",Space, Str "else"] }] (rt "\\citep[pp.~33, 35--37, and nowhere else]{item1}"))
, "suffix only" =: "\\citep[and nowhere else]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationSuffix = toList $ text ", and nowhere else" }] (rt "\\citep[and nowhere else]{item1}"))
, "no author" =: "\\citeyearpar{item1}, and now Doe with a locator \\citeyearpar[p.~44]{item2}"
=?> para (cite [baseCitation{ citationMode = SuppressAuthor }] (rt "\\citeyearpar{item1}") <>
text ", and now Doe with a locator " <>
cite [baseCitation{ citationMode = SuppressAuthor
, citationSuffix = [Str ",",Space,Str "p.\160\&44"]
, citationId = "item2" }] (rt "\\citeyearpar[p.~44]{item2}"))
, "markup" =: "\\citep[\\emph{see}][p. \\textbf{32}]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationPrefix = [Emph [Str "see"]]
, citationSuffix = [Str ",",Space,Str "p.",Space,
Strong [Str "32"]] }] (rt "\\citep[\\emph{see}][p. \\textbf{32}]{item1}"))
]
| 3,447
|
natbibCitations :: Test
natbibCitations = testGroup "natbib"
[ "citet" =: "\\citet{item1}"
=?> para (cite [baseCitation] (rt "\\citet{item1}"))
, "suffix" =: "\\citet[p.~30]{item1}"
=?> para
(cite [baseCitation{ citationSuffix = toList $ text ", p.\160\&30" }] (rt "\\citet[p.~30]{item1}"))
, "suffix long" =: "\\citet[p.~30, with suffix]{item1}"
=?> para (cite [baseCitation{ citationSuffix =
toList $ text ", p.\160\&30, with suffix" }] (rt "\\citet[p.~30, with suffix]{item1}"))
, "multiple" =: "\\citeauthor{item1} \\citetext{\\citeyear{item1}; \\citeyear[p.~30]{item2}; \\citealp[see also][]{item3}}"
=?> para (cite [baseCitation{ citationMode = AuthorInText }
,baseCitation{ citationMode = SuppressAuthor
, citationSuffix = [Str ",",Space,Str "p.\160\&30"]
, citationId = "item2" }
,baseCitation{ citationId = "item3"
, citationPrefix = [Str "see",Space,Str "also"]
, citationMode = NormalCitation }
] (rt "\\citetext{\\citeyear{item1}; \\citeyear[p.~30]{item2}; \\citealp[see also][]{item3}}"))
, "group" =: "\\citetext{\\citealp[see][p.~34--35]{item1}; \\citealp[also][chap. 3]{item3}}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationPrefix = [Str "see"]
, citationSuffix = [Str ",",Space,Str "p.\160\&34\8211\&35"] }
,baseCitation{ citationMode = NormalCitation
, citationId = "item3"
, citationPrefix = [Str "also"]
, citationSuffix = [Str ",",Space,Str "chap.",Space,Str "3"] }
] (rt "\\citetext{\\citealp[see][p.~34--35]{item1}; \\citealp[also][chap. 3]{item3}}"))
, "suffix and locator" =: "\\citep[pp.~33, 35--37, and nowhere else]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationSuffix = [Str ",",Space,Str "pp.\160\&33,",Space,Str "35\8211\&37,",Space,Str "and",Space,Str "nowhere",Space, Str "else"] }] (rt "\\citep[pp.~33, 35--37, and nowhere else]{item1}"))
, "suffix only" =: "\\citep[and nowhere else]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationSuffix = toList $ text ", and nowhere else" }] (rt "\\citep[and nowhere else]{item1}"))
, "no author" =: "\\citeyearpar{item1}, and now Doe with a locator \\citeyearpar[p.~44]{item2}"
=?> para (cite [baseCitation{ citationMode = SuppressAuthor }] (rt "\\citeyearpar{item1}") <>
text ", and now Doe with a locator " <>
cite [baseCitation{ citationMode = SuppressAuthor
, citationSuffix = [Str ",",Space,Str "p.\160\&44"]
, citationId = "item2" }] (rt "\\citeyearpar[p.~44]{item2}"))
, "markup" =: "\\citep[\\emph{see}][p. \\textbf{32}]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationPrefix = [Emph [Str "see"]]
, citationSuffix = [Str ",",Space,Str "p.",Space,
Strong [Str "32"]] }] (rt "\\citep[\\emph{see}][p. \\textbf{32}]{item1}"))
]
| 3,447
|
natbibCitations = testGroup "natbib"
[ "citet" =: "\\citet{item1}"
=?> para (cite [baseCitation] (rt "\\citet{item1}"))
, "suffix" =: "\\citet[p.~30]{item1}"
=?> para
(cite [baseCitation{ citationSuffix = toList $ text ", p.\160\&30" }] (rt "\\citet[p.~30]{item1}"))
, "suffix long" =: "\\citet[p.~30, with suffix]{item1}"
=?> para (cite [baseCitation{ citationSuffix =
toList $ text ", p.\160\&30, with suffix" }] (rt "\\citet[p.~30, with suffix]{item1}"))
, "multiple" =: "\\citeauthor{item1} \\citetext{\\citeyear{item1}; \\citeyear[p.~30]{item2}; \\citealp[see also][]{item3}}"
=?> para (cite [baseCitation{ citationMode = AuthorInText }
,baseCitation{ citationMode = SuppressAuthor
, citationSuffix = [Str ",",Space,Str "p.\160\&30"]
, citationId = "item2" }
,baseCitation{ citationId = "item3"
, citationPrefix = [Str "see",Space,Str "also"]
, citationMode = NormalCitation }
] (rt "\\citetext{\\citeyear{item1}; \\citeyear[p.~30]{item2}; \\citealp[see also][]{item3}}"))
, "group" =: "\\citetext{\\citealp[see][p.~34--35]{item1}; \\citealp[also][chap. 3]{item3}}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationPrefix = [Str "see"]
, citationSuffix = [Str ",",Space,Str "p.\160\&34\8211\&35"] }
,baseCitation{ citationMode = NormalCitation
, citationId = "item3"
, citationPrefix = [Str "also"]
, citationSuffix = [Str ",",Space,Str "chap.",Space,Str "3"] }
] (rt "\\citetext{\\citealp[see][p.~34--35]{item1}; \\citealp[also][chap. 3]{item3}}"))
, "suffix and locator" =: "\\citep[pp.~33, 35--37, and nowhere else]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationSuffix = [Str ",",Space,Str "pp.\160\&33,",Space,Str "35\8211\&37,",Space,Str "and",Space,Str "nowhere",Space, Str "else"] }] (rt "\\citep[pp.~33, 35--37, and nowhere else]{item1}"))
, "suffix only" =: "\\citep[and nowhere else]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationSuffix = toList $ text ", and nowhere else" }] (rt "\\citep[and nowhere else]{item1}"))
, "no author" =: "\\citeyearpar{item1}, and now Doe with a locator \\citeyearpar[p.~44]{item2}"
=?> para (cite [baseCitation{ citationMode = SuppressAuthor }] (rt "\\citeyearpar{item1}") <>
text ", and now Doe with a locator " <>
cite [baseCitation{ citationMode = SuppressAuthor
, citationSuffix = [Str ",",Space,Str "p.\160\&44"]
, citationId = "item2" }] (rt "\\citeyearpar[p.~44]{item2}"))
, "markup" =: "\\citep[\\emph{see}][p. \\textbf{32}]{item1}"
=?> para (cite [baseCitation{ citationMode = NormalCitation
, citationPrefix = [Emph [Str "see"]]
, citationSuffix = [Str ",",Space,Str "p.",Space,
Strong [Str "32"]] }] (rt "\\citep[\\emph{see}][p. \\textbf{32}]{item1}"))
]
| 3,423
| false
| true
| 0
| 16
| 1,035
| 726
| 400
| 326
| null | null |
brendanhay/gogol
|
gogol-factchecktools/gen/Network/Google/Resource/FactCheckTools/Claims/Search.hs
|
mpl-2.0
|
-- | V1 error format.
csXgafv :: Lens' ClaimsSearch (Maybe Xgafv)
csXgafv = lens _csXgafv (\ s a -> s{_csXgafv = a})
| 116
|
csXgafv :: Lens' ClaimsSearch (Maybe Xgafv)
csXgafv = lens _csXgafv (\ s a -> s{_csXgafv = a})
| 94
|
csXgafv = lens _csXgafv (\ s a -> s{_csXgafv = a})
| 50
| true
| true
| 2
| 9
| 21
| 55
| 25
| 30
| null | null |
mydaum/cabal
|
cabal-install/Distribution/Client/Setup.hs
|
bsd-3-clause
|
defaultInitFlags :: IT.InitFlags
defaultInitFlags = emptyInitFlags { IT.initVerbosity = toFlag normal }
| 104
|
defaultInitFlags :: IT.InitFlags
defaultInitFlags = emptyInitFlags { IT.initVerbosity = toFlag normal }
| 104
|
defaultInitFlags = emptyInitFlags { IT.initVerbosity = toFlag normal }
| 71
| false
| true
| 0
| 7
| 12
| 26
| 14
| 12
| null | null |
SnipyJulmy/mcs_notes_and_resume
|
fun-and-log-prog/exercices/s05/ex1.hs
|
lgpl-3.0
|
deleteAll,deleteAll' :: Eq a => a -> [a] -> [a]
deleteAll elt xs = inner (reverse' xs) [] where
inner [] acc = acc
inner (x:xs) acc
| x == elt = inner xs acc
| otherwise = inner xs $! (x:acc)
| 203
|
deleteAll,deleteAll' :: Eq a => a -> [a] -> [a]
deleteAll elt xs = inner (reverse' xs) [] where
inner [] acc = acc
inner (x:xs) acc
| x == elt = inner xs acc
| otherwise = inner xs $! (x:acc)
| 203
|
deleteAll elt xs = inner (reverse' xs) [] where
inner [] acc = acc
inner (x:xs) acc
| x == elt = inner xs acc
| otherwise = inner xs $! (x:acc)
| 155
| false
| true
| 0
| 10
| 53
| 121
| 60
| 61
| null | null |
lukexi/ghc-7.8-arm64
|
compiler/nativeGen/RegAlloc/Liveness.hs
|
bsd-3-clause
|
stripLiveBlock
:: Instruction instr
=> DynFlags
-> LiveBasicBlock instr
-> NatBasicBlock instr
stripLiveBlock dflags (BasicBlock i lis)
= BasicBlock i instrs'
where (instrs', _)
= runState (spillNat [] lis) 0
spillNat acc []
= return (reverse acc)
spillNat acc (LiveInstr (SPILL reg slot) _ : instrs)
= do delta <- get
spillNat (mkSpillInstr dflags reg delta slot : acc) instrs
spillNat acc (LiveInstr (RELOAD slot reg) _ : instrs)
= do delta <- get
spillNat (mkLoadInstr dflags reg delta slot : acc) instrs
spillNat acc (LiveInstr (Instr instr) _ : instrs)
| Just i <- takeDeltaInstr instr
= do put i
spillNat acc instrs
spillNat acc (LiveInstr (Instr instr) _ : instrs)
= spillNat (instr : acc) instrs
-- | Erase Delta instructions.
| 961
|
stripLiveBlock
:: Instruction instr
=> DynFlags
-> LiveBasicBlock instr
-> NatBasicBlock instr
stripLiveBlock dflags (BasicBlock i lis)
= BasicBlock i instrs'
where (instrs', _)
= runState (spillNat [] lis) 0
spillNat acc []
= return (reverse acc)
spillNat acc (LiveInstr (SPILL reg slot) _ : instrs)
= do delta <- get
spillNat (mkSpillInstr dflags reg delta slot : acc) instrs
spillNat acc (LiveInstr (RELOAD slot reg) _ : instrs)
= do delta <- get
spillNat (mkLoadInstr dflags reg delta slot : acc) instrs
spillNat acc (LiveInstr (Instr instr) _ : instrs)
| Just i <- takeDeltaInstr instr
= do put i
spillNat acc instrs
spillNat acc (LiveInstr (Instr instr) _ : instrs)
= spillNat (instr : acc) instrs
-- | Erase Delta instructions.
| 960
|
stripLiveBlock dflags (BasicBlock i lis)
= BasicBlock i instrs'
where (instrs', _)
= runState (spillNat [] lis) 0
spillNat acc []
= return (reverse acc)
spillNat acc (LiveInstr (SPILL reg slot) _ : instrs)
= do delta <- get
spillNat (mkSpillInstr dflags reg delta slot : acc) instrs
spillNat acc (LiveInstr (RELOAD slot reg) _ : instrs)
= do delta <- get
spillNat (mkLoadInstr dflags reg delta slot : acc) instrs
spillNat acc (LiveInstr (Instr instr) _ : instrs)
| Just i <- takeDeltaInstr instr
= do put i
spillNat acc instrs
spillNat acc (LiveInstr (Instr instr) _ : instrs)
= spillNat (instr : acc) instrs
-- | Erase Delta instructions.
| 833
| false
| true
| 0
| 11
| 349
| 326
| 153
| 173
| null | null |
isomorphism/hackage2
|
Distribution/Server/Framework/BackupDump.hs
|
bsd-3-clause
|
testBlobsExist :: BlobStorage -> [Blob.BlobId] -> IO [String]
testBlobsExist store blobs
= liftM catMaybes $ forM blobs $ \blob -> do
(Blob.fetch store blob >> return Nothing) `catch`
\e -> return $ Just $ "Could not open blob " ++ show blob ++ ": " ++ show (e :: IOError)
| 290
|
testBlobsExist :: BlobStorage -> [Blob.BlobId] -> IO [String]
testBlobsExist store blobs
= liftM catMaybes $ forM blobs $ \blob -> do
(Blob.fetch store blob >> return Nothing) `catch`
\e -> return $ Just $ "Could not open blob " ++ show blob ++ ": " ++ show (e :: IOError)
| 290
|
testBlobsExist store blobs
= liftM catMaybes $ forM blobs $ \blob -> do
(Blob.fetch store blob >> return Nothing) `catch`
\e -> return $ Just $ "Could not open blob " ++ show blob ++ ": " ++ show (e :: IOError)
| 228
| false
| true
| 2
| 16
| 67
| 123
| 60
| 63
| null | null |
alexandersgreen/alex-haskell
|
MonteCarloPi/MonteCarloPi.hs
|
apache-2.0
|
draw :: Strings -> String
draw [] = []
| 38
|
draw :: Strings -> String
draw [] = []
| 38
|
draw [] = []
| 12
| false
| true
| 0
| 8
| 8
| 28
| 12
| 16
| null | null |
li-zhirui/EoplLangs
|
src/ImplicitRefsCont/Parser.hs
|
bsd-3-clause
|
minus = symbol "-"
| 18
|
minus = symbol "-"
| 18
|
minus = symbol "-"
| 18
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
kmcallister/shqq
|
examples/dupe.hs
|
bsd-3-clause
|
-- We want to collect data in parallel, but the OS will complain if we
-- have too many open files. We limit each pass to have at most 256
-- tests in progress at once.
inParallel :: (a -> IO b) -> [a] -> IO [b]
inParallel f xs = do p <- pool 256; parMapIO (p . f) xs
| 268
|
inParallel :: (a -> IO b) -> [a] -> IO [b]
inParallel f xs = do p <- pool 256; parMapIO (p . f) xs
| 98
|
inParallel f xs = do p <- pool 256; parMapIO (p . f) xs
| 55
| true
| true
| 0
| 10
| 61
| 77
| 38
| 39
| null | null |
fmthoma/ghc
|
compiler/rename/RnBinds.hs
|
bsd-3-clause
|
rnIPBinds :: HsIPBinds RdrName -> RnM (HsIPBinds Name, FreeVars)
rnIPBinds (IPBinds ip_binds _no_dict_binds) = do
(ip_binds', fvs_s) <- mapAndUnzipM (wrapLocFstM rnIPBind) ip_binds
return (IPBinds ip_binds' emptyTcEvBinds, plusFVs fvs_s)
| 245
|
rnIPBinds :: HsIPBinds RdrName -> RnM (HsIPBinds Name, FreeVars)
rnIPBinds (IPBinds ip_binds _no_dict_binds) = do
(ip_binds', fvs_s) <- mapAndUnzipM (wrapLocFstM rnIPBind) ip_binds
return (IPBinds ip_binds' emptyTcEvBinds, plusFVs fvs_s)
| 245
|
rnIPBinds (IPBinds ip_binds _no_dict_binds) = do
(ip_binds', fvs_s) <- mapAndUnzipM (wrapLocFstM rnIPBind) ip_binds
return (IPBinds ip_binds' emptyTcEvBinds, plusFVs fvs_s)
| 180
| false
| true
| 0
| 10
| 35
| 89
| 42
| 47
| null | null |
wenkokke/sf
|
hs/Hakyll/Web/Template/Context/Metadata.hs
|
mit
|
toString :: MonadFail m => Value -> m String
toString (String s) = return (T.unpack s)
| 86
|
toString :: MonadFail m => Value -> m String
toString (String s) = return (T.unpack s)
| 86
|
toString (String s) = return (T.unpack s)
| 41
| false
| true
| 0
| 10
| 15
| 50
| 22
| 28
| null | null |
plow-technologies/persistent
|
persistent-test/src/Init.hs
|
mit
|
generateKey :: IO (BackendKey Context)
generateKey = MongoKey `liftM` MongoDB.genObjectId
| 89
|
generateKey :: IO (BackendKey Context)
generateKey = MongoKey `liftM` MongoDB.genObjectId
| 89
|
generateKey = MongoKey `liftM` MongoDB.genObjectId
| 50
| false
| true
| 0
| 7
| 9
| 28
| 15
| 13
| null | null |
JacquesCarette/literate-scientific-software
|
code/drasil-example/Drasil/GlassBR/Assumptions.hs
|
bsd-2-clause
|
assumpBC = cic "assumpBC" boundaryConditionsDesc "boundaryConditions" Doc.assumpDom
| 107
|
assumpBC = cic "assumpBC" boundaryConditionsDesc "boundaryConditions" Doc.assumpDom
| 107
|
assumpBC = cic "assumpBC" boundaryConditionsDesc "boundaryConditions" Doc.assumpDom
| 107
| false
| false
| 0
| 6
| 30
| 17
| 8
| 9
| null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.