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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jozefg/c_of_scheme | src/RewriteToplevels.hs | mit | rewriteDec _ = failRW "rewriteDec" "found unexpected value, not a Dec!" | 93 | rewriteDec _ = failRW "rewriteDec" "found unexpected value, not a Dec!" | 93 | rewriteDec _ = failRW "rewriteDec" "found unexpected value, not a Dec!" | 93 | false | false | 0 | 5 | 32 | 14 | 6 | 8 | null | null |
bos/math-functions | Numeric/Series.hs | bsd-2-clause | -- | Convert series to infinite list
sequenceToList :: Sequence a -> [a]
sequenceToList (Sequence s f) = unfoldr (Just . f) s | 125 | sequenceToList :: Sequence a -> [a]
sequenceToList (Sequence s f) = unfoldr (Just . f) s | 88 | sequenceToList (Sequence s f) = unfoldr (Just . f) s | 52 | true | true | 0 | 7 | 22 | 45 | 23 | 22 | null | null |
rightfold/snek | src/SNEK/Type.hs | bsd-3-clause | prettyT (VarT i k) = "[__" ++ show i ++ " " ++ prettyK k ++ "]" | 63 | prettyT (VarT i k) = "[__" ++ show i ++ " " ++ prettyK k ++ "]" | 63 | prettyT (VarT i k) = "[__" ++ show i ++ " " ++ prettyK k ++ "]" | 63 | false | false | 0 | 9 | 16 | 39 | 18 | 21 | null | null |
markus1189/xmonad-contrib-710 | XMonad/Util/NamedActions.hs | bsd-3-clause | addDescrKeys :: (HasName b1, HasName b) =>
((KeyMask, KeySym),[((KeyMask, KeySym), NamedAction)] -> b)
-> (XConfig Layout -> [((KeyMask, KeySym), b1)])
-> XConfig l
-> XConfig l
addDescrKeys k ks = addDescrKeys' k (\l -> defaultKeysDescr l ^++^ ks l) | 266 | addDescrKeys :: (HasName b1, HasName b) =>
((KeyMask, KeySym),[((KeyMask, KeySym), NamedAction)] -> b)
-> (XConfig Layout -> [((KeyMask, KeySym), b1)])
-> XConfig l
-> XConfig l
addDescrKeys k ks = addDescrKeys' k (\l -> defaultKeysDescr l ^++^ ks l) | 266 | addDescrKeys k ks = addDescrKeys' k (\l -> defaultKeysDescr l ^++^ ks l) | 72 | false | true | 0 | 12 | 54 | 128 | 70 | 58 | null | null |
mkopta/fika-ha | src/Reducer.hs | mit | applyImportOptions ((Drop (Nonterminal e)):ios) sts =
if isThereNT (Nonterminal e) sts
then applyImportOptions ios (dropNT (Nonterminal e) sts)
else error ("Cannot rename nonterminal " ++ e ++ ". Not found.") | 218 | applyImportOptions ((Drop (Nonterminal e)):ios) sts =
if isThereNT (Nonterminal e) sts
then applyImportOptions ios (dropNT (Nonterminal e) sts)
else error ("Cannot rename nonterminal " ++ e ++ ". Not found.") | 218 | applyImportOptions ((Drop (Nonterminal e)):ios) sts =
if isThereNT (Nonterminal e) sts
then applyImportOptions ios (dropNT (Nonterminal e) sts)
else error ("Cannot rename nonterminal " ++ e ++ ". Not found.") | 218 | false | false | 0 | 11 | 39 | 82 | 41 | 41 | null | null |
wellposed/hblas | src/Numerical/HBLAS/BLAS/Level2.hs | bsd-3-clause | dsymv :: PrimMonad m => SymvFun Double orient (PrimState m) m
dsymv = symvAbstraction "dsymv" cblas_dsymv_safe cblas_dsymv_unsafe (\x f -> f x) | 143 | dsymv :: PrimMonad m => SymvFun Double orient (PrimState m) m
dsymv = symvAbstraction "dsymv" cblas_dsymv_safe cblas_dsymv_unsafe (\x f -> f x) | 143 | dsymv = symvAbstraction "dsymv" cblas_dsymv_safe cblas_dsymv_unsafe (\x f -> f x) | 81 | false | true | 0 | 9 | 21 | 60 | 28 | 32 | null | null |
ducis/haAni | hs/common/Graphics/Rendering/OpenGL/GL/Colors.hs | gpl-2.0 | setMaterialColorIndexes ::
Face -> (Index1 GLint, Index1 GLint, Index1 GLint) -> IO ()
setMaterialColorIndexes face (Index1 a, Index1 d, Index1 s) =
withArray [a, d, s] $
glMaterialiv (marshalFace face)
(marshalMaterialParameter MaterialColorIndexes) | 281 | setMaterialColorIndexes ::
Face -> (Index1 GLint, Index1 GLint, Index1 GLint) -> IO ()
setMaterialColorIndexes face (Index1 a, Index1 d, Index1 s) =
withArray [a, d, s] $
glMaterialiv (marshalFace face)
(marshalMaterialParameter MaterialColorIndexes) | 281 | setMaterialColorIndexes face (Index1 a, Index1 d, Index1 s) =
withArray [a, d, s] $
glMaterialiv (marshalFace face)
(marshalMaterialParameter MaterialColorIndexes) | 191 | false | true | 0 | 8 | 62 | 98 | 49 | 49 | null | null |
ndmitchell/hlint | src/Hint/NewType.hs | bsd-3-clause | newtypeHintDecl :: LHsDecl GhcPs -> [Idea]
newtypeHintDecl old
| Just WarnNewtype{newDecl, insideType} <- singleSimpleField old
= [(suggestN "Use newtype instead of data" (reLoc old) (reLoc newDecl))
{ideaNote = [DecreasesLaziness | warnBang insideType]}] | 275 | newtypeHintDecl :: LHsDecl GhcPs -> [Idea]
newtypeHintDecl old
| Just WarnNewtype{newDecl, insideType} <- singleSimpleField old
= [(suggestN "Use newtype instead of data" (reLoc old) (reLoc newDecl))
{ideaNote = [DecreasesLaziness | warnBang insideType]}] | 275 | newtypeHintDecl old
| Just WarnNewtype{newDecl, insideType} <- singleSimpleField old
= [(suggestN "Use newtype instead of data" (reLoc old) (reLoc newDecl))
{ideaNote = [DecreasesLaziness | warnBang insideType]}] | 232 | false | true | 0 | 11 | 51 | 92 | 46 | 46 | null | null |
Lysxia/breadcrumbs | Data/Breadcrumbs/Flips.hs | mit | push a (Buffer n 0 (a' : ain) [] arev []) =
Buffer n 0 [a] ain [a'] $! tail' arev | 83 | push a (Buffer n 0 (a' : ain) [] arev []) =
Buffer n 0 [a] ain [a'] $! tail' arev | 83 | push a (Buffer n 0 (a' : ain) [] arev []) =
Buffer n 0 [a] ain [a'] $! tail' arev | 83 | false | false | 0 | 8 | 22 | 64 | 31 | 33 | null | null |
alexander-at-github/eta | compiler/ETA/Utils/Outputable.hs | bsd-3-clause | codeStyle _ = False | 33 | codeStyle _ = False | 33 | codeStyle _ = False | 33 | false | false | 0 | 5 | 17 | 9 | 4 | 5 | null | null |
jimsnow/glome | GlomeVec/Data/Glome/Vec.hs | gpl-2.0 | -- | Force a value to be within a range. Usage: clamp min x max
clamp :: Flt -> Flt -> Flt -> Flt
clamp !min !x !max
| x < min = min
| x > max = max
| otherwise = x | 168 | clamp :: Flt -> Flt -> Flt -> Flt
clamp !min !x !max
| x < min = min
| x > max = max
| otherwise = x | 103 | clamp !min !x !max
| x < min = min
| x > max = max
| otherwise = x | 69 | true | true | 2 | 8 | 47 | 65 | 30 | 35 | null | null |
bjornbm/astro | test/Astro/Orbit/InterpolateSpec.hs | bsd-3-clause | spec_linearPolate = describe "linearPolate (x0,y0) (x1,y1) x" $ do
it "returns y0 when interpolating at x0."
(property $ \(x0::Time D, y0::Length D) (x1,y1) -> x0 /= x1
==> linearPolate (x0,y0) (x1,y1) x0 ~== y0)
it "returns y1 when interpolating at x1."
(property $ \(x0::Time D, y0::Length D) (x1,y... | 706 | spec_linearPolate = describe "linearPolate (x0,y0) (x1,y1) x" $ do
it "returns y0 when interpolating at x0."
(property $ \(x0::Time D, y0::Length D) (x1,y1) -> x0 /= x1
==> linearPolate (x0,y0) (x1,y1) x0 ~== y0)
it "returns y1 when interpolating at x1."
(property $ \(x0::Time D, y0::Length D) (x1,y... | 706 | spec_linearPolate = describe "linearPolate (x0,y0) (x1,y1) x" $ do
it "returns y0 when interpolating at x0."
(property $ \(x0::Time D, y0::Length D) (x1,y1) -> x0 /= x1
==> linearPolate (x0,y0) (x1,y1) x0 ~== y0)
it "returns y1 when interpolating at x1."
(property $ \(x0::Time D, y0::Length D) (x1,y... | 706 | false | false | 1 | 18 | 192 | 356 | 183 | 173 | null | null |
griba2001/tree23-map-set | test/TestSortedSet.hs | bsd-3-clause | propMaximum :: [Int] -> Bool
propMaximum [] = True | 50 | propMaximum :: [Int] -> Bool
propMaximum [] = True | 50 | propMaximum [] = True | 21 | false | true | 0 | 6 | 8 | 23 | 12 | 11 | null | null |
fonzerelly/csv-viewer | csv-viewer.hs | mit | main :: IO ()
main = do
params <- getArgs
let csvFile = head params
contents <- readFile csvFile
dispatchUserInput (transformTable (splitIntoRows contents)) (0, 0) | 180 | main :: IO ()
main = do
params <- getArgs
let csvFile = head params
contents <- readFile csvFile
dispatchUserInput (transformTable (splitIntoRows contents)) (0, 0) | 179 | main = do
params <- getArgs
let csvFile = head params
contents <- readFile csvFile
dispatchUserInput (transformTable (splitIntoRows contents)) (0, 0) | 165 | false | true | 0 | 12 | 41 | 77 | 34 | 43 | null | null |
li-zhirui/EoplLangs | src/ImplicitRefs/Parser.hs | bsd-3-clause | unaryOpExpr :: Parser Expression
unaryOpExpr = do
op <- unaryOp
expr <- parens expression
return $ UnaryOpExpr op expr
-- | IfExpr ::= if Expression then Expression | 171 | unaryOpExpr :: Parser Expression
unaryOpExpr = do
op <- unaryOp
expr <- parens expression
return $ UnaryOpExpr op expr
-- | IfExpr ::= if Expression then Expression | 171 | unaryOpExpr = do
op <- unaryOp
expr <- parens expression
return $ UnaryOpExpr op expr
-- | IfExpr ::= if Expression then Expression | 138 | false | true | 0 | 8 | 33 | 44 | 20 | 24 | null | null |
grpc/grpc-haskell | src/Network/Grpc/CompletionQueue.hs | apache-2.0 | interruptibleWaitEvent :: EventDesc -> IO Event
interruptibleWaitEvent (EventDesc mvar _) = readMVar mvar | 105 | interruptibleWaitEvent :: EventDesc -> IO Event
interruptibleWaitEvent (EventDesc mvar _) = readMVar mvar | 105 | interruptibleWaitEvent (EventDesc mvar _) = readMVar mvar | 57 | false | true | 0 | 7 | 12 | 32 | 15 | 17 | null | null |
deontologician/orbRPG | Game/OrbRPG/Combinations.hs | gpl-3.0 | ll :: [Orb]
ll = xpand' 10 (minBound :: Letter) | 47 | ll :: [Orb]
ll = xpand' 10 (minBound :: Letter) | 47 | ll = xpand' 10 (minBound :: Letter) | 35 | false | true | 0 | 7 | 9 | 31 | 15 | 16 | null | null |
input-output-hk/pos-haskell-prototype | networking/src/Network/Broadcast/OutboundQueue/ConcurrentMultiQueue.hs | mit | test2 :: IO ()
test2 = do
q :: MultiQueue Bool Char <- new
enqueue q [True] 'A'
assertEq [(True,"A")] =<< snapshot q
enqueue q [False] 'X'
assertEq [(False,"X"),(True,"A")] =<< snapshot q
enqueue q [True, False] 'O'
assertEq [(False,"XO"),(True,"AO")] =<< snapshot q
... | 865 | test2 :: IO ()
test2 = do
q :: MultiQueue Bool Char <- new
enqueue q [True] 'A'
assertEq [(True,"A")] =<< snapshot q
enqueue q [False] 'X'
assertEq [(False,"X"),(True,"A")] =<< snapshot q
enqueue q [True, False] 'O'
assertEq [(False,"XO"),(True,"AO")] =<< snapshot q
... | 865 | test2 = do
q :: MultiQueue Bool Char <- new
enqueue q [True] 'A'
assertEq [(True,"A")] =<< snapshot q
enqueue q [False] 'X'
assertEq [(False,"X"),(True,"A")] =<< snapshot q
enqueue q [True, False] 'O'
assertEq [(False,"XO"),(True,"AO")] =<< snapshot q
enqueue q [Tr... | 850 | false | true | 0 | 10 | 257 | 414 | 213 | 201 | null | null |
nukisman/elm-format-short | src/Flags.hs | bsd-3-clause | linesToDoc :: [String] -> PP.Doc
linesToDoc lineList =
PP.vcat (map PP.text lineList) | 89 | linesToDoc :: [String] -> PP.Doc
linesToDoc lineList =
PP.vcat (map PP.text lineList) | 89 | linesToDoc lineList =
PP.vcat (map PP.text lineList) | 56 | false | true | 0 | 8 | 15 | 38 | 19 | 19 | null | null |
sol/pandoc | src/Text/Pandoc/Writers/Textile.hs | gpl-2.0 | isSimpleListItem :: [Block] -> Bool
isSimpleListItem [] = True | 63 | isSimpleListItem :: [Block] -> Bool
isSimpleListItem [] = True | 63 | isSimpleListItem [] = True | 27 | false | true | 0 | 8 | 9 | 29 | 13 | 16 | null | null |
GRACeFUL-project/GRACe | examples/CLD.hs | bsd-3-clause | (-->) :: Port Sign -> Port Sign -> GCM ()
p --> q = do
(p0, q0) <- mArrow
link p p0
link q q0 | 96 | (-->) :: Port Sign -> Port Sign -> GCM ()
p --> q = do
(p0, q0) <- mArrow
link p p0
link q q0 | 96 | p --> q = do
(p0, q0) <- mArrow
link p p0
link q q0 | 54 | false | true | 0 | 10 | 27 | 67 | 31 | 36 | null | null |
kaizhang/bioinformatics-toolkit | bioinformatics-toolkit/src/Bio/Motif/Search.hs | mit | optimalScoresSuffix :: Bkgd -> PWM -> U.Vector Double
optimalScoresSuffix (BG (a, c, g, t)) (PWM _ pwm) =
U.fromList . tail . map (last sigma -) $ sigma
where
sigma = scanl f 0 $ M.toRows pwm
f !acc xs = let (i, s) = U.maximumBy (comparing snd) .
U.zip (U.fromList ([0..3] :... | 553 | optimalScoresSuffix :: Bkgd -> PWM -> U.Vector Double
optimalScoresSuffix (BG (a, c, g, t)) (PWM _ pwm) =
U.fromList . tail . map (last sigma -) $ sigma
where
sigma = scanl f 0 $ M.toRows pwm
f !acc xs = let (i, s) = U.maximumBy (comparing snd) .
U.zip (U.fromList ([0..3] :... | 553 | optimalScoresSuffix (BG (a, c, g, t)) (PWM _ pwm) =
U.fromList . tail . map (last sigma -) $ sigma
where
sigma = scanl f 0 $ M.toRows pwm
f !acc xs = let (i, s) = U.maximumBy (comparing snd) .
U.zip (U.fromList ([0..3] :: [Int])) $ xs
in acc + case i of
... | 499 | false | true | 0 | 15 | 255 | 246 | 124 | 122 | null | null |
databrary/databrary | src/Model/Tag.hs | agpl-3.0 | emptyTagCoverage :: Tag -> Container -> TagCoverage
emptyTagCoverage t c = TagCoverage (TagWeight t 0) c [] [] [] | 113 | emptyTagCoverage :: Tag -> Container -> TagCoverage
emptyTagCoverage t c = TagCoverage (TagWeight t 0) c [] [] [] | 113 | emptyTagCoverage t c = TagCoverage (TagWeight t 0) c [] [] [] | 61 | false | true | 0 | 8 | 18 | 54 | 25 | 29 | null | null |
obask/lispify | src/haskell/Main.hs | mit | userFunction' env [] name = Nothing | 35 | userFunction' env [] name = Nothing | 35 | userFunction' env [] name = Nothing | 35 | false | false | 1 | 5 | 5 | 21 | 7 | 14 | null | null |
tdammers/templar | src/Text/Pandoc/Readers/CustomCreole.hs | bsd-3-clause | horizontalLine = try (string "----") *> (eol <|> eof) *> return HorizontalRule | 78 | horizontalLine = try (string "----") *> (eol <|> eof) *> return HorizontalRule | 78 | horizontalLine = try (string "----") *> (eol <|> eof) *> return HorizontalRule | 78 | false | false | 5 | 6 | 11 | 41 | 18 | 23 | null | null |
solatis/dissent | src/Dissent/Crypto/Rsa.hs | mit | encrypt :: PublicKey -> BS.ByteString -> IO Encrypted
encrypt publicKey input = withOpenSSL $
-- AES-CBC requires us to pad the input message if the messages are/can be
-- of variable length.
let pad :: BS.ByteString -> BS.ByteString
pad = Pad.padPKCS5 paddingBytes
in do
cipher <- getCipher
... | 476 | encrypt :: PublicKey -> BS.ByteString -> IO Encrypted
encrypt publicKey input = withOpenSSL $
-- AES-CBC requires us to pad the input message if the messages are/can be
-- of variable length.
let pad :: BS.ByteString -> BS.ByteString
pad = Pad.padPKCS5 paddingBytes
in do
cipher <- getCipher
... | 476 | encrypt publicKey input = withOpenSSL $
-- AES-CBC requires us to pad the input message if the messages are/can be
-- of variable length.
let pad :: BS.ByteString -> BS.ByteString
pad = Pad.padPKCS5 paddingBytes
in do
cipher <- getCipher
(encrypted, [encKey], inputVector) <- Seal.sealBS ... | 422 | false | true | 0 | 14 | 98 | 129 | 64 | 65 | null | null |
dmwit/wyvern | Main.hs | bsd-3-clause | collectionDiff _ _ = Wait "More than one game in the collection" | 64 | collectionDiff _ _ = Wait "More than one game in the collection" | 64 | collectionDiff _ _ = Wait "More than one game in the collection" | 64 | false | false | 0 | 5 | 11 | 14 | 6 | 8 | null | null |
ComputationWithBoundedResources/tct-trs | src/Tct/Trs/Processor/Matrix/MI.hs | bsd-3-clause | gThreeConstraints :: [Q] -> [Matrix IExpr] -> GThree -> SmtM ()
gThreeConstraints qs mxs gThree = Smt.assert $ Smt.bigAnd [ f i j k x y z | i <- qs, j <- qs, k <- qs, x <- qs, y <- qs, z <- qs ] where
f i j k x y z = gThree i j k x y z .<=> Smt.bany (g i j k x y z) mxs
g i j k x y z m = (Mat.entry i x m .>= SR.on... | 425 | gThreeConstraints :: [Q] -> [Matrix IExpr] -> GThree -> SmtM ()
gThreeConstraints qs mxs gThree = Smt.assert $ Smt.bigAnd [ f i j k x y z | i <- qs, j <- qs, k <- qs, x <- qs, y <- qs, z <- qs ] where
f i j k x y z = gThree i j k x y z .<=> Smt.bany (g i j k x y z) mxs
g i j k x y z m = (Mat.entry i x m .>= SR.on... | 425 | gThreeConstraints qs mxs gThree = Smt.assert $ Smt.bigAnd [ f i j k x y z | i <- qs, j <- qs, k <- qs, x <- qs, y <- qs, z <- qs ] where
f i j k x y z = gThree i j k x y z .<=> Smt.bany (g i j k x y z) mxs
g i j k x y z m = (Mat.entry i x m .>= SR.one) .&& (Mat.entry j y m .>= SR.one) .&& (Mat.entry k z m .>= SR.... | 361 | false | true | 0 | 10 | 118 | 261 | 130 | 131 | null | null |
circuithub/haskell-filepicker-policy | Network/Filepicker/URL.hs | mit | handleFromUrlBS :: ByteString -> Maybe FilepickerHandle
handleFromUrlBS url = if filepickerRoot `B.isPrefixOf` url then (Just . FilepickerHandle . BC8.takeWhile (/= '?') . B.drop (B.length filepickerRoot)) url else Nothing | 222 | handleFromUrlBS :: ByteString -> Maybe FilepickerHandle
handleFromUrlBS url = if filepickerRoot `B.isPrefixOf` url then (Just . FilepickerHandle . BC8.takeWhile (/= '?') . B.drop (B.length filepickerRoot)) url else Nothing | 222 | handleFromUrlBS url = if filepickerRoot `B.isPrefixOf` url then (Just . FilepickerHandle . BC8.takeWhile (/= '?') . B.drop (B.length filepickerRoot)) url else Nothing | 166 | false | true | 0 | 12 | 27 | 77 | 40 | 37 | null | null |
avh4/elm-format | elm-format-lib/src/CommandLine/ResolveFiles.hs | bsd-3-clause | resolveElmFiles :: World m => [FilePath] -> m (Either [Error] [FilePath])
resolveElmFiles inputFiles =
do
result <- collectErrors <$> mapM resolveFile inputFiles
case result of
Left ls ->
return $ Left ls
Right files ->
return $ Right $ concat... | 326 | resolveElmFiles :: World m => [FilePath] -> m (Either [Error] [FilePath])
resolveElmFiles inputFiles =
do
result <- collectErrors <$> mapM resolveFile inputFiles
case result of
Left ls ->
return $ Left ls
Right files ->
return $ Right $ concat... | 326 | resolveElmFiles inputFiles =
do
result <- collectErrors <$> mapM resolveFile inputFiles
case result of
Left ls ->
return $ Left ls
Right files ->
return $ Right $ concat files | 252 | false | true | 0 | 11 | 117 | 104 | 49 | 55 | null | null |
erochest/NeatlineUpdate | Handler/Update.hs | bsd-2-clause | updateWidget :: FilePath -> FilePath -> Widget
updateWidget baseDir repoName = do
setTitle . toHtml $ T.concat ["Update ", either id id $ toText repoName]
(_, mout, _, pr) <- liftIO . createProcess $
(proc "git" ["pull"]) { cwd = Just $ encodeString repoDir
, std_ou... | 549 | updateWidget :: FilePath -> FilePath -> Widget
updateWidget baseDir repoName = do
setTitle . toHtml $ T.concat ["Update ", either id id $ toText repoName]
(_, mout, _, pr) <- liftIO . createProcess $
(proc "git" ["pull"]) { cwd = Just $ encodeString repoDir
, std_ou... | 549 | updateWidget baseDir repoName = do
setTitle . toHtml $ T.concat ["Update ", either id id $ toText repoName]
(_, mout, _, pr) <- liftIO . createProcess $
(proc "git" ["pull"]) { cwd = Just $ encodeString repoDir
, std_out = CreatePipe
... | 502 | false | true | 0 | 12 | 183 | 176 | 88 | 88 | null | null |
jcowgill/cs-work | syac/compilers/Prac3/5NParser.hs | gpl-3.0 | parseTable B1 _ = [SymNont B2, SymNont B1'] | 63 | parseTable B1 _ = [SymNont B2, SymNont B1'] | 63 | parseTable B1 _ = [SymNont B2, SymNont B1'] | 63 | false | false | 0 | 6 | 27 | 25 | 11 | 14 | null | null |
Zoetermeer/latro | src/Latro/Typecheck.hs | mit | tc (ILAssign p patE rhe) = do
oldVarEnv <- markVarEnv
(rheTy, rhe') <- tc rhe
(patTy, patE') <- tcPatExp patE
unify patTy rheTy `reportErrorAt` p
rheTy' <- generalize rheTy
addBindingsForPat patE rheTy'
return (tyUnit, ILAssign (OfTy p tyUnit) patE' rhe') | 269 | tc (ILAssign p patE rhe) = do
oldVarEnv <- markVarEnv
(rheTy, rhe') <- tc rhe
(patTy, patE') <- tcPatExp patE
unify patTy rheTy `reportErrorAt` p
rheTy' <- generalize rheTy
addBindingsForPat patE rheTy'
return (tyUnit, ILAssign (OfTy p tyUnit) patE' rhe') | 269 | tc (ILAssign p patE rhe) = do
oldVarEnv <- markVarEnv
(rheTy, rhe') <- tc rhe
(patTy, patE') <- tcPatExp patE
unify patTy rheTy `reportErrorAt` p
rheTy' <- generalize rheTy
addBindingsForPat patE rheTy'
return (tyUnit, ILAssign (OfTy p tyUnit) patE' rhe') | 269 | false | false | 0 | 11 | 53 | 118 | 55 | 63 | null | null |
brentonashworth/sitecheck | test/Network/SiteCheck/Arbitrary.hs | bsd-3-clause | fullURLs :: [String]
fullURLs = [ "http://www.host.com/some/other/thing?age=23"
, "http://www.company.com/"
, "http://www.company.com/cool"
, "https://james.org/home/page"
, "http://ibm.com/help/resources.html?item=6"
, "http://formpluslogic.com:8080/demo?item=6"
... | 331 | fullURLs :: [String]
fullURLs = [ "http://www.host.com/some/other/thing?age=23"
, "http://www.company.com/"
, "http://www.company.com/cool"
, "https://james.org/home/page"
, "http://ibm.com/help/resources.html?item=6"
, "http://formpluslogic.com:8080/demo?item=6"
... | 331 | fullURLs = [ "http://www.host.com/some/other/thing?age=23"
, "http://www.company.com/"
, "http://www.company.com/cool"
, "https://james.org/home/page"
, "http://ibm.com/help/resources.html?item=6"
, "http://formpluslogic.com:8080/demo?item=6"
] | 310 | false | true | 0 | 7 | 83 | 39 | 21 | 18 | null | null |
jdwolk/captain-hook | src/CaptainHook/Publishers/AWS/CloudFront.hs | bsd-3-clause | getAWSConfig :: IO AWSConfig
getAWSConfig = do
accessKeyId <- getEnvVar "AWS_ACCESS_KEY_ID"
secret <- getEnvVar "AWS_SECRET_ACCESS_KEY"
regionText <- getEnvVar "AWS_REGION"
region <- parseRegion regionText
return $ awsConfig accessKeyId secret region | 271 | getAWSConfig :: IO AWSConfig
getAWSConfig = do
accessKeyId <- getEnvVar "AWS_ACCESS_KEY_ID"
secret <- getEnvVar "AWS_SECRET_ACCESS_KEY"
regionText <- getEnvVar "AWS_REGION"
region <- parseRegion regionText
return $ awsConfig accessKeyId secret region | 271 | getAWSConfig = do
accessKeyId <- getEnvVar "AWS_ACCESS_KEY_ID"
secret <- getEnvVar "AWS_SECRET_ACCESS_KEY"
regionText <- getEnvVar "AWS_REGION"
region <- parseRegion regionText
return $ awsConfig accessKeyId secret region | 242 | false | true | 0 | 9 | 49 | 74 | 30 | 44 | null | null |
input-output-hk/pos-haskell-prototype | infra/src/Pos/Infra/Communication/Protocol.hs | mit | mapListener
:: (forall t. IO t -> IO t) -> Listener -> Listener
mapListener = mapListener' $ const identity | 111 | mapListener
:: (forall t. IO t -> IO t) -> Listener -> Listener
mapListener = mapListener' $ const identity | 111 | mapListener = mapListener' $ const identity | 43 | false | true | 0 | 9 | 22 | 47 | 23 | 24 | null | null |
rolph-recto/liquid-fixpoint | src/Language/Fixpoint/SortCheck.hs | bsd-3-clause | checkCst f t (EApp g e)
= checkApp f (Just t) g e | 51 | checkCst f t (EApp g e)
= checkApp f (Just t) g e | 51 | checkCst f t (EApp g e)
= checkApp f (Just t) g e | 51 | false | false | 0 | 7 | 14 | 36 | 17 | 19 | null | null |
d0kt0r0/estuary | common/src/Estuary/Types/ResourceOp.hs | gpl-3.0 | showResourceOp (InsertResource Video url (bankName,n)) = "insertvideo " <> showt url <> " " <> bankName <> " " <> showt n | 121 | showResourceOp (InsertResource Video url (bankName,n)) = "insertvideo " <> showt url <> " " <> bankName <> " " <> showt n | 121 | showResourceOp (InsertResource Video url (bankName,n)) = "insertvideo " <> showt url <> " " <> bankName <> " " <> showt n | 121 | false | false | 0 | 10 | 21 | 52 | 25 | 27 | null | null |
MichielDerhaeg/stack | src/Stack/Types/Config.hs | bsd-3-clause | -- | Where HPC reports and tix files get stored.
hpcReportDir :: (MonadThrow m, MonadReader env m, HasEnvConfig env)
=> m (Path Abs Dir)
hpcReportDir = do
root <- installationRootLocal
return $ root </> $(mkRelDir "hpc")
-- | Get the extra bin directories (for the PATH). Puts more local first
--
-- ... | 371 | hpcReportDir :: (MonadThrow m, MonadReader env m, HasEnvConfig env)
=> m (Path Abs Dir)
hpcReportDir = do
root <- installationRootLocal
return $ root </> $(mkRelDir "hpc")
-- | Get the extra bin directories (for the PATH). Puts more local first
--
-- Bool indicates whether or not to include the loca... | 322 | hpcReportDir = do
root <- installationRootLocal
return $ root </> $(mkRelDir "hpc")
-- | Get the extra bin directories (for the PATH). Puts more local first
--
-- Bool indicates whether or not to include the locals | 221 | true | true | 0 | 11 | 80 | 80 | 39 | 41 | null | null |
serokell/time-warp | test/Test/Control/TimeWarp/Timed/MonadTimedSpec.hs | mit | spec :: Spec
spec =
describe "MonadTimed" $ do
monadTimedSpec "TimedIO" runTimedIOProp
monadTimedTSpec "TimedT" runTimedTProp | 145 | spec :: Spec
spec =
describe "MonadTimed" $ do
monadTimedSpec "TimedIO" runTimedIOProp
monadTimedTSpec "TimedT" runTimedTProp | 145 | spec =
describe "MonadTimed" $ do
monadTimedSpec "TimedIO" runTimedIOProp
monadTimedTSpec "TimedT" runTimedTProp | 132 | false | true | 0 | 9 | 34 | 41 | 16 | 25 | null | null |
ilyasergey/GHC-XAppFix | compiler/main/DynFlags.hs | bsd-3-clause | xFlags :: [FlagSpec ExtensionFlag]
xFlags = [
( "CPP", Opt_Cpp, nop ),
( "PostfixOperators", Opt_PostfixOperators, nop ),
( "TupleSections", Opt_TupleSections, nop ),
( "PatternGuards", Opt_PatternGuards, nop ),
( "UnicodeSynta... | 6,149 | xFlags :: [FlagSpec ExtensionFlag]
xFlags = [
( "CPP", Opt_Cpp, nop ),
( "PostfixOperators", Opt_PostfixOperators, nop ),
( "TupleSections", Opt_TupleSections, nop ),
( "PatternGuards", Opt_PatternGuards, nop ),
( "UnicodeSynta... | 6,149 | xFlags = [
( "CPP", Opt_Cpp, nop ),
( "PostfixOperators", Opt_PostfixOperators, nop ),
( "TupleSections", Opt_TupleSections, nop ),
( "PatternGuards", Opt_PatternGuards, nop ),
( "UnicodeSyntax", Opt_UnicodeS... | 6,114 | false | true | 0 | 10 | 2,028 | 1,054 | 688 | 366 | null | null |
brendanhay/gogol | gogol-ml/gen/Network/Google/Resource/Ml/Projects/Locations/Get.hs | mpl-2.0 | -- | Upload protocol for media (e.g. \"raw\", \"multipart\").
plgUploadProtocol :: Lens' ProjectsLocationsGet (Maybe Text)
plgUploadProtocol
= lens _plgUploadProtocol
(\ s a -> s{_plgUploadProtocol = a}) | 211 | plgUploadProtocol :: Lens' ProjectsLocationsGet (Maybe Text)
plgUploadProtocol
= lens _plgUploadProtocol
(\ s a -> s{_plgUploadProtocol = a}) | 149 | plgUploadProtocol
= lens _plgUploadProtocol
(\ s a -> s{_plgUploadProtocol = a}) | 88 | true | true | 1 | 9 | 33 | 51 | 25 | 26 | null | null |
OS2World/DEV-UTIL-HUGS | oldlib/ParseLib.hs | bsd-3-clause | digit :: Parser Char
digit = sat isDigit | 65 | digit :: Parser Char
digit = sat isDigit | 65 | digit = sat isDigit | 32 | false | true | 0 | 6 | 32 | 23 | 9 | 14 | null | null |
ibabushkin/hapstone | test/Internal/XCore/StorableSpec.hs | bsd-3-clause | getCsXCoreOp :: IO CsXCoreOp
getCsXCoreOp = do
ptr <- mallocArray (sizeOf csXCoreOp) :: IO (Ptr Word8)
poke (castPtr ptr) (fromIntegral $ fromEnum XcoreOpImm :: Int32)
poke (plusPtr ptr 4) (0x01234567 :: Int32)
peek (castPtr ptr) <* free ptr | 257 | getCsXCoreOp :: IO CsXCoreOp
getCsXCoreOp = do
ptr <- mallocArray (sizeOf csXCoreOp) :: IO (Ptr Word8)
poke (castPtr ptr) (fromIntegral $ fromEnum XcoreOpImm :: Int32)
poke (plusPtr ptr 4) (0x01234567 :: Int32)
peek (castPtr ptr) <* free ptr | 257 | getCsXCoreOp = do
ptr <- mallocArray (sizeOf csXCoreOp) :: IO (Ptr Word8)
poke (castPtr ptr) (fromIntegral $ fromEnum XcoreOpImm :: Int32)
poke (plusPtr ptr 4) (0x01234567 :: Int32)
peek (castPtr ptr) <* free ptr | 228 | false | true | 0 | 10 | 53 | 110 | 52 | 58 | null | null |
ryantm/ghc | testsuite/tests/indexed-types/should_compile/T3590.hs | bsd-3-clause | (<<=) :: Monad m => (a -> m b) -> m a -> m b
(<<=) k m = m >>= k | 64 | (<<=) :: Monad m => (a -> m b) -> m a -> m b
(<<=) k m = m >>= k | 64 | (<<=) k m = m >>= k | 19 | false | true | 2 | 10 | 21 | 62 | 30 | 32 | null | null |
matthew-eads/yesod-articles | src/Yesod/Articles.hs | bsd-3-clause | -- | Takes a file path (templates/articles/foo.hamlet), and returns
-- a string of just the file name without the extension (foo).
stripName :: Text -> Text
stripName file_name = pack $ takeBaseName $ unpack file_name | 217 | stripName :: Text -> Text
stripName file_name = pack $ takeBaseName $ unpack file_name | 86 | stripName file_name = pack $ takeBaseName $ unpack file_name | 60 | true | true | 0 | 6 | 34 | 31 | 16 | 15 | null | null |
pparkkin/eta | compiler/ETA/Utils/FastString.hs | bsd-3-clause | mkNewFastString :: ForeignPtr Word8 -> Ptr Word8 -> Int -> Int
-> IO FastString
mkNewFastString fp ptr len uid = do
ref <- newIORef Nothing
n_chars <- countUTF8Chars ptr len
return (FastString uid n_chars (BS.fromForeignPtr fp 0 len) ref) | 260 | mkNewFastString :: ForeignPtr Word8 -> Ptr Word8 -> Int -> Int
-> IO FastString
mkNewFastString fp ptr len uid = do
ref <- newIORef Nothing
n_chars <- countUTF8Chars ptr len
return (FastString uid n_chars (BS.fromForeignPtr fp 0 len) ref) | 260 | mkNewFastString fp ptr len uid = do
ref <- newIORef Nothing
n_chars <- countUTF8Chars ptr len
return (FastString uid n_chars (BS.fromForeignPtr fp 0 len) ref) | 164 | false | true | 0 | 12 | 60 | 97 | 44 | 53 | null | null |
JohnLato/transducers | src/Transducers/Stream.hs | bsd-3-clause | rmealyM :: Monad m => s -> (s -> i -> m (a,s)) -> RStream e m o i -> RStream e m o a
rmealyM s0 f (RStream rs0 step) = RStream (s0,rs0) go
where
{-# INLINE [0] go #-}
go (s,rs) = do
st <- step rs
case st of
RStep i rs' -> f s i >>= \(o,s') -> return $ RStep o (s',rs')
R... | 455 | rmealyM :: Monad m => s -> (s -> i -> m (a,s)) -> RStream e m o i -> RStream e m o a
rmealyM s0 f (RStream rs0 step) = RStream (s0,rs0) go
where
{-# INLINE [0] go #-}
go (s,rs) = do
st <- step rs
case st of
RStep i rs' -> f s i >>= \(o,s') -> return $ RStep o (s',rs')
R... | 455 | rmealyM s0 f (RStream rs0 step) = RStream (s0,rs0) go
where
{-# INLINE [0] go #-}
go (s,rs) = do
st <- step rs
case st of
RStep i rs' -> f s i >>= \(o,s') -> return $ RStep o (s',rs')
RSkip rs' -> return $ RSkip (s,rs')
Die err rs' -> return $ Die err (s,r... | 370 | false | true | 0 | 14 | 170 | 238 | 119 | 119 | null | null |
glguy/ssh-hans | src/Network/SSH/Keys.hs | bsd-3-clause | runDh ::
DH.Params ->
IO (S.ByteString, S.ByteString -> Maybe S.ByteString)
{- ^ local public value, remote public -> shared secret -}
runDh params =
do priv <- DH.generatePrivate params
let DH.PublicNumber pub_s = DH.calculatePublic params priv
computeSecret raw_pub_c = Just (runPut (putMpInt... | 724 | runDh ::
DH.Params ->
IO (S.ByteString, S.ByteString -> Maybe S.ByteString)
runDh params =
do priv <- DH.generatePrivate params
let DH.PublicNumber pub_s = DH.calculatePublic params priv
computeSecret raw_pub_c = Just (runPut (putMpInt (os2ip shared)))
where
DH.SharedKey sha... | 662 | runDh params =
do priv <- DH.generatePrivate params
let DH.PublicNumber pub_s = DH.calculatePublic params priv
computeSecret raw_pub_c = Just (runPut (putMpInt (os2ip shared)))
where
DH.SharedKey shared = DH.getShared params priv
$ DH.PublicNumber
... | 582 | true | true | 0 | 17 | 213 | 163 | 77 | 86 | null | null |
axelri/lenny | lenny.hs | mit | parseArgs :: IO ()
parseArgs = do
argv <- getArgs
case parse argv of
(opts, [], []) -> lenny opts ["."]
(opts, dirs, [])
| Help `elem` opts -> help
| CSV `elem` opts && length dirs > 1 -> help
| otherwise ... | 841 | parseArgs :: IO ()
parseArgs = do
argv <- getArgs
case parse argv of
(opts, [], []) -> lenny opts ["."]
(opts, dirs, [])
| Help `elem` opts -> help
| CSV `elem` opts && length dirs > 1 -> help
| otherwise ... | 841 | parseArgs = do
argv <- getArgs
case parse argv of
(opts, [], []) -> lenny opts ["."]
(opts, dirs, [])
| Help `elem` opts -> help
| CSV `elem` opts && length dirs > 1 -> help
| otherwise -> lenny opts dirs
... | 822 | false | true | 5 | 15 | 379 | 258 | 130 | 128 | null | null |
brendanhay/gogol | gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Versions/Undelete.hs | mpl-2.0 | -- | OAuth access token.
acvuAccessToken :: Lens' AccountsContainersVersionsUndelete (Maybe Text)
acvuAccessToken
= lens _acvuAccessToken
(\ s a -> s{_acvuAccessToken = a}) | 180 | acvuAccessToken :: Lens' AccountsContainersVersionsUndelete (Maybe Text)
acvuAccessToken
= lens _acvuAccessToken
(\ s a -> s{_acvuAccessToken = a}) | 155 | acvuAccessToken
= lens _acvuAccessToken
(\ s a -> s{_acvuAccessToken = a}) | 82 | true | true | 0 | 9 | 29 | 48 | 25 | 23 | null | null |
brendanhay/gogol | gogol-dataproc/gen/Network/Google/Dataproc/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'ListAutoscalingPoliciesResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'laprNextPageToken'
--
-- * 'laprPolicies'
listAutoscalingPoliciesResponse
:: ListAutoscalingPoliciesResponse
listAutoscaling... | 433 | listAutoscalingPoliciesResponse
:: ListAutoscalingPoliciesResponse
listAutoscalingPoliciesResponse =
ListAutoscalingPoliciesResponse'
{_laprNextPageToken = Nothing, _laprPolicies = Nothing} | 199 | listAutoscalingPoliciesResponse =
ListAutoscalingPoliciesResponse'
{_laprNextPageToken = Nothing, _laprPolicies = Nothing} | 128 | true | true | 0 | 6 | 59 | 32 | 22 | 10 | null | null |
vikraman/ghc | libraries/base/Data/Data.hs | bsd-3-clause | tuple0Constr :: Constr
tuple0Constr = mkConstr tuple0DataType "()" [] Prefix | 76 | tuple0Constr :: Constr
tuple0Constr = mkConstr tuple0DataType "()" [] Prefix | 76 | tuple0Constr = mkConstr tuple0DataType "()" [] Prefix | 53 | false | true | 0 | 6 | 9 | 28 | 12 | 16 | null | null |
ibnuda/.xmonad | xmonad.hs | gpl-2.0 | myManageHook :: Query (Endo WindowSet)
myManageHook = composeAll
[ className =? "mpv" --> doFloat
, className =? "MPV" --> doFloat
, className =? "feh" --> doFloat
] | 173 | myManageHook :: Query (Endo WindowSet)
myManageHook = composeAll
[ className =? "mpv" --> doFloat
, className =? "MPV" --> doFloat
, className =? "feh" --> doFloat
] | 173 | myManageHook = composeAll
[ className =? "mpv" --> doFloat
, className =? "MPV" --> doFloat
, className =? "feh" --> doFloat
] | 134 | false | true | 0 | 7 | 34 | 56 | 29 | 27 | null | null |
michaeljklein/parser-tutorial | src/Tutorial.hs | bsd-3-clause | string :: String -> Parse String
string = mapM char | 51 | string :: String -> Parse String
string = mapM char | 51 | string = mapM char | 18 | false | true | 0 | 6 | 9 | 21 | 10 | 11 | null | null |
syunta/PFDS | Chapter2.hs | mit | create :: (Ord a) => a -> Int -> UnbalancedSet a
create _ 0 = E | 63 | create :: (Ord a) => a -> Int -> UnbalancedSet a
create _ 0 = E | 63 | create _ 0 = E | 14 | false | true | 0 | 8 | 15 | 36 | 18 | 18 | null | null |
sseefried/play-space-online | config/Settings.hs | bsd-2-clause | juliusFile = H.juliusFile . toJuliusFile | 40 | juliusFile = H.juliusFile . toJuliusFile | 40 | juliusFile = H.juliusFile . toJuliusFile | 40 | false | false | 1 | 6 | 4 | 16 | 6 | 10 | null | null |
lpeterse/haskell-hummingbird | src/Hummingbird/Administration/Request.hs | mit | int :: Parser Int
int = Prim.tokenPrim showTok posFromTok testTok
where
showTok t = show t
posFromTok p _ _ = p
testTok t
| all isDigit t && length t < length (show (maxBound :: Int)) = Just (read t)
| otherwise = Nothing | 308 | int :: Parser Int
int = Prim.tokenPrim showTok posFromTok testTok
where
showTok t = show t
posFromTok p _ _ = p
testTok t
| all isDigit t && length t < length (show (maxBound :: Int)) = Just (read t)
| otherwise = Nothing | 308 | int = Prim.tokenPrim showTok posFromTok testTok
where
showTok t = show t
posFromTok p _ _ = p
testTok t
| all isDigit t && length t < length (show (maxBound :: Int)) = Just (read t)
| otherwise = Nothing | 290 | false | true | 4 | 10 | 131 | 108 | 52 | 56 | null | null |
uduki/hsQt | Qtc/Gui/QFrame.hs | bsd-2-clause | frameWidth :: QFrame a -> (()) -> IO (Int)
frameWidth x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QFrame_frameWidth cobj_x0 | 148 | frameWidth :: QFrame a -> (()) -> IO (Int)
frameWidth x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QFrame_frameWidth cobj_x0 | 148 | frameWidth x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QFrame_frameWidth cobj_x0 | 105 | false | true | 4 | 9 | 31 | 66 | 30 | 36 | null | null |
vikraman/ghc | compiler/cmm/CmmNode.hs | bsd-3-clause | -- | Returns the head uniques of the scopes. This is based on the
-- assumption that the @Unique@ of @SubScope@ identifies the
-- underlying super-scope. Used for efficient equality and comparison,
-- see below.
scopeUniques :: CmmTickScope -> [U.Unique]
scopeUniques GlobalScope = [] | 294 | scopeUniques :: CmmTickScope -> [U.Unique]
scopeUniques GlobalScope = [] | 82 | scopeUniques GlobalScope = [] | 39 | true | true | 0 | 7 | 53 | 33 | 18 | 15 | null | null |
pranjaltale16/codeworld | codeworld-compiler/test/Main.hs | apache-2.0 | testOutputFile :: String -> FilePath
testOutputFile testName = testcaseOutputDir </> testName </> "output.js" | 109 | testOutputFile :: String -> FilePath
testOutputFile testName = testcaseOutputDir </> testName </> "output.js" | 109 | testOutputFile testName = testcaseOutputDir </> testName </> "output.js" | 72 | false | true | 0 | 6 | 12 | 26 | 13 | 13 | null | null |
binarin/learnopengl | src/GLWrap/LowLevel.hs | bsd-3-clause | getProgram'linkStatus :: Program -> IO Bool
getProgram'linkStatus p = do
success <- getProgramiv p GL_LINK_STATUS
case fromIntegral success of
GL_TRUE -> return True
GL_FALSE -> return False | 202 | getProgram'linkStatus :: Program -> IO Bool
getProgram'linkStatus p = do
success <- getProgramiv p GL_LINK_STATUS
case fromIntegral success of
GL_TRUE -> return True
GL_FALSE -> return False | 202 | getProgram'linkStatus p = do
success <- getProgramiv p GL_LINK_STATUS
case fromIntegral success of
GL_TRUE -> return True
GL_FALSE -> return False | 158 | false | true | 0 | 11 | 38 | 66 | 28 | 38 | null | null |
termite2/code-widget | CodeWidget/CodeWidgetUtil.hs | bsd-3-clause | --apiDbgPrints = True;
apiStrLn :: String -> IO ()
apiStrLn = maybePrtStrLn apiDbgPrints | 89 | apiStrLn :: String -> IO ()
apiStrLn = maybePrtStrLn apiDbgPrints | 65 | apiStrLn = maybePrtStrLn apiDbgPrints | 37 | true | true | 0 | 8 | 13 | 29 | 13 | 16 | null | null |
cmc-haskell-2016/checkers | src/GraphicsProcessing.hs | bsd-3-clause | eventHandler pool (EventKey (SpecialKey KeyEnter) Down _ _) (WorldObject (Players x y) checkers (State 3 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) =
(WorldObject (Players (updatePlayer x) y) checkers (State 4 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) | 290 | eventHandler pool (EventKey (SpecialKey KeyEnter) Down _ _) (WorldObject (Players x y) checkers (State 3 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) =
(WorldObject (Players (updatePlayer x) y) checkers (State 4 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) | 290 | eventHandler pool (EventKey (SpecialKey KeyEnter) Down _ _) (WorldObject (Players x y) checkers (State 3 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) =
(WorldObject (Players (updatePlayer x) y) checkers (State 4 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) | 290 | false | false | 0 | 10 | 33 | 101 | 50 | 51 | null | null |
joozek78/stack | src/Stack/Build/ConstructPlan.hs | bsd-3-clause | packageDepsWithTools :: Package -> M (Map PackageName VersionRange)
packageDepsWithTools p = do
ctx <- ask
return $ Map.unionsWith intersectVersionRanges
$ packageDeps p
: map (toolToPackages ctx) (packageTools p)
-- | Strip out anything from the @Plan@ intended for the local database | 316 | packageDepsWithTools :: Package -> M (Map PackageName VersionRange)
packageDepsWithTools p = do
ctx <- ask
return $ Map.unionsWith intersectVersionRanges
$ packageDeps p
: map (toolToPackages ctx) (packageTools p)
-- | Strip out anything from the @Plan@ intended for the local database | 316 | packageDepsWithTools p = do
ctx <- ask
return $ Map.unionsWith intersectVersionRanges
$ packageDeps p
: map (toolToPackages ctx) (packageTools p)
-- | Strip out anything from the @Plan@ intended for the local database | 248 | false | true | 0 | 11 | 71 | 77 | 36 | 41 | null | null |
rahulmutt/codec-jvm | src/Codec/JVM/ASM/Code/Instr.hs | apache-2.0 | mergeLabels :: [LabelTable] -> InstrM ()
mergeLabels tables = do
debug $ do
InstrState { isLabelTable = table } <- get
liftIO $ print ("mergeLabels", map (`differenceLT` table) tables)
modify' $ \s@InstrState { isLabelTable = table
, isRunAgain = ra } ->
let diffTables = map ... | 513 | mergeLabels :: [LabelTable] -> InstrM ()
mergeLabels tables = do
debug $ do
InstrState { isLabelTable = table } <- get
liftIO $ print ("mergeLabels", map (`differenceLT` table) tables)
modify' $ \s@InstrState { isLabelTable = table
, isRunAgain = ra } ->
let diffTables = map ... | 513 | mergeLabels tables = do
debug $ do
InstrState { isLabelTable = table } <- get
liftIO $ print ("mergeLabels", map (`differenceLT` table) tables)
modify' $ \s@InstrState { isLabelTable = table
, isRunAgain = ra } ->
let diffTables = map (`differenceLT` table) tables
upd... | 472 | false | true | 0 | 17 | 141 | 182 | 97 | 85 | null | null |
mrakgr/futhark | src/Futhark/Optimise/Fusion/LoopKernel.hs | bsd-3-clause | pullReplicate _ _ = fail "Cannot pull replicate" | 48 | pullReplicate _ _ = fail "Cannot pull replicate" | 48 | pullReplicate _ _ = fail "Cannot pull replicate" | 48 | false | false | 0 | 5 | 7 | 14 | 6 | 8 | null | null |
gafiatulin/codewars | src/7 kyu/MinMax.hs | mit | minMax :: (Ord a) => [a] -> (a, a)
minMax xs = (minimum xs, maximum xs) | 71 | minMax :: (Ord a) => [a] -> (a, a)
minMax xs = (minimum xs, maximum xs) | 71 | minMax xs = (minimum xs, maximum xs) | 36 | false | true | 0 | 7 | 15 | 48 | 26 | 22 | null | null |
ckaestne/CIDE | CIDE_Language_Haskell/test/WSP/Webserver/Request.hs | gpl-3.0 | parseCmd "DELETE" = Just DeleteReq | 34 | parseCmd "DELETE" = Just DeleteReq | 34 | parseCmd "DELETE" = Just DeleteReq | 34 | false | false | 0 | 5 | 4 | 12 | 5 | 7 | null | null |
robdockins/edison | edison-api/src/Data/Edison/Seq.hs | mit | -- | The empty sequence. Identical to @mzero@
-- from @MonadPlus@.
--
-- > empty = <>
--
-- This function is always /unambiguous/.
--
-- Default running time: @O( 1 )@
empty :: Sequence s => s a
empty = mzero | 224 | empty :: Sequence s => s a
empty = mzero | 46 | empty = mzero | 13 | true | true | 0 | 6 | 57 | 29 | 18 | 11 | null | null |
iblumenfeld/saw-core | src/Verifier/SAW/UntypedAST.hs | bsd-3-clause | badTerm :: Pos -> Term
badTerm = BadTerm | 40 | badTerm :: Pos -> Term
badTerm = BadTerm | 40 | badTerm = BadTerm | 17 | false | true | 0 | 5 | 7 | 15 | 8 | 7 | null | null |
573/leksah | src/IDE/Pane/Modules.hs | gpl-2.0 | applyExpanderState :: IDEAction
applyExpanderState = do
liftIO $ debugM "leksah" "applyExpanderState"
m <- getModules Nothing
(sc,bl) <- getScope
liftIO $ do
es <- readIORef (expanderState m)
let (paths1,paths2) = case (sc,bl) of
((PackageScope False... | 1,281 | applyExpanderState :: IDEAction
applyExpanderState = do
liftIO $ debugM "leksah" "applyExpanderState"
m <- getModules Nothing
(sc,bl) <- getScope
liftIO $ do
es <- readIORef (expanderState m)
let (paths1,paths2) = case (sc,bl) of
((PackageScope False... | 1,281 | applyExpanderState = do
liftIO $ debugM "leksah" "applyExpanderState"
m <- getModules Nothing
(sc,bl) <- getScope
liftIO $ do
es <- readIORef (expanderState m)
let (paths1,paths2) = case (sc,bl) of
((PackageScope False),True) -> packageExp es
... | 1,249 | false | true | 0 | 18 | 541 | 336 | 169 | 167 | null | null |
rasendubi/arachne | src/Network/MQTT/Encoder.hs | bsd-3-clause | variableHeader (PUBACK PubackPacket{..}) = encodePacketIdentifier pubackPacketIdentifier | 98 | variableHeader (PUBACK PubackPacket{..}) = encodePacketIdentifier pubackPacketIdentifier | 98 | variableHeader (PUBACK PubackPacket{..}) = encodePacketIdentifier pubackPacketIdentifier | 98 | false | false | 0 | 9 | 15 | 24 | 11 | 13 | null | null |
romanb/amazonka | amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types.hs | mpl-2.0 | -- | 'JobOutput' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'joAlbumArt' @::@ 'Maybe' 'JobAlbumArt'
--
-- * 'joAppliedColorSpaceConversion' @::@ 'Maybe' 'Text'
--
-- * 'joCaptions' @::@ 'Maybe' 'Captions'
--
-- * 'joComposition' @::@ ['Clip']
--
-- * 'joDuration' @::@ 'Maybe' 'In... | 2,060 | jobOutput :: JobOutput
jobOutput = JobOutput
{ _joId = Nothing
, _joKey = Nothing
, _joThumbnailPattern = Nothing
, _joThumbnailEncryption = Nothing
, _joRotate = Nothing
, _joPresetId = N... | 1,035 | jobOutput = JobOutput
{ _joId = Nothing
, _joKey = Nothing
, _joThumbnailPattern = Nothing
, _joThumbnailEncryption = Nothing
, _joRotate = Nothing
, _joPresetId = Nothing
, _joSegment... | 1,012 | true | true | 0 | 7 | 693 | 195 | 139 | 56 | null | null |
RossMeikleham/NesMonad | src/Cpu.hs | mit | setReg S = setS | 15 | setReg S = setS | 15 | setReg S = setS | 15 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
sulami/hcached | src/LimitedHashMap.hs | bsd-3-clause | flush :: MVar LimitedHashMap -> POSIXTime -> IO ()
flush lhm 0 = modifyMVar_ lhm $ return . (hashMap .~ HML.empty) . (mru .~ []) | 128 | flush :: MVar LimitedHashMap -> POSIXTime -> IO ()
flush lhm 0 = modifyMVar_ lhm $ return . (hashMap .~ HML.empty) . (mru .~ []) | 128 | flush lhm 0 = modifyMVar_ lhm $ return . (hashMap .~ HML.empty) . (mru .~ []) | 77 | false | true | 0 | 9 | 24 | 70 | 33 | 37 | null | null |
spechub/Hets | Common/SZSOntology.hs | gpl-2.0 | szsTimeout :: String -> Bool
szsTimeout = szsCheck nosuccess ["TMO", "RSO"] | 75 | szsTimeout :: String -> Bool
szsTimeout = szsCheck nosuccess ["TMO", "RSO"] | 75 | szsTimeout = szsCheck nosuccess ["TMO", "RSO"] | 46 | false | true | 0 | 6 | 10 | 26 | 14 | 12 | null | null |
TomMD/ghc | compiler/coreSyn/MkCore.hs | bsd-3-clause | runtimeErrorName = err_nm "runtimeError" runtimeErrorIdKey rUNTIME_ERROR_ID | 84 | runtimeErrorName = err_nm "runtimeError" runtimeErrorIdKey rUNTIME_ERROR_ID | 84 | runtimeErrorName = err_nm "runtimeError" runtimeErrorIdKey rUNTIME_ERROR_ID | 84 | false | false | 1 | 5 | 14 | 17 | 6 | 11 | null | null |
matthieu/witty | haskell/src/fileio.hs | apache-2.0 | wyReadFile = defp "readFile" $ doOnFile WyString readFile | 57 | wyReadFile = defp "readFile" $ doOnFile WyString readFile | 57 | wyReadFile = defp "readFile" $ doOnFile WyString readFile | 57 | false | false | 0 | 6 | 7 | 18 | 8 | 10 | null | null |
oldmanmike/ghc | compiler/types/Type.hs | bsd-3-clause | repSplitTyConApp_maybe (ForAllTy (Anon arg) res) = Just (funTyCon, [arg,res]) | 77 | repSplitTyConApp_maybe (ForAllTy (Anon arg) res) = Just (funTyCon, [arg,res]) | 77 | repSplitTyConApp_maybe (ForAllTy (Anon arg) res) = Just (funTyCon, [arg,res]) | 77 | false | false | 0 | 9 | 8 | 38 | 20 | 18 | null | null |
grayjay/hackage-server | Distribution/Server/Pages/Package.hs | bsd-3-clause | showDependency :: Dependency -> Html
showDependency (Dependency (PackageName pname) vs) = showPkg +++ vsHtml
where vsHtml = if vs == anyVersion then noHtml
else toHtml (" (" ++ display vs ++ ")")
-- mb_vers links to latest version in range. This is a bit computationally
... | 813 | showDependency :: Dependency -> Html
showDependency (Dependency (PackageName pname) vs) = showPkg +++ vsHtml
where vsHtml = if vs == anyVersion then noHtml
else toHtml (" (" ++ display vs ++ ")")
-- mb_vers links to latest version in range. This is a bit computationally
... | 813 | showDependency (Dependency (PackageName pname) vs) = showPkg +++ vsHtml
where vsHtml = if vs == anyVersion then noHtml
else toHtml (" (" ++ display vs ++ ")")
-- mb_vers links to latest version in range. This is a bit computationally
-- expensive, not cache-friendl... | 775 | false | true | 1 | 13 | 214 | 126 | 66 | 60 | null | null |
travitch/llvm-analysis | src/LLVM/Analysis/IFDS.hs | bsd-3-clause | -- | Handle adding interprocedural call edges and intraprocedural
-- call->return edges.
addCallEdges :: (IFDSAnalysis a domType, Ord domType, Show domType)
=> Instruction
-> PathEdge domType
-> IFDSM a domType ()
addCallEdges ci e@(PathEdge d1 n _) = do
g <- gets icfg
... | 563 | addCallEdges :: (IFDSAnalysis a domType, Ord domType, Show domType)
=> Instruction
-> PathEdge domType
-> IFDSM a domType ()
addCallEdges ci e@(PathEdge d1 n _) = do
g <- gets icfg
-- Update the entryValues cache here since we know that d1 reaches
-- the call here.
... | 474 | addCallEdges ci e@(PathEdge d1 n _) = do
g <- gets icfg
-- Update the entryValues cache here since we know that d1 reaches
-- the call here.
updateCallReachingValues n d1
let possibleCalleeEntryNodes = getICFGCallEntries g n
mapM_ (addInfoForPotentialCallee ci e) possibleCalleeEntryNodes
| 301 | true | true | 5 | 7 | 133 | 117 | 61 | 56 | null | null |
GintMist/double-pendulum | src/derivative.hs | bsd-3-clause | evaluate (Mul xs) t = fmap product (traverse (`evaluate` t) xs) | 63 | evaluate (Mul xs) t = fmap product (traverse (`evaluate` t) xs) | 63 | evaluate (Mul xs) t = fmap product (traverse (`evaluate` t) xs) | 63 | false | false | 1 | 8 | 10 | 38 | 19 | 19 | null | null |
VinylRecords/Vinyl | Data/Vinyl/Derived.hs | mit | -- | 'ElField' is isomorphic to a functor something like @Compose
-- ElField ('(,) s)@.
fieldMap :: (a -> b) -> ElField '(s,a) -> ElField '(s,b)
fieldMap f (Field x) = Field (f x) | 179 | fieldMap :: (a -> b) -> ElField '(s,a) -> ElField '(s,b)
fieldMap f (Field x) = Field (f x) | 91 | fieldMap f (Field x) = Field (f x) | 34 | true | true | 0 | 9 | 33 | 70 | 37 | 33 | null | null |
mikeizbicki/homoiconic | old/Algebra7.hs | bsd-3-clause | y :: Expr Space 'Id (Int,Int)
y = Pure (1,3) | 44 | y :: Expr Space 'Id (Int,Int)
y = Pure (1,3) | 44 | y = Pure (1,3) | 14 | false | true | 0 | 7 | 9 | 40 | 20 | 20 | null | null |
ezyang/ghc | compiler/utils/Pretty.hs | bsd-3-clause | -- mkUnion checks for an empty document
mkUnion :: Doc -> Doc -> Doc
mkUnion Empty _ = Empty | 92 | mkUnion :: Doc -> Doc -> Doc
mkUnion Empty _ = Empty | 52 | mkUnion Empty _ = Empty | 23 | true | true | 0 | 6 | 18 | 25 | 13 | 12 | null | null |
tomtitchener/RealSimpleMusic | src/Music/RealSimpleMusic/ScoreToLilypond/Utils.hs | cc0-1.0 | renderedOpenArrow = stringEncoding "<<" | 43 | renderedOpenArrow = stringEncoding "<<" | 43 | renderedOpenArrow = stringEncoding "<<" | 43 | false | false | 0 | 5 | 7 | 9 | 4 | 5 | null | null |
vedgar/mlr | Haskell/ls.hs | unlicense | table (Conn n f) = [b | start <- [False, True],
b <- table (Conn (n-1) (\ rest -> f([start] ++ rest)))] | 107 | table (Conn n f) = [b | start <- [False, True],
b <- table (Conn (n-1) (\ rest -> f([start] ++ rest)))] | 107 | table (Conn n f) = [b | start <- [False, True],
b <- table (Conn (n-1) (\ rest -> f([start] ++ rest)))] | 107 | false | false | 0 | 16 | 25 | 81 | 43 | 38 | null | null |
wavewave/xournal-render | src/Graphics/Xournal/Render/BBox.hs | bsd-2-clause | cairoOneStrokeSelected :: StrokeBBox -> Render ()
cairoOneStrokeSelected sbbox = do
let s = gToStroke sbbox
case M.lookup (stroke_color s) predefined_pencolor of
Just (r,g,b,a) -> setSourceRGBA r g b a
Nothing -> setSourceRGBA 0 0 0 1
case s of
Stroke _ _ w d -> do
setLineWidth (w * 4.0)
... | 731 | cairoOneStrokeSelected :: StrokeBBox -> Render ()
cairoOneStrokeSelected sbbox = do
let s = gToStroke sbbox
case M.lookup (stroke_color s) predefined_pencolor of
Just (r,g,b,a) -> setSourceRGBA r g b a
Nothing -> setSourceRGBA 0 0 0 1
case s of
Stroke _ _ w d -> do
setLineWidth (w * 4.0)
... | 731 | cairoOneStrokeSelected sbbox = do
let s = gToStroke sbbox
case M.lookup (stroke_color s) predefined_pencolor of
Just (r,g,b,a) -> setSourceRGBA r g b a
Nothing -> setSourceRGBA 0 0 0 1
case s of
Stroke _ _ w d -> do
setLineWidth (w * 4.0)
setLineCap LineCapRound
setLineJoin Li... | 681 | false | true | 0 | 17 | 220 | 273 | 125 | 148 | null | null |
HaskellForCats/HaskellForCats | ladiesWhoCodeHaskell/ladiesWhoCodeHaskell004.hs | mit | head' (x:xs) = (x:[]) | 24 | head' (x:xs) = (x:[]) | 24 | head' (x:xs) = (x:[]) | 24 | false | false | 0 | 7 | 6 | 26 | 13 | 13 | null | null |
nomeata/ghc | compiler/nativeGen/X86/Ppr.hs | bsd-3-clause | pprSizeDecl :: CLabel -> SDoc
pprSizeDecl lbl
= sdocWithPlatform $ \platform ->
if osElfTarget (platformOS platform)
then ptext (sLit "\t.size") <+> ppr lbl
<> ptext (sLit ", .-") <> ppr lbl
else empty | 216 | pprSizeDecl :: CLabel -> SDoc
pprSizeDecl lbl
= sdocWithPlatform $ \platform ->
if osElfTarget (platformOS platform)
then ptext (sLit "\t.size") <+> ppr lbl
<> ptext (sLit ", .-") <> ppr lbl
else empty | 216 | pprSizeDecl lbl
= sdocWithPlatform $ \platform ->
if osElfTarget (platformOS platform)
then ptext (sLit "\t.size") <+> ppr lbl
<> ptext (sLit ", .-") <> ppr lbl
else empty | 186 | false | true | 0 | 13 | 47 | 80 | 39 | 41 | null | null |
markflorisson/hpack | testrepo/bytestring-0.10.2.0/Data/ByteString.hs | bsd-3-clause | -- | /O(n)/ The 'elemIndexEnd' function returns the last index of the
-- element in the given 'ByteString' which is equal to the query
-- element, or 'Nothing' if there is no such element. The following
-- holds:
--
-- > elemIndexEnd c xs ==
-- > (-) (length xs - 1) `fmap` elemIndex c (reverse xs)
--
elemIndexEnd :: W... | 710 | elemIndexEnd :: Word8 -> ByteString -> Maybe Int
elemIndexEnd ch (PS x s l) = inlinePerformIO $ withForeignPtr x $ \p ->
go (p `plusPtr` s) (l-1)
where
STRICT2(go)
go p i | i < 0 = return Nothing
| otherwise = do ch' <- peekByteOff p i
if ch == ch'
... | 407 | elemIndexEnd ch (PS x s l) = inlinePerformIO $ withForeignPtr x $ \p ->
go (p `plusPtr` s) (l-1)
where
STRICT2(go)
go p i | i < 0 = return Nothing
| otherwise = do ch' <- peekByteOff p i
if ch == ch'
then return $ Just i
... | 358 | true | true | 0 | 11 | 241 | 169 | 87 | 82 | null | null |
Teaspot-Studio/Urho3D-Haskell | app/sample04/Main.hs | mit | customStart :: SampleRef -> IO ()
customStart sr = do
s <- readIORef sr
let app = s ^. sampleApplication
-- Create the scene content
(scene, cameraNode) <- createScene app
-- Create the UI content
createInstructions app
-- Setup the viewport for displaying the scene
setupViewport app scene cameraNode
... | 594 | customStart :: SampleRef -> IO ()
customStart sr = do
s <- readIORef sr
let app = s ^. sampleApplication
-- Create the scene content
(scene, cameraNode) <- createScene app
-- Create the UI content
createInstructions app
-- Setup the viewport for displaying the scene
setupViewport app scene cameraNode
... | 594 | customStart sr = do
s <- readIORef sr
let app = s ^. sampleApplication
-- Create the scene content
(scene, cameraNode) <- createScene app
-- Create the UI content
createInstructions app
-- Setup the viewport for displaying the scene
setupViewport app scene cameraNode
-- Hook up to the frame update ev... | 560 | false | true | 0 | 11 | 124 | 124 | 57 | 67 | null | null |
unisonweb/platform | parser-typechecker/src/Unison/Parser.hs | mit | chainr1 :: Ord v => P v a -> P v (a -> a -> a) -> P v a
chainr1 p op = go1 where
go1 = p >>= go2
go2 hd = do { op <- op; op hd <$> go1 } <|> pure hd
-- Parse `p` 1+ times, combining with `op` | 196 | chainr1 :: Ord v => P v a -> P v (a -> a -> a) -> P v a
chainr1 p op = go1 where
go1 = p >>= go2
go2 hd = do { op <- op; op hd <$> go1 } <|> pure hd
-- Parse `p` 1+ times, combining with `op` | 196 | chainr1 p op = go1 where
go1 = p >>= go2
go2 hd = do { op <- op; op hd <$> go1 } <|> pure hd
-- Parse `p` 1+ times, combining with `op` | 140 | false | true | 0 | 11 | 59 | 103 | 51 | 52 | null | null |
peter-fogg/pardoc | src/Text/Pandoc/Readers/TWiki.hs | gpl-2.0 | --
-- main parser
--
parseTWiki :: TWParser Pandoc
parseTWiki = do
bs <- mconcat <$> many block
spaces
eof
return $ B.doc bs
--
-- block parsers
-- | 158 | parseTWiki :: TWParser Pandoc
parseTWiki = do
bs <- mconcat <$> many block
spaces
eof
return $ B.doc bs
--
-- block parsers
-- | 136 | parseTWiki = do
bs <- mconcat <$> many block
spaces
eof
return $ B.doc bs
--
-- block parsers
-- | 106 | true | true | 0 | 10 | 39 | 58 | 27 | 31 | null | null |
rueshyna/gogol | gogol-compute/gen/Network/Google/Compute/Types/Product.hs | mpl-2.0 | -- | [Output Only] Server-defined URL for the resource.
thpSelfLink :: Lens' TargetHTTPSProxy (Maybe Text)
thpSelfLink
= lens _thpSelfLink (\ s a -> s{_thpSelfLink = a}) | 171 | thpSelfLink :: Lens' TargetHTTPSProxy (Maybe Text)
thpSelfLink
= lens _thpSelfLink (\ s a -> s{_thpSelfLink = a}) | 115 | thpSelfLink
= lens _thpSelfLink (\ s a -> s{_thpSelfLink = a}) | 64 | true | true | 2 | 9 | 27 | 55 | 25 | 30 | null | null |
mtlstats/mtlstats | src/Mtlstats/Actions/NewGame/GoalieInput.hs | gpl-3.0 | setGameGoalie
:: Int
-- ^ The goalie's index
-> ProgState
-> ProgState
setGameGoalie gid s = fromMaybe s $ do
let gs = s^.progMode.gameStateL
won <- gameWon gs
lost <- gameLost gs
tied <- gs^.overtimeFlag
shutout <- (==0) <$> otherScore gs
let
w = if won then 1 else 0
l = if los... | 851 | setGameGoalie
:: Int
-- ^ The goalie's index
-> ProgState
-> ProgState
setGameGoalie gid s = fromMaybe s $ do
let gs = s^.progMode.gameStateL
won <- gameWon gs
lost <- gameLost gs
tied <- gs^.overtimeFlag
shutout <- (==0) <$> otherScore gs
let
w = if won then 1 else 0
l = if los... | 851 | setGameGoalie gid s = fromMaybe s $ do
let gs = s^.progMode.gameStateL
won <- gameWon gs
lost <- gameLost gs
tied <- gs^.overtimeFlag
shutout <- (==0) <$> otherScore gs
let
w = if won then 1 else 0
l = if lost then 1 else 0
t = if tied then 1 else 0
so = if shutout then 1 else ... | 772 | false | true | 2 | 14 | 264 | 289 | 148 | 141 | null | null |
harendra-kumar/asyncly | src/Streamly/Internal/Memory/Array/Types.hs | bsd-3-clause | newArrayAligned :: forall a. Storable a => Int -> Int -> IO (Array a)
newArrayAligned = newArrayAlignedAllocWith Malloc.mallocForeignPtrAlignedBytes | 148 | newArrayAligned :: forall a. Storable a => Int -> Int -> IO (Array a)
newArrayAligned = newArrayAlignedAllocWith Malloc.mallocForeignPtrAlignedBytes | 148 | newArrayAligned = newArrayAlignedAllocWith Malloc.mallocForeignPtrAlignedBytes | 78 | false | true | 0 | 12 | 17 | 50 | 23 | 27 | null | null |
keera-studios/hsQt | Qtc/Gui/QTextCharFormat.hs | bsd-2-clause | tableCellColumnSpan :: QTextCharFormat a -> (()) -> IO (Int)
tableCellColumnSpan x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTextCharFormat_tableCellColumnSpan cobj_x0 | 193 | tableCellColumnSpan :: QTextCharFormat a -> (()) -> IO (Int)
tableCellColumnSpan x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTextCharFormat_tableCellColumnSpan cobj_x0 | 193 | tableCellColumnSpan x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTextCharFormat_tableCellColumnSpan cobj_x0 | 132 | false | true | 0 | 8 | 31 | 59 | 29 | 30 | null | null |
rueshyna/gogol | gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/BatchCreate.hs | mpl-2.0 | -- | Multipart request metadata.
abcPayload :: Lens' AnnotationsBatchCreate BatchCreateAnnotationsRequest
abcPayload
= lens _abcPayload (\ s a -> s{_abcPayload = a}) | 167 | abcPayload :: Lens' AnnotationsBatchCreate BatchCreateAnnotationsRequest
abcPayload
= lens _abcPayload (\ s a -> s{_abcPayload = a}) | 134 | abcPayload
= lens _abcPayload (\ s a -> s{_abcPayload = a}) | 61 | true | true | 0 | 9 | 22 | 42 | 22 | 20 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.