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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rsasse/tamarin-prover | lib/theory/src/Theory/Constraint/System/Dot.hs | gpl-3.0 | dropEntailedOrdConstraints :: System -> System
dropEntailedOrdConstraints se =
modify sLessAtoms (S.filter (not . entailed)) se
where
edges = rawEdgeRel se
entailed (from, to) = to `S.member` D.reachableSet [from] edges
-- | Unsound compression of the sequent that drops fully connected lear... | 342 | dropEntailedOrdConstraints :: System -> System
dropEntailedOrdConstraints se =
modify sLessAtoms (S.filter (not . entailed)) se
where
edges = rawEdgeRel se
entailed (from, to) = to `S.member` D.reachableSet [from] edges
-- | Unsound compression of the sequent that drops fully connected lear... | 342 | dropEntailedOrdConstraints se =
modify sLessAtoms (S.filter (not . entailed)) se
where
edges = rawEdgeRel se
entailed (from, to) = to `S.member` D.reachableSet [from] edges
-- | Unsound compression of the sequent that drops fully connected learns and
-- knows nodes. | 295 | false | true | 1 | 9 | 73 | 85 | 45 | 40 | null | null |
DaMSL/K3 | src/Language/K3/Analysis/SEffects/Inference.hs | apache-2.0 | fideleM :: Identifier -> FInfM ()
fideleM n = get >>= \env -> return (fidele env n) >>= put | 91 | fideleM :: Identifier -> FInfM ()
fideleM n = get >>= \env -> return (fidele env n) >>= put | 91 | fideleM n = get >>= \env -> return (fidele env n) >>= put | 57 | false | true | 0 | 10 | 18 | 47 | 23 | 24 | null | null |
BartAdv/idris-cil | src/IRTS/CodegenCil.hs | bsd-3-clause | cgOp (LZExt ITNative ITBig) [i] = load i | 41 | cgOp (LZExt ITNative ITBig) [i] = load i | 41 | cgOp (LZExt ITNative ITBig) [i] = load i | 41 | false | false | 1 | 7 | 8 | 27 | 12 | 15 | null | null |
antarestrader/sapphire | Eval.hs | gpl-3.0 | promoteError p (VError (Err cls txt xs)) = throwError $ VError $ ErrPos cls txt p xs | 84 | promoteError p (VError (Err cls txt xs)) = throwError $ VError $ ErrPos cls txt p xs | 84 | promoteError p (VError (Err cls txt xs)) = throwError $ VError $ ErrPos cls txt p xs | 84 | false | false | 0 | 8 | 16 | 46 | 21 | 25 | null | null |
brendanhay/gogol | gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Snapshot.hs | mpl-2.0 | -- | Upload protocol for media (e.g. \"raw\", \"multipart\").
pljsUploadProtocol :: Lens' ProjectsLocationsJobsSnapshot (Maybe Text)
pljsUploadProtocol
= lens _pljsUploadProtocol
(\ s a -> s{_pljsUploadProtocol = a}) | 224 | pljsUploadProtocol :: Lens' ProjectsLocationsJobsSnapshot (Maybe Text)
pljsUploadProtocol
= lens _pljsUploadProtocol
(\ s a -> s{_pljsUploadProtocol = a}) | 162 | pljsUploadProtocol
= lens _pljsUploadProtocol
(\ s a -> s{_pljsUploadProtocol = a}) | 91 | true | true | 0 | 9 | 33 | 48 | 25 | 23 | null | null |
valderman/lambnyaa | Network/LambNyaa/Parser.hs | bsd-3-clause | -- | Parse a non-negative floating point number.
positiveDouble :: Parse Double
positiveDouble = do
first <- atLeast 1 $ charP isDigit
msecond <- possibly $ char '.' *> atLeast 1 (charP isDigit)
case msecond of
Just second -> return $ read $ first ++ "." ++ second
_ -> return $ read first
-- | ... | 343 | positiveDouble :: Parse Double
positiveDouble = do
first <- atLeast 1 $ charP isDigit
msecond <- possibly $ char '.' *> atLeast 1 (charP isDigit)
case msecond of
Just second -> return $ read $ first ++ "." ++ second
_ -> return $ read first
-- | Fail on unwanted input. | 294 | positiveDouble = do
first <- atLeast 1 $ charP isDigit
msecond <- possibly $ char '.' *> atLeast 1 (charP isDigit)
case msecond of
Just second -> return $ read $ first ++ "." ++ second
_ -> return $ read first
-- | Fail on unwanted input. | 263 | true | true | 1 | 14 | 84 | 111 | 50 | 61 | null | null |
acowley/roshask | src/Ros/Internal/PathUtil.hs | bsd-3-clause | -- |Ensure that the first character in a String is capitalized.
cap :: String -> String
cap [] = [] | 99 | cap :: String -> String
cap [] = [] | 35 | cap [] = [] | 11 | true | true | 0 | 8 | 19 | 29 | 13 | 16 | null | null |
thielema/wxhaskell | wxdirect/src/CompileSTC.hs | lgpl-2.1 | pfunc :: Parser (String, String, [(String, String)])
pfunc = do ret <- identifier
stars <- option "" $ symbol "*"
func <- identifier
args <- parens $ commaSep $ arg
symbol ";"
return (ret ++ stars,func,args)
where arg = do option "" $ try $ symbol "const... | 737 | pfunc :: Parser (String, String, [(String, String)])
pfunc = do ret <- identifier
stars <- option "" $ symbol "*"
func <- identifier
args <- parens $ commaSep $ arg
symbol ";"
return (ret ++ stars,func,args)
where arg = do option "" $ try $ symbol "const"... | 736 | pfunc = do ret <- identifier
stars <- option "" $ symbol "*"
func <- identifier
args <- parens $ commaSep $ arg
symbol ";"
return (ret ++ stars,func,args)
where arg = do option "" $ try $ symbol "const"
t <- identifier
... | 683 | false | true | 0 | 11 | 247 | 188 | 89 | 99 | null | null |
ucam-cl-dtg/naps-camfort | Extensions/Units.hs | mit | insertUnits :: Decl Annotation -> State UnitEnv (Decl Annotation)
insertUnits decl@(Decl a sp@(s1, s2) d t) | not (pRefactored a || hasUnits t) =
do system <- gets linearSystem
ucats <- gets unitVarCats
badCols <- gets underdeterminedCols
uVarEnv <- gets unitVarEnv
let varCol (Var _ _ ((VarNa... | 1,137 | insertUnits :: Decl Annotation -> State UnitEnv (Decl Annotation)
insertUnits decl@(Decl a sp@(s1, s2) d t) | not (pRefactored a || hasUnits t) =
do system <- gets linearSystem
ucats <- gets unitVarCats
badCols <- gets underdeterminedCols
uVarEnv <- gets unitVarEnv
let varCol (Var _ _ ((VarNa... | 1,137 | insertUnits decl@(Decl a sp@(s1, s2) d t) | not (pRefactored a || hasUnits t) =
do system <- gets linearSystem
ucats <- gets unitVarCats
badCols <- gets underdeterminedCols
uVarEnv <- gets unitVarEnv
let varCol (Var _ _ ((VarName _ v, _):_), _, _) = case (lookup v uVarEnv) of
... | 1,071 | false | true | 31 | 12 | 393 | 403 | 216 | 187 | null | null |
brendanhay/gogol | gogol-books/gen/Network/Google/Books/Types/Product.hs | mpl-2.0 | -- | The URL for the preview image information.
gdcPreviewImageURL :: Lens' GeolayerDataCommon (Maybe Text)
gdcPreviewImageURL
= lens _gdcPreviewImageURL
(\ s a -> s{_gdcPreviewImageURL = a}) | 199 | gdcPreviewImageURL :: Lens' GeolayerDataCommon (Maybe Text)
gdcPreviewImageURL
= lens _gdcPreviewImageURL
(\ s a -> s{_gdcPreviewImageURL = a}) | 151 | gdcPreviewImageURL
= lens _gdcPreviewImageURL
(\ s a -> s{_gdcPreviewImageURL = a}) | 91 | true | true | 0 | 8 | 33 | 49 | 25 | 24 | null | null |
michaxm/haskell-hdfs-thrift-client | src-gen-thrift/ThriftHadoopFileSystem.hs | bsd-3-clause | typemap_Write_args :: T.TypeMap
typemap_Write_args = Map.fromList [(-1,("data",T.T_STRING)),(1,("handle",(T.T_STRUCT typemap_ThriftHandle)))] | 141 | typemap_Write_args :: T.TypeMap
typemap_Write_args = Map.fromList [(-1,("data",T.T_STRING)),(1,("handle",(T.T_STRUCT typemap_ThriftHandle)))] | 141 | typemap_Write_args = Map.fromList [(-1,("data",T.T_STRING)),(1,("handle",(T.T_STRUCT typemap_ThriftHandle)))] | 109 | false | true | 0 | 11 | 7 | 60 | 35 | 25 | null | null |
ksaveljev/hake-2 | src/Game/Monsters/MTank.hs | bsd-3-clause | tankFramesDeath1 :: V.Vector MFrameT
tankFramesDeath1 =
V.fromList [ MFrameT (Just GameAI.aiMove) (-7) Nothing
, MFrameT (Just GameAI.aiMove) (-2) Nothing
, MFrameT (Just GameAI.aiMove) (-2) Nothing
, MFrameT (Just GameAI.aiMove) 1 Nothing
, MFrameT... | 2,000 | tankFramesDeath1 :: V.Vector MFrameT
tankFramesDeath1 =
V.fromList [ MFrameT (Just GameAI.aiMove) (-7) Nothing
, MFrameT (Just GameAI.aiMove) (-2) Nothing
, MFrameT (Just GameAI.aiMove) (-2) Nothing
, MFrameT (Just GameAI.aiMove) 1 Nothing
, MFrameT... | 2,000 | tankFramesDeath1 =
V.fromList [ MFrameT (Just GameAI.aiMove) (-7) Nothing
, MFrameT (Just GameAI.aiMove) (-2) Nothing
, MFrameT (Just GameAI.aiMove) (-2) Nothing
, MFrameT (Just GameAI.aiMove) 1 Nothing
, MFrameT (Just GameAI.aiMove) 3 Nothing
... | 1,963 | false | true | 0 | 10 | 775 | 663 | 337 | 326 | null | null |
kadena-io/pact | src/Pact/Compile.hs | bsd-3-clause | lam :: Compile (Term Name)
lam = do
name <- freshNameRaw
tv <- freshTyVar
args <- withList' Parens $ many arg
let funTy = FunType args tv
info <- contextInfo
lamValue <- Lam name funTy <$> abstractBody valueLevel args <*> pure info
pure (TLam lamValue info) | 271 | lam :: Compile (Term Name)
lam = do
name <- freshNameRaw
tv <- freshTyVar
args <- withList' Parens $ many arg
let funTy = FunType args tv
info <- contextInfo
lamValue <- Lam name funTy <$> abstractBody valueLevel args <*> pure info
pure (TLam lamValue info) | 271 | lam = do
name <- freshNameRaw
tv <- freshTyVar
args <- withList' Parens $ many arg
let funTy = FunType args tv
info <- contextInfo
lamValue <- Lam name funTy <$> abstractBody valueLevel args <*> pure info
pure (TLam lamValue info) | 244 | false | true | 0 | 10 | 59 | 114 | 50 | 64 | null | null |
biegunka/biegunka-svn | src/Control/Biegunka/Source/Svn/Internal.hs | bsd-2-clause | svn :: Svn Url FilePath -> Script 'Actions () -> Script 'Sources ()
svn f = sourced Source
{ sourceType = "svn"
, sourceFrom = configUrl
, sourceTo = configPath
, sourceUpdate = ioUpdate config
}
where
config@Config { configUrl, configPath } =
f defaultConfig | 284 | svn :: Svn Url FilePath -> Script 'Actions () -> Script 'Sources ()
svn f = sourced Source
{ sourceType = "svn"
, sourceFrom = configUrl
, sourceTo = configPath
, sourceUpdate = ioUpdate config
}
where
config@Config { configUrl, configPath } =
f defaultConfig | 284 | svn f = sourced Source
{ sourceType = "svn"
, sourceFrom = configUrl
, sourceTo = configPath
, sourceUpdate = ioUpdate config
}
where
config@Config { configUrl, configPath } =
f defaultConfig | 216 | false | true | 0 | 8 | 69 | 107 | 54 | 53 | null | null |
Mortomes/wyah | untyedlambda/dist/build/autogen/Paths_untyedlambda.hs | gpl-3.0 | catchIO = Exception.catch | 25 | catchIO = Exception.catch | 25 | catchIO = Exception.catch | 25 | false | false | 0 | 5 | 2 | 8 | 4 | 4 | null | null |
shlevy/arithmoi | Math/NumberTheory/Moduli.hs | mit | findNonSquare :: Integer -> Integer
findNonSquare n
| rem8 n == 5 || rem8 n == 3 = 2
| otherwise = search primelist
where
primelist = [3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67]
++ sieveFrom (68 + n `rem` 4) -- prevent sharing
search (p:ps)
| j... | 461 | findNonSquare :: Integer -> Integer
findNonSquare n
| rem8 n == 5 || rem8 n == 3 = 2
| otherwise = search primelist
where
primelist = [3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67]
++ sieveFrom (68 + n `rem` 4) -- prevent sharing
search (p:ps)
| j... | 461 | findNonSquare n
| rem8 n == 5 || rem8 n == 3 = 2
| otherwise = search primelist
where
primelist = [3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67]
++ sieveFrom (68 + n `rem` 4) -- prevent sharing
search (p:ps)
| jacobi' p n == -1 = p
| o... | 425 | false | true | 0 | 11 | 158 | 191 | 101 | 90 | null | null |
green-haskell/ghc | testsuite/tests/typecheck/should_fail/tcfail177.hs | bsd-3-clause | b="" | 4 | b="" | 4 | b="" | 4 | false | false | 1 | 5 | 0 | 11 | 3 | 8 | null | null |
nevrenato/HetsAlloy | Common/AnnoParser.hs | gpl-2.0 | checkForPlaces :: [Token] -> GenParser Char st [Token]
checkForPlaces ts =
do let ps = filter isPlace ts
if null ps then nextListToks $ topMix3 ([], [])
-- topMix3 starts with square brackets
else if isSingle ps then return []
else unexpected "multiple places" | 306 | checkForPlaces :: [Token] -> GenParser Char st [Token]
checkForPlaces ts =
do let ps = filter isPlace ts
if null ps then nextListToks $ topMix3 ([], [])
-- topMix3 starts with square brackets
else if isSingle ps then return []
else unexpected "multiple places" | 306 | checkForPlaces ts =
do let ps = filter isPlace ts
if null ps then nextListToks $ topMix3 ([], [])
-- topMix3 starts with square brackets
else if isSingle ps then return []
else unexpected "multiple places" | 251 | false | true | 0 | 12 | 89 | 101 | 49 | 52 | null | null |
yihuang/cabal-install | Distribution/Client/Setup.hs | bsd-3-clause | -- ------------------------------------------------------------
-- * Other commands
-- ------------------------------------------------------------
updateCommand :: CommandUI (Flag Verbosity)
updateCommand = CommandUI {
commandName = "update",
commandSynopsis = "Updates list of known packages",
... | 506 | updateCommand :: CommandUI (Flag Verbosity)
updateCommand = CommandUI {
commandName = "update",
commandSynopsis = "Updates list of known packages",
commandDescription = Nothing,
commandUsage = usagePackages "update",
commandDefaultFlags = toFlag normal,
commandOptions =... | 357 | updateCommand = CommandUI {
commandName = "update",
commandSynopsis = "Updates list of known packages",
commandDescription = Nothing,
commandUsage = usagePackages "update",
commandDefaultFlags = toFlag normal,
commandOptions = \_ -> [optionVerbosity id const]
} | 312 | true | true | 1 | 10 | 98 | 84 | 47 | 37 | null | null |
meiersi/blaze-builder | benchmarks/BuilderBufferRange.hs | bsd-3-clause | putWord8 :: Word8 -> Put
putWord8 = putWriteSingleton writeWord8 | 64 | putWord8 :: Word8 -> Put
putWord8 = putWriteSingleton writeWord8 | 64 | putWord8 = putWriteSingleton writeWord8 | 39 | false | true | 0 | 7 | 8 | 24 | 10 | 14 | null | null |
codemac/yi-editor | src/Yi/Syntax/Haskell.hs | gpl-2.0 | -- use topDecl since we have associated types and such.
-- | Parse some guards and a where clause
pGuard :: Token -> Parser TT (Exp TT)
pGuard equalSign = PGuard
<$> some (PGuard' <$> pCAtom [ReservedOp Pipe] pEmpty <*>
-- comments are by default parsed after this
pExpr (recognizedS... | 454 | pGuard :: Token -> Parser TT (Exp TT)
pGuard equalSign = PGuard
<$> some (PGuard' <$> pCAtom [ReservedOp Pipe] pEmpty <*>
-- comments are by default parsed after this
pExpr (recognizedSometimes \\ [ReservedOp LeftArrow, Special ',']) -- those two symbols can appear in guards.
... | 354 | pGuard equalSign = PGuard
<$> some (PGuard' <$> pCAtom [ReservedOp Pipe] pEmpty <*>
-- comments are by default parsed after this
pExpr (recognizedSometimes \\ [ReservedOp LeftArrow, Special ',']) -- those two symbols can appear in guards.
<*> please (pEq equalSign)) | 316 | true | true | 2 | 13 | 118 | 103 | 50 | 53 | null | null |
fcostantini/QuickFuzz | src/Python.hs | gpl-3.0 | gInt :: Arbitrary a => Bool -> Gen(Expr a)
gInt b = do i <- arbitrary
a <- arbitrary
if b then return (Int i (show i) a)
else return (LongInt i (show i) a) | 196 | gInt :: Arbitrary a => Bool -> Gen(Expr a)
gInt b = do i <- arbitrary
a <- arbitrary
if b then return (Int i (show i) a)
else return (LongInt i (show i) a) | 196 | gInt b = do i <- arbitrary
a <- arbitrary
if b then return (Int i (show i) a)
else return (LongInt i (show i) a) | 153 | false | true | 0 | 13 | 75 | 102 | 47 | 55 | null | null |
Chase-C/Flocking-Haskell | src/Octree.hs | gpl-2.0 | combineNeighbors (x@(_, rx):xs) (y@(_, ry):ys) =
if rx > ry
then y : combineNeighbors (x:xs) ys
else x : combineNeighbors xs (y:ys) | 147 | combineNeighbors (x@(_, rx):xs) (y@(_, ry):ys) =
if rx > ry
then y : combineNeighbors (x:xs) ys
else x : combineNeighbors xs (y:ys) | 147 | combineNeighbors (x@(_, rx):xs) (y@(_, ry):ys) =
if rx > ry
then y : combineNeighbors (x:xs) ys
else x : combineNeighbors xs (y:ys) | 147 | false | false | 2 | 9 | 37 | 91 | 49 | 42 | null | null |
HJvT/com | System/Win32/Com/Automation.hs | bsd-3-clause | inFloat :: ArgIn Float
inFloat f = writeVarFloat f | 63 | inFloat :: ArgIn Float
inFloat f = writeVarFloat f | 63 | inFloat f = writeVarFloat f | 40 | false | true | 0 | 5 | 21 | 20 | 9 | 11 | null | null |
vTurbine/ghc | compiler/cmm/CLabel.hs | bsd-3-clause | pprCLbl (PlainModuleInitLabel mod)
= text "__stginit_" <> ppr mod | 68 | pprCLbl (PlainModuleInitLabel mod)
= text "__stginit_" <> ppr mod | 68 | pprCLbl (PlainModuleInitLabel mod)
= text "__stginit_" <> ppr mod | 68 | false | false | 2 | 6 | 11 | 27 | 11 | 16 | null | null |
karknu/rws | src/IPv6.hs | bsd-3-clause | testValidParse :: String -> (IPv6 -> Bool) -> Bool
testValidParse str fn =
case parse (dummyParsePacket ipv6Decl) "packet parse" str of
Left err -> trace (show err) False
Right val -> fn $ testIPv6Pkt val | 221 | testValidParse :: String -> (IPv6 -> Bool) -> Bool
testValidParse str fn =
case parse (dummyParsePacket ipv6Decl) "packet parse" str of
Left err -> trace (show err) False
Right val -> fn $ testIPv6Pkt val | 221 | testValidParse str fn =
case parse (dummyParsePacket ipv6Decl) "packet parse" str of
Left err -> trace (show err) False
Right val -> fn $ testIPv6Pkt val | 170 | false | true | 0 | 10 | 51 | 89 | 41 | 48 | null | null |
bjornbm/astro | src/Astro/Trajectory/Cropped.hs | bsd-3-clause | crop' (Just t0) Nothing = cropStart t0 | 40 | crop' (Just t0) Nothing = cropStart t0 | 40 | crop' (Just t0) Nothing = cropStart t0 | 40 | false | false | 0 | 7 | 8 | 20 | 9 | 11 | null | null |
mikegehard/haskellBookExercises | chapter11/ChapterExercises.hs | mit | printExpr (Add e1 e2) = printExpr e1 ++ " + " ++ printExpr e2 | 61 | printExpr (Add e1 e2) = printExpr e1 ++ " + " ++ printExpr e2 | 61 | printExpr (Add e1 e2) = printExpr e1 ++ " + " ++ printExpr e2 | 61 | false | false | 0 | 7 | 13 | 32 | 14 | 18 | null | null |
UCSD-PL/RefScript | src/Language/Rsc/Typecheck/Checker.hs | bsd-3-clause | tcStmt γ (VarDeclStmt l ds)
= do (ds', z) <- tcSeq tcVarDecl γ ds
return (VarDeclStmt l ds', z)
-- | return e | 124 | tcStmt γ (VarDeclStmt l ds)
= do (ds', z) <- tcSeq tcVarDecl γ ds
return (VarDeclStmt l ds', z)
-- | return e | 124 | tcStmt γ (VarDeclStmt l ds)
= do (ds', z) <- tcSeq tcVarDecl γ ds
return (VarDeclStmt l ds', z)
-- | return e | 124 | false | false | 0 | 9 | 37 | 59 | 28 | 31 | null | null |
CarstenKoenig/Countdown | src/web/CountdownGame/Database.hs | mit | getPlayers :: ConnectionPool -> IO [P.Player]
getPlayers pool = runInPool pool $ do
pls <- selectList [] []
return $ map fromEntity pls
where
fromEntity entity =
P.Player (playerNickname $ entityVal entity) (fromIntegral . fromSqlKey $ entityKey entity) | 270 | getPlayers :: ConnectionPool -> IO [P.Player]
getPlayers pool = runInPool pool $ do
pls <- selectList [] []
return $ map fromEntity pls
where
fromEntity entity =
P.Player (playerNickname $ entityVal entity) (fromIntegral . fromSqlKey $ entityKey entity) | 270 | getPlayers pool = runInPool pool $ do
pls <- selectList [] []
return $ map fromEntity pls
where
fromEntity entity =
P.Player (playerNickname $ entityVal entity) (fromIntegral . fromSqlKey $ entityKey entity) | 224 | false | true | 0 | 10 | 54 | 103 | 48 | 55 | null | null |
phischu/fragnix | builtins/base/GHC.Base.hs | bsd-3-clause | -- | Promote a function to a monad, scanning the monadic arguments from
-- left to right (cf. 'liftM2').
liftM5 :: (Monad m) => (a1 -> a2 -> a3 -> a4 -> a5 -> r) -> m a1 -> m a2 -> m a3 -> m a4 -> m a5 -> m r
liftM5 f m1 m2 m3 m4 m5 = do { x1 <- m1; x2 <- m2; x3 <- m3; x4 <- m4; x5 <- m5; return (f x1 x2 x3 x4 x5) } | 318 | liftM5 :: (Monad m) => (a1 -> a2 -> a3 -> a4 -> a5 -> r) -> m a1 -> m a2 -> m a3 -> m a4 -> m a5 -> m r
liftM5 f m1 m2 m3 m4 m5 = do { x1 <- m1; x2 <- m2; x3 <- m3; x4 <- m4; x5 <- m5; return (f x1 x2 x3 x4 x5) } | 213 | liftM5 f m1 m2 m3 m4 m5 = do { x1 <- m1; x2 <- m2; x3 <- m3; x4 <- m4; x5 <- m5; return (f x1 x2 x3 x4 x5) } | 108 | true | true | 0 | 12 | 86 | 162 | 80 | 82 | null | null |
brendanhay/gogol | gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/ConsentStores/AttributeDefinitions/Patch.hs | mpl-2.0 | -- | OAuth access token.
pldscsadpAccessToken :: Lens' ProjectsLocationsDataSetsConsentStoresAttributeDefinitionsPatch (Maybe Text)
pldscsadpAccessToken
= lens _pldscsadpAccessToken
(\ s a -> s{_pldscsadpAccessToken = a}) | 229 | pldscsadpAccessToken :: Lens' ProjectsLocationsDataSetsConsentStoresAttributeDefinitionsPatch (Maybe Text)
pldscsadpAccessToken
= lens _pldscsadpAccessToken
(\ s a -> s{_pldscsadpAccessToken = a}) | 204 | pldscsadpAccessToken
= lens _pldscsadpAccessToken
(\ s a -> s{_pldscsadpAccessToken = a}) | 97 | true | true | 1 | 9 | 29 | 52 | 25 | 27 | null | null |
gcampax/ghc | compiler/main/Packages.hs | bsd-3-clause | findBroken :: [PackageConfig] -> UnusablePackages
findBroken pkgs = go [] Map.empty pkgs
where
go avail ipids not_avail =
case partitionWith (depsAvailable ipids) not_avail of
([], not_avail) ->
Map.fromList [ (installedPackageId p, (p, MissingDependencies deps))
| ... | 1,316 | findBroken :: [PackageConfig] -> UnusablePackages
findBroken pkgs = go [] Map.empty pkgs
where
go avail ipids not_avail =
case partitionWith (depsAvailable ipids) not_avail of
([], not_avail) ->
Map.fromList [ (installedPackageId p, (p, MissingDependencies deps))
| ... | 1,316 | findBroken pkgs = go [] Map.empty pkgs
where
go avail ipids not_avail =
case partitionWith (depsAvailable ipids) not_avail of
([], not_avail) ->
Map.fromList [ (installedPackageId p, (p, MissingDependencies deps))
| (p,deps) <- not_avail ]
(new_avail, not_av... | 1,266 | false | true | 8 | 13 | 368 | 283 | 154 | 129 | null | null |
wavewave/xournal-types | src/Data/Xournal/Simple.hs | bsd-2-clause | -- |
defaultLayer :: Layer
defaultLayer = Layer { layer_strokes = [] } | 72 | defaultLayer :: Layer
defaultLayer = Layer { layer_strokes = [] } | 66 | defaultLayer = Layer { layer_strokes = [] } | 44 | true | true | 0 | 8 | 14 | 32 | 15 | 17 | null | null |
mnicoletti/pdep-utn-frba | funcional/tps/00-beta-test.hs | mit | hierro n parHabilidad = ((fst parHabilidad) * n, quot (snd parHabilidad) n, n^2) | 80 | hierro n parHabilidad = ((fst parHabilidad) * n, quot (snd parHabilidad) n, n^2) | 80 | hierro n parHabilidad = ((fst parHabilidad) * n, quot (snd parHabilidad) n, n^2) | 80 | false | false | 0 | 8 | 12 | 45 | 23 | 22 | null | null |
olsner/ghc | compiler/typecheck/TcGenDeriv.hs | bsd-3-clause | infix_RDR = dataQual_RDR gENERICS (fsLit "Infix") | 54 | infix_RDR = dataQual_RDR gENERICS (fsLit "Infix") | 54 | infix_RDR = dataQual_RDR gENERICS (fsLit "Infix") | 54 | false | false | 0 | 7 | 10 | 17 | 8 | 9 | null | null |
rueshyna/gogol | gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Product.hs | mpl-2.0 | -- | Audience segment ID that is being targeted for this ad. Applicable when
-- type is AD_SERVING_STANDARD_AD.
aAudienceSegmentId :: Lens' Ad (Maybe Int64)
aAudienceSegmentId
= lens _aAudienceSegmentId
(\ s a -> s{_aAudienceSegmentId = a})
. mapping _Coerce | 272 | aAudienceSegmentId :: Lens' Ad (Maybe Int64)
aAudienceSegmentId
= lens _aAudienceSegmentId
(\ s a -> s{_aAudienceSegmentId = a})
. mapping _Coerce | 160 | aAudienceSegmentId
= lens _aAudienceSegmentId
(\ s a -> s{_aAudienceSegmentId = a})
. mapping _Coerce | 115 | true | true | 1 | 8 | 51 | 59 | 29 | 30 | null | null |
Gurrt/software-testing | week-6/Lab6.hs | mit | -- Test the first k Carmichael numbers using the Fermat's primalty test. We take
-- the function prime_test_F from the lectures as our implementation of Fermat's
-- primalty test.
testFermatC :: Int -> IO [Bool]
testFermatC k = mapM prime_test_F (take k carmichael) | 265 | testFermatC :: Int -> IO [Bool]
testFermatC k = mapM prime_test_F (take k carmichael) | 85 | testFermatC k = mapM prime_test_F (take k carmichael) | 53 | true | true | 0 | 8 | 42 | 44 | 22 | 22 | null | null |
lamefun/haddock | haddock-api/src/Haddock/Backends/Xhtml/Decl.hs | bsd-2-clause | ppLFunSig :: Bool -> LinksInfo -> SrcSpan -> DocForDecl DocName ->
[Located DocName] -> LHsType DocName -> [(DocName, Fixity)] ->
Splice -> Unicode -> Qualification -> Html
ppLFunSig summary links loc doc lnames lty fixities splice unicode qual =
ppFunSig summary links loc doc (map unLoc lna... | 376 | ppLFunSig :: Bool -> LinksInfo -> SrcSpan -> DocForDecl DocName ->
[Located DocName] -> LHsType DocName -> [(DocName, Fixity)] ->
Splice -> Unicode -> Qualification -> Html
ppLFunSig summary links loc doc lnames lty fixities splice unicode qual =
ppFunSig summary links loc doc (map unLoc lna... | 376 | ppLFunSig summary links loc doc lnames lty fixities splice unicode qual =
ppFunSig summary links loc doc (map unLoc lnames) (unLoc lty) fixities
splice unicode qual | 177 | false | true | 0 | 14 | 91 | 128 | 64 | 64 | null | null |
izgzhen/hadrian | src/Hadrian/Haskell/Package.hs | mit | -- | The name of a Haskell package. Examples: @Cabal@, @ghc-bin@.
pkgName :: Package -> PackageName
pkgName (Package _ name _) = name | 133 | pkgName :: Package -> PackageName
pkgName (Package _ name _) = name | 67 | pkgName (Package _ name _) = name | 33 | true | true | 0 | 7 | 22 | 29 | 15 | 14 | null | null |
rkaippully/laydown | src/lib/Codec/Laydown.hs | apache-2.0 | codeBlock :: Parser Block
codeBlock = do
-- Start of code block.
many whiteSpace
hdrChars <- choice (map (try . manyN 3 . char) "~`")
spaces
typ <- manyTill anyChar (try eol)
-- The block should end with the same character as the header
let match = [head hdrChars]
body <- manyTill line (try (heading mat... | 394 | codeBlock :: Parser Block
codeBlock = do
-- Start of code block.
many whiteSpace
hdrChars <- choice (map (try . manyN 3 . char) "~`")
spaces
typ <- manyTill anyChar (try eol)
-- The block should end with the same character as the header
let match = [head hdrChars]
body <- manyTill line (try (heading mat... | 394 | codeBlock = do
-- Start of code block.
many whiteSpace
hdrChars <- choice (map (try . manyN 3 . char) "~`")
spaces
typ <- manyTill anyChar (try eol)
-- The block should end with the same character as the header
let match = [head hdrChars]
body <- manyTill line (try (heading match))
return (CodeBlock ... | 368 | false | true | 0 | 14 | 84 | 146 | 69 | 77 | null | null |
rueshyna/gogol | gogol-people/gen/Network/Google/People/Types/Product.hs | mpl-2.0 | -- | The token that can be used to retrieve the next page of results.
lcrNextPageToken :: Lens' ListConnectionsResponse (Maybe Text)
lcrNextPageToken
= lens _lcrNextPageToken
(\ s a -> s{_lcrNextPageToken = a}) | 218 | lcrNextPageToken :: Lens' ListConnectionsResponse (Maybe Text)
lcrNextPageToken
= lens _lcrNextPageToken
(\ s a -> s{_lcrNextPageToken = a}) | 148 | lcrNextPageToken
= lens _lcrNextPageToken
(\ s a -> s{_lcrNextPageToken = a}) | 85 | true | true | 0 | 9 | 39 | 48 | 25 | 23 | null | null |
alexvong1995/pandoc | src/Text/Pandoc/Writers/ICML.hs | gpl-2.0 | inlineToICML opts style (Link lst (url, title)) = do
content <- inlinesToICML opts (linkName:style) lst
state $ \st ->
let ident = if null $ links st
then 1::Int
else 1 + (fst $ head $ links st)
newst = st{ links = (ident, url):(links... | 514 | inlineToICML opts style (Link lst (url, title)) = do
content <- inlinesToICML opts (linkName:style) lst
state $ \st ->
let ident = if null $ links st
then 1::Int
else 1 + (fst $ head $ links st)
newst = st{ links = (ident, url):(links... | 514 | inlineToICML opts style (Link lst (url, title)) = do
content <- inlinesToICML opts (linkName:style) lst
state $ \st ->
let ident = if null $ links st
then 1::Int
else 1 + (fst $ head $ links st)
newst = st{ links = (ident, url):(links... | 514 | false | false | 0 | 17 | 200 | 193 | 103 | 90 | null | null |
antalsz/hs-to-coq | examples/graph/graph/test/Data/Graph/Inductive/Query/Properties.hs | mit | test_components :: (ArbGraph gr) => Proxy (gr a b) -> UConnected gr a b -> Bool
test_components _ cg = all (not . null) cs && sort (concat cs) == sort (nodes g)
where
g = connGraph cg
cs = components g
-- | The strongly connected components should be a partitioning of the
-- nodes of a graph. | 307 | test_components :: (ArbGraph gr) => Proxy (gr a b) -> UConnected gr a b -> Bool
test_components _ cg = all (not . null) cs && sort (concat cs) == sort (nodes g)
where
g = connGraph cg
cs = components g
-- | The strongly connected components should be a partitioning of the
-- nodes of a graph. | 307 | test_components _ cg = all (not . null) cs && sort (concat cs) == sort (nodes g)
where
g = connGraph cg
cs = components g
-- | The strongly connected components should be a partitioning of the
-- nodes of a graph. | 227 | false | true | 1 | 9 | 72 | 112 | 54 | 58 | null | null |
TimRichter/Idris-dev | src/Idris/DSL.hs | bsd-3-clause | expandSugar dsl (PCase fc s opts) = PCase fc (expandSugar dsl s)
(map (pmap (expandSugar dsl)) opts) | 140 | expandSugar dsl (PCase fc s opts) = PCase fc (expandSugar dsl s)
(map (pmap (expandSugar dsl)) opts) | 140 | expandSugar dsl (PCase fc s opts) = PCase fc (expandSugar dsl s)
(map (pmap (expandSugar dsl)) opts) | 140 | false | false | 0 | 11 | 56 | 56 | 27 | 29 | null | null |
haskoin/haskoin | src/Haskoin/Script/Standard.hs | unlicense | isPayWitnessPKHash _ = False | 47 | isPayWitnessPKHash _ = False | 47 | isPayWitnessPKHash _ = False | 47 | false | false | 0 | 5 | 22 | 9 | 4 | 5 | null | null |
nevrenato/HyLoRes_Source | src/HyLoRes/Logger.hs | gpl-2.0 | log :: MonadLogger m => LoggerEvent -> String -> m ()
log e msg = do mustLog <- mustLogEvent e
case mustLog of
False -> return ()
True -> performLog msg | 203 | log :: MonadLogger m => LoggerEvent -> String -> m ()
log e msg = do mustLog <- mustLogEvent e
case mustLog of
False -> return ()
True -> performLog msg | 203 | log e msg = do mustLog <- mustLogEvent e
case mustLog of
False -> return ()
True -> performLog msg | 148 | false | true | 0 | 12 | 81 | 78 | 34 | 44 | null | null |
Peaker/lamdu | src/Lamdu/Sugar/Types.hs | gpl-3.0 | -- In the future, maybe the different NameRefs will have different
-- types, but for now they're traversable
allGlobals :: Lens.Traversal (Globals name i o) (Globals name' i' o') (i [NameRef name o]) (i' [NameRef name' o'])
allGlobals f (Globals x y z) = Globals <$> f x <*> f y <*> f z | 286 | allGlobals :: Lens.Traversal (Globals name i o) (Globals name' i' o') (i [NameRef name o]) (i' [NameRef name' o'])
allGlobals f (Globals x y z) = Globals <$> f x <*> f y <*> f z | 177 | allGlobals f (Globals x y z) = Globals <$> f x <*> f y <*> f z | 62 | true | true | 0 | 9 | 53 | 108 | 53 | 55 | null | null |
srijs/haskell-resource-pool-monad | src/Control/Monad/Pool.hs | mit | withResource :: (r -> IO a) -> WithResource r a
withResource = WithResource . T.withResource | 92 | withResource :: (r -> IO a) -> WithResource r a
withResource = WithResource . T.withResource | 92 | withResource = WithResource . T.withResource | 44 | false | true | 0 | 8 | 14 | 36 | 18 | 18 | null | null |
keera-studios/hsQt | Qtc/Network/QTcpServer.hs | bsd-2-clause | serverAddress :: QTcpServer a -> (()) -> IO (QHostAddress ())
serverAddress x0 ()
= withQHostAddressResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTcpServer_serverAddress cobj_x0 | 186 | serverAddress :: QTcpServer a -> (()) -> IO (QHostAddress ())
serverAddress x0 ()
= withQHostAddressResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTcpServer_serverAddress cobj_x0 | 186 | serverAddress x0 ()
= withQHostAddressResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTcpServer_serverAddress cobj_x0 | 124 | false | true | 4 | 11 | 32 | 70 | 32 | 38 | null | null |
marklar/TagFS | src/File/Base.hs | bsd-3-clause | tReadFile ∷ DB
→ FilePath
→ NonHandle
→ ByteCount -- System.Posix.Types
→ FileOffset -- System.Posix.Types
→ IO (Either Errno ByteString)
tReadFile db filePath _ bc offset = do
dbg $ "ReadFile: " ++ filePath
maybeEntity ← fileEntityFromPath db filePath
case m... | 627 | tReadFile ∷ DB
→ FilePath
→ NonHandle
→ ByteCount -- System.Posix.Types
→ FileOffset -- System.Posix.Types
→ IO (Either Errno ByteString)
tReadFile db filePath _ bc offset = do
dbg $ "ReadFile: " ++ filePath
maybeEntity ← fileEntityFromPath db filePath
case m... | 627 | tReadFile db filePath _ bc offset = do
dbg $ "ReadFile: " ++ filePath
maybeEntity ← fileEntityFromPath db filePath
case maybeEntity of
Nothing →
return $ Left eNOENT
Just (FileEntity _ (File _ contents)) → do
--
-- FIXME: Check readability permissions.
--
return $ Right (getB... | 434 | false | true | 0 | 16 | 189 | 177 | 86 | 91 | null | null |
taktoa/HsCalculator | src/Eval.hs | gpl-3.0 | getExpr :: Closure -> Expr
getExpr (Clsr _ _ e) = e | 51 | getExpr :: Closure -> Expr
getExpr (Clsr _ _ e) = e | 51 | getExpr (Clsr _ _ e) = e | 24 | false | true | 0 | 7 | 11 | 28 | 14 | 14 | null | null |
bitemyapp/twitter-conduit | Web/Twitter/Conduit/Api.hs | bsd-2-clause | -- | Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
--
-- You can perform a request by using 'call':
--
-- @
-- res <- 'call' twInfo mgr '$' 'friendshipsIncoming'
-- @
--
-- Or, you can iterate with 'sourceWithCursor':
--
-- @
-- 'sourceWithCursor' 'frien... | 629 | friendshipsIncoming :: APIRequest FriendshipsIncoming (WithCursor IdsCursorKey UserId)
friendshipsIncoming = APIRequestGet (endpoint ++ "friendships/incoming.json") def | 168 | friendshipsIncoming = APIRequestGet (endpoint ++ "friendships/incoming.json") def | 81 | true | true | 0 | 7 | 83 | 52 | 34 | 18 | null | null |
tkonolige/inline-julia | src/Language/Julia/Inline/InternalDynamic.hs | bsd-3-clause | jlGCPop :: Int64 -> IO ()
jlGCPop i = do
release <- callJuliaUnsafe jl_eval_string (retPtr retVoid) [argString "HaskellGC.release"]
i' <- callJuliaUnsafe jl_box_int64 (retPtr retVoid) [argInt64 i]
callJuliaUnsafe jl_call1 (retPtr retVoid) [argPtr release, argPtr i']
return ()
-- TODO: do we need to call GCPush... | 390 | jlGCPop :: Int64 -> IO ()
jlGCPop i = do
release <- callJuliaUnsafe jl_eval_string (retPtr retVoid) [argString "HaskellGC.release"]
i' <- callJuliaUnsafe jl_box_int64 (retPtr retVoid) [argInt64 i]
callJuliaUnsafe jl_call1 (retPtr retVoid) [argPtr release, argPtr i']
return ()
-- TODO: do we need to call GCPush... | 390 | jlGCPop i = do
release <- callJuliaUnsafe jl_eval_string (retPtr retVoid) [argString "HaskellGC.release"]
i' <- callJuliaUnsafe jl_box_int64 (retPtr retVoid) [argInt64 i]
callJuliaUnsafe jl_call1 (retPtr retVoid) [argPtr release, argPtr i']
return ()
-- TODO: do we need to call GCPush before hand?
-- | The poi... | 364 | false | true | 0 | 11 | 66 | 117 | 54 | 63 | null | null |
google/mlir-hs | test/MLIR/ASTSpec.hs | apache-2.0 | trimLeadingSpaces :: BS.ByteString -> BS.ByteString
trimLeadingSpaces str = BS.intercalate "\n" strippedLines
where
space = fromIntegral $ ord ' '
ls = BS.split (fromIntegral $ ord '\n') str
indentDepth = fromJust $ asum $ (BS.findIndex (/= space)) <$> filter (/= "") ls
indent = BS.replicate indentDep... | 456 | trimLeadingSpaces :: BS.ByteString -> BS.ByteString
trimLeadingSpaces str = BS.intercalate "\n" strippedLines
where
space = fromIntegral $ ord ' '
ls = BS.split (fromIntegral $ ord '\n') str
indentDepth = fromJust $ asum $ (BS.findIndex (/= space)) <$> filter (/= "") ls
indent = BS.replicate indentDep... | 456 | trimLeadingSpaces str = BS.intercalate "\n" strippedLines
where
space = fromIntegral $ ord ' '
ls = BS.split (fromIntegral $ ord '\n') str
indentDepth = fromJust $ asum $ (BS.findIndex (/= space)) <$> filter (/= "") ls
indent = BS.replicate indentDepth space
strippedLines = flip fmap ls \case "" -... | 404 | false | true | 8 | 11 | 123 | 176 | 78 | 98 | null | null |
supermario/stack | src/Stack/Types/Package.hs | bsd-3-clause | dotCabalMain _ = Nothing | 24 | dotCabalMain _ = Nothing | 24 | dotCabalMain _ = Nothing | 24 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
JamesSullivan1/Mpp | src/MppSemanticAnalyzer.hs | mit | ir_arg (M_id (s,es) pos) t = case sym_lookup s t of
Ok (S_VarI (l,o,p,d)) -> case ir_exprs es t of
Ok is -> if d > 0 && length es == 0 then
Ok $ I_REF ((sym_curlevel t) - l,o)
else ir_expr (M_id (s,es) pos) t
Except e -> Except e
Except e -> semErro... | 386 | ir_arg (M_id (s,es) pos) t = case sym_lookup s t of
Ok (S_VarI (l,o,p,d)) -> case ir_exprs es t of
Ok is -> if d > 0 && length es == 0 then
Ok $ I_REF ((sym_curlevel t) - l,o)
else ir_expr (M_id (s,es) pos) t
Except e -> Except e
Except e -> semErro... | 386 | ir_arg (M_id (s,es) pos) t = case sym_lookup s t of
Ok (S_VarI (l,o,p,d)) -> case ir_exprs es t of
Ok is -> if d > 0 && length es == 0 then
Ok $ I_REF ((sym_curlevel t) - l,o)
else ir_expr (M_id (s,es) pos) t
Except e -> Except e
Except e -> semErro... | 386 | false | false | 5 | 14 | 147 | 202 | 101 | 101 | null | null |
rahulmutt/ghcvm | compiler/Eta/Prelude/PrimOp.hs | bsd-3-clause | primOpInfo AtomicWriteByteArrayOp_Int = mkGenPrimOp (fsLit "atomicWriteIntArray#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, intPrimTy, mkStatePrimTy deltaTy] (mkStatePrimTy deltaTy) | 200 | primOpInfo AtomicWriteByteArrayOp_Int = mkGenPrimOp (fsLit "atomicWriteIntArray#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, intPrimTy, mkStatePrimTy deltaTy] (mkStatePrimTy deltaTy) | 200 | primOpInfo AtomicWriteByteArrayOp_Int = mkGenPrimOp (fsLit "atomicWriteIntArray#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, intPrimTy, mkStatePrimTy deltaTy] (mkStatePrimTy deltaTy) | 200 | false | false | 0 | 7 | 15 | 51 | 26 | 25 | null | null |
bitemyapp/ganeti | src/Ganeti/HTools/Backend/Luxi.hs | bsd-2-clause | -- | Parse a node list in JSON format.
getNodes :: NameAssoc -> JSValue -> Result [(String, Node.Node)]
getNodes ktg arr = L.extractArray arr >>= mapM (parseNode ktg) | 166 | getNodes :: NameAssoc -> JSValue -> Result [(String, Node.Node)]
getNodes ktg arr = L.extractArray arr >>= mapM (parseNode ktg) | 127 | getNodes ktg arr = L.extractArray arr >>= mapM (parseNode ktg) | 62 | true | true | 0 | 10 | 27 | 57 | 29 | 28 | null | null |
kim/amazonka | amazonka-elb/gen/Network/AWS/ELB/Types.hs | mpl-2.0 | -- | 'CrossZoneLoadBalancing' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'czlbEnabled' @::@ 'Bool'
--
crossZoneLoadBalancing :: Bool -- ^ 'czlbEnabled'
-> CrossZoneLoadBalancing
crossZoneLoadBalancing p1 = CrossZoneLoadBalancing
{ _czlbEnabled = p1
... | 321 | crossZoneLoadBalancing :: Bool -- ^ 'czlbEnabled'
-> CrossZoneLoadBalancing
crossZoneLoadBalancing p1 = CrossZoneLoadBalancing
{ _czlbEnabled = p1
} | 179 | crossZoneLoadBalancing p1 = CrossZoneLoadBalancing
{ _czlbEnabled = p1
} | 80 | true | true | 0 | 6 | 67 | 36 | 22 | 14 | null | null |
chpatrick/hchip | HChip/ALU.hs | mit | aluFuncs :: [ ( Word8, String, AluFunc )]
aluFuncs =
[ ( 0x40, "ADD", add )
, ( 0x50, "SUB", sub )
, ( 0x60, "AND", and )
, ( 0x70, "OR", pureFunc (.|.) )
, ( 0x80, "XOR", pureFunc xor )
, ( 0x90, "MUL", mul )
, ( 0xA0, "DIV", div )
] | 251 | aluFuncs :: [ ( Word8, String, AluFunc )]
aluFuncs =
[ ( 0x40, "ADD", add )
, ( 0x50, "SUB", sub )
, ( 0x60, "AND", and )
, ( 0x70, "OR", pureFunc (.|.) )
, ( 0x80, "XOR", pureFunc xor )
, ( 0x90, "MUL", mul )
, ( 0xA0, "DIV", div )
] | 251 | aluFuncs =
[ ( 0x40, "ADD", add )
, ( 0x50, "SUB", sub )
, ( 0x60, "AND", and )
, ( 0x70, "OR", pureFunc (.|.) )
, ( 0x80, "XOR", pureFunc xor )
, ( 0x90, "MUL", mul )
, ( 0xA0, "DIV", div )
] | 209 | false | true | 0 | 8 | 71 | 122 | 75 | 47 | null | null |
hiratara/hs-rtb-bidder | src/Web/RTBBidder/Protocol/Adx/BidRequest/AdSlot/SlotVisibility.hs | bsd-3-clause | toMaybe'Enum :: Prelude'.Int -> P'.Maybe SlotVisibility
toMaybe'Enum 0 = Prelude'.Just NO_DETECTION | 99 | toMaybe'Enum :: Prelude'.Int -> P'.Maybe SlotVisibility
toMaybe'Enum 0 = Prelude'.Just NO_DETECTION | 99 | toMaybe'Enum 0 = Prelude'.Just NO_DETECTION | 43 | false | true | 0 | 8 | 10 | 34 | 15 | 19 | null | null |
pparkkin/eta | compiler/ETA/Prelude/PrimOp.hs | bsd-3-clause | primOpCanFail WriteByteArrayOp_Int8 = True | 42 | primOpCanFail WriteByteArrayOp_Int8 = True | 42 | primOpCanFail WriteByteArrayOp_Int8 = True | 42 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
azadbolour/boardgame | haskell-server/src/Bolour/Util/HttpUtil.hs | agpl-3.0 | -- | Headers for response to options request.
defaultOptionsHeaders :: ResponseHeaders
defaultOptionsHeaders = mkHttpResponseHeaders [
("Access-Control-Allow-Origin", "*")
, ("Access-Control-Allow-Headers", "authorization")
, ("Access-Control-Allow-Headers", "credentials")
, ("Access-Control-Allow-Hea... | 442 | defaultOptionsHeaders :: ResponseHeaders
defaultOptionsHeaders = mkHttpResponseHeaders [
("Access-Control-Allow-Origin", "*")
, ("Access-Control-Allow-Headers", "authorization")
, ("Access-Control-Allow-Headers", "credentials")
, ("Access-Control-Allow-Headers", "mode")
, ("Access-Control-Allow-He... | 396 | defaultOptionsHeaders = mkHttpResponseHeaders [
("Access-Control-Allow-Origin", "*")
, ("Access-Control-Allow-Headers", "authorization")
, ("Access-Control-Allow-Headers", "credentials")
, ("Access-Control-Allow-Headers", "mode")
, ("Access-Control-Allow-Headers", "accept")
, ("Access-Control-... | 355 | true | true | 0 | 7 | 60 | 69 | 44 | 25 | null | null |
evancz/cli | src/Develop/StaticFiles.hs | bsd-3-clause | waitingPath :: FilePath
waitingPath =
"_elm/waiting.gif" | 58 | waitingPath :: FilePath
waitingPath =
"_elm/waiting.gif" | 58 | waitingPath =
"_elm/waiting.gif" | 34 | false | true | 0 | 4 | 7 | 11 | 6 | 5 | null | null |
mattjbray/super-bomber-elf-haskell | app/Main.hs | bsd-3-clause | toWallStrength "Weak" = Weak | 28 | toWallStrength "Weak" = Weak | 28 | toWallStrength "Weak" = Weak | 28 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
Jiggins/Utils | Time.hs | gpl-3.0 | process :: Time -> Time
process = fromTuple . fixHours . fixMinutes . toTuple
where fixMinutes (h,m,s) = (h, m + s `div` 60, s `mod` 60)
fixHours (h,m,s) = ((h + m `div` 60) `mod` 24, m `mod` 60, s) | 214 | process :: Time -> Time
process = fromTuple . fixHours . fixMinutes . toTuple
where fixMinutes (h,m,s) = (h, m + s `div` 60, s `mod` 60)
fixHours (h,m,s) = ((h + m `div` 60) `mod` 24, m `mod` 60, s) | 214 | process = fromTuple . fixHours . fixMinutes . toTuple
where fixMinutes (h,m,s) = (h, m + s `div` 60, s `mod` 60)
fixHours (h,m,s) = ((h + m `div` 60) `mod` 24, m `mod` 60, s) | 190 | false | true | 0 | 10 | 56 | 130 | 74 | 56 | null | null |
ssaavedra/liquidhaskell | src/Language/Haskell/Liquid/Liquid.hs | bsd-3-clause | liquid :: [String] -> IO b
------------------------------------------------------------------------------
liquid args = getOpts args >>= runLiquid Nothing >>= exitWith . fst | 173 | liquid :: [String] -> IO b
liquid args = getOpts args >>= runLiquid Nothing >>= exitWith . fst | 94 | liquid args = getOpts args >>= runLiquid Nothing >>= exitWith . fst | 67 | true | true | 0 | 8 | 18 | 43 | 21 | 22 | null | null |
flocc-net/flocc | v0.1/Compiler/Front/Common.hs | apache-2.0 | imapUnionCheckDisjoint :: (Show v) => String -> IM.IntMap v -> IM.IntMap v -> IM.IntMap v
imapUnionCheckDisjoint msg a b = case IM.null (a `IM.intersection` b) of
True -> a `IM.union` b
False -> error $ msg ++ ":imapUnionCheckDisjoint maps not disjoint: \n"
++ (Compiler.Front.Common.showList $ I... | 497 | imapUnionCheckDisjoint :: (Show v) => String -> IM.IntMap v -> IM.IntMap v -> IM.IntMap v
imapUnionCheckDisjoint msg a b = case IM.null (a `IM.intersection` b) of
True -> a `IM.union` b
False -> error $ msg ++ ":imapUnionCheckDisjoint maps not disjoint: \n"
++ (Compiler.Front.Common.showList $ I... | 497 | imapUnionCheckDisjoint msg a b = case IM.null (a `IM.intersection` b) of
True -> a `IM.union` b
False -> error $ msg ++ ":imapUnionCheckDisjoint maps not disjoint: \n"
++ (Compiler.Front.Common.showList $ IM.toAscList a) ++ "\n"
++ (Compiler.Front.Common.showList $ IM.toAscLi... | 407 | false | true | 2 | 11 | 111 | 151 | 77 | 74 | null | null |
corngood/cabal | Cabal/Distribution/Simple/Utils.hs | bsd-3-clause | printRawCommandAndArgs :: Verbosity -> FilePath -> [String] -> IO ()
printRawCommandAndArgs verbosity path args =
printRawCommandAndArgsAndEnv verbosity path args Nothing | 174 | printRawCommandAndArgs :: Verbosity -> FilePath -> [String] -> IO ()
printRawCommandAndArgs verbosity path args =
printRawCommandAndArgsAndEnv verbosity path args Nothing | 174 | printRawCommandAndArgs verbosity path args =
printRawCommandAndArgsAndEnv verbosity path args Nothing | 105 | false | true | 0 | 9 | 23 | 47 | 23 | 24 | null | null |
8l/barrelfish | hake/ARMv7.hs | mit | objdump = Config.arm_objdump | 32 | objdump = Config.arm_objdump | 32 | objdump = Config.arm_objdump | 32 | false | false | 1 | 6 | 6 | 12 | 4 | 8 | null | null |
brendanhay/gogol | gogol-containerbuilder/gen/Network/Google/Resource/Cloudbuild/Projects/Builds/Get.hs | mpl-2.0 | -- | The name of the \`Build\` to retrieve. Format:
-- \`projects\/{project}\/locations\/{location}\/builds\/{build}\`
pbgName :: Lens' ProjectsBuildsGet (Maybe Text)
pbgName = lens _pbgName (\ s a -> s{_pbgName = a}) | 217 | pbgName :: Lens' ProjectsBuildsGet (Maybe Text)
pbgName = lens _pbgName (\ s a -> s{_pbgName = a}) | 98 | pbgName = lens _pbgName (\ s a -> s{_pbgName = a}) | 50 | true | true | 0 | 9 | 28 | 47 | 26 | 21 | null | null |
gnn/Hets | TPTP/Pretty.hs | gpl-2.0 | printTHF_quantification :: THF_quantification -> Doc
printTHF_quantification x = case x of
THF_quantification q vars ->
hsep [pretty q, brackets (printTHF_variable_list vars) <> colon]
-- <thf_variable_list> ::= <thf_variable> | <thf_variable>,<thf_variable_list> | 273 | printTHF_quantification :: THF_quantification -> Doc
printTHF_quantification x = case x of
THF_quantification q vars ->
hsep [pretty q, brackets (printTHF_variable_list vars) <> colon]
-- <thf_variable_list> ::= <thf_variable> | <thf_variable>,<thf_variable_list> | 273 | printTHF_quantification x = case x of
THF_quantification q vars ->
hsep [pretty q, brackets (printTHF_variable_list vars) <> colon]
-- <thf_variable_list> ::= <thf_variable> | <thf_variable>,<thf_variable_list> | 220 | false | true | 5 | 8 | 38 | 57 | 29 | 28 | null | null |
phaul/chess | Test/Perft/Main.hs | bsd-3-clause | ruyLopezPerftResult 6 = 1552389766 | 36 | ruyLopezPerftResult 6 = 1552389766 | 36 | ruyLopezPerftResult 6 = 1552389766 | 36 | false | false | 0 | 5 | 5 | 9 | 4 | 5 | null | null |
jwiegley/github | samples/Repos/DeployKeys/CreateDeployKey.hs | bsd-3-clause | main :: IO ()
main = do
let auth = GH.OAuth "auth_token"
eDeployKey <- GH.github auth GH.createRepoDeployKeyR "your_owner" "your_repo" newDeployKey
case eDeployKey of
Left err -> putStrLn $ "Error: " ++ show err
Right deployKey -> print deployKey | 267 | main :: IO ()
main = do
let auth = GH.OAuth "auth_token"
eDeployKey <- GH.github auth GH.createRepoDeployKeyR "your_owner" "your_repo" newDeployKey
case eDeployKey of
Left err -> putStrLn $ "Error: " ++ show err
Right deployKey -> print deployKey | 267 | main = do
let auth = GH.OAuth "auth_token"
eDeployKey <- GH.github auth GH.createRepoDeployKeyR "your_owner" "your_repo" newDeployKey
case eDeployKey of
Left err -> putStrLn $ "Error: " ++ show err
Right deployKey -> print deployKey | 253 | false | true | 0 | 11 | 58 | 91 | 41 | 50 | null | null |
ghc-android/ghc | testsuite/tests/ghci/should_run/ghcirun004.hs | bsd-3-clause | 2701 = 2700 | 11 | 2701 = 2700 | 11 | 2701 = 2700 | 11 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
HSU-MilitaryLogisticsClub/Free-Test | src/Nn.hs | mit | headSum :: InPut -> Weight -> Double
headSum [] _ = 0 | 53 | headSum :: InPut -> Weight -> Double
headSum [] _ = 0 | 53 | headSum [] _ = 0 | 16 | false | true | 0 | 6 | 11 | 26 | 13 | 13 | null | null |
andregrigon/game | src/Waterfall/Graphics.hs | mit | bufferOffset :: Integral a => a -> Ptr b
bufferOffset = plusPtr nullPtr . fromIntegral | 86 | bufferOffset :: Integral a => a -> Ptr b
bufferOffset = plusPtr nullPtr . fromIntegral | 86 | bufferOffset = plusPtr nullPtr . fromIntegral | 45 | false | true | 0 | 7 | 14 | 32 | 15 | 17 | null | null |
TomMD/crypto-api | Crypto/Classes/Exceptions.hs | bsd-3-clause | mExcept :: (X.Exception e) => e -> Maybe a -> a
mExcept e = maybe (X.throw e) id | 80 | mExcept :: (X.Exception e) => e -> Maybe a -> a
mExcept e = maybe (X.throw e) id | 80 | mExcept e = maybe (X.throw e) id | 32 | false | true | 0 | 9 | 17 | 56 | 25 | 31 | null | null |
andorp/bead | src/Bead/Persistence/Persist.hs | bsd-3-clause | courseOfAssessment :: AssessmentKey -> Persist (Maybe CourseKey)
courseOfAssessment = PersistImpl.courseOfAssessment | 116 | courseOfAssessment :: AssessmentKey -> Persist (Maybe CourseKey)
courseOfAssessment = PersistImpl.courseOfAssessment | 116 | courseOfAssessment = PersistImpl.courseOfAssessment | 51 | false | true | 0 | 8 | 9 | 26 | 13 | 13 | null | null |
drhodes/jade2hdl | app/Main.hs | bsd-3-clause | greet :: Opts -> IO ()
greet opts = do
--formatOptions opts
generateViz opts | 80 | greet :: Opts -> IO ()
greet opts = do
--formatOptions opts
generateViz opts | 80 | greet opts = do
--formatOptions opts
generateViz opts | 57 | false | true | 0 | 7 | 17 | 30 | 14 | 16 | null | null |
eallik/clint-DAV | Network/Protocol/HTTP/DAV.hs | gpl-3.0 | getContentM :: MonadIO m => DAVT m (Maybe B.ByteString, BL.ByteString)
getContentM = do
resp <- davRequest "GET" [] emptyBody
let ct = lookup hContentType (responseHeaders resp)
return (ct, responseBody resp) | 220 | getContentM :: MonadIO m => DAVT m (Maybe B.ByteString, BL.ByteString)
getContentM = do
resp <- davRequest "GET" [] emptyBody
let ct = lookup hContentType (responseHeaders resp)
return (ct, responseBody resp) | 220 | getContentM = do
resp <- davRequest "GET" [] emptyBody
let ct = lookup hContentType (responseHeaders resp)
return (ct, responseBody resp) | 149 | false | true | 0 | 12 | 41 | 87 | 41 | 46 | null | null |
arianvp/binary-serialise-cbor | Data/Binary/Serialise/CBOR/FlatTerm.hs | bsd-3-clause | -- | Validate an arbitrary @'FlatTerm'@ at an arbitrary location.
validateTerm :: Loc -> FlatTerm -> Either String FlatTerm
validateTerm _loc (TkInt _ : ts) = return ts | 176 | validateTerm :: Loc -> FlatTerm -> Either String FlatTerm
validateTerm _loc (TkInt _ : ts) = return ts | 110 | validateTerm _loc (TkInt _ : ts) = return ts | 52 | true | true | 0 | 8 | 35 | 43 | 21 | 22 | null | null |
rahulmutt/ghcvm | libraries/eta-meta/Language/Eta/Meta/Syntax.hs | bsd-3-clause | unTypeQ :: Q (TExp a) -> Q Exp
unTypeQ m = do { TExp e <- m
; return e } | 87 | unTypeQ :: Q (TExp a) -> Q Exp
unTypeQ m = do { TExp e <- m
; return e } | 87 | unTypeQ m = do { TExp e <- m
; return e } | 56 | false | true | 0 | 8 | 35 | 49 | 23 | 26 | null | null |
sethfowler/hslibvoyeur | Setup.hs | bsd-3-clause | main :: IO ()
main = defaultMainWithHooks simpleUserHooks
{ confHook = customConfHook
, buildHook = customBuildHook
, copyHook = customCopyHook
, cleanHook = customCleanHook
, hookedPrograms = hookedPrograms simpleUserHooks
++ [ makeProgram ]
} | 291 | main :: IO ()
main = defaultMainWithHooks simpleUserHooks
{ confHook = customConfHook
, buildHook = customBuildHook
, copyHook = customCopyHook
, cleanHook = customCleanHook
, hookedPrograms = hookedPrograms simpleUserHooks
++ [ makeProgram ]
} | 291 | main = defaultMainWithHooks simpleUserHooks
{ confHook = customConfHook
, buildHook = customBuildHook
, copyHook = customCopyHook
, cleanHook = customCleanHook
, hookedPrograms = hookedPrograms simpleUserHooks
++ [ makeProgram ]
} | 277 | false | true | 0 | 9 | 80 | 65 | 36 | 29 | null | null |
olsner/m3 | TypeCheck.hs | bsd-3-clause | tcParams (VarargParam:_) _ = tcError dummyLocation "Vararg param in non-last position. The type-checker should have caught this already!" | 149 | tcParams (VarargParam:_) _ = tcError dummyLocation "Vararg param in non-last position. The type-checker should have caught this already!" | 149 | tcParams (VarargParam:_) _ = tcError dummyLocation "Vararg param in non-last position. The type-checker should have caught this already!" | 149 | false | false | 0 | 7 | 29 | 23 | 11 | 12 | null | null |
meteogrid/sigym-core | src/SIGyM/GeoReference.hs | bsd-3-clause | forward :: GeoReference -> Point -> Pixel
forward ctx = fromSPixel . forwardS ctx | 81 | forward :: GeoReference -> Point -> Pixel
forward ctx = fromSPixel . forwardS ctx | 81 | forward ctx = fromSPixel . forwardS ctx | 39 | false | true | 1 | 8 | 13 | 35 | 15 | 20 | null | null |
rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/SSLCertificates/Insert.hs | mpl-2.0 | -- | Creates a value of 'SSLCertificatesInsert' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'sciProject'
--
-- * 'sciPayload'
sslCertificatesInsert
:: Text -- ^ 'sciProject'
-> SSLCertificate -- ^ 'sciPayload'
-> SSLCer... | 484 | sslCertificatesInsert
:: Text -- ^ 'sciProject'
-> SSLCertificate -- ^ 'sciPayload'
-> SSLCertificatesInsert
sslCertificatesInsert pSciProject_ pSciPayload_ =
SSLCertificatesInsert'
{ _sciProject = pSciProject_
, _sciPayload = pSciPayload_
} | 269 | sslCertificatesInsert pSciProject_ pSciPayload_ =
SSLCertificatesInsert'
{ _sciProject = pSciProject_
, _sciPayload = pSciPayload_
} | 148 | true | true | 0 | 8 | 92 | 56 | 32 | 24 | null | null |
Happstack/happstack-server | src/Happstack/Server/FileServe/GenMimeTypes.hs | bsd-3-clause | genMimeTypes :: FilePath -> String -> IO ()
genMimeTypes fp c =
do case parse (many1 parseMimeType) fp c of
(Left e) -> error (show e)
(Right pairs) ->
putStrLn $ mkMimeTypes pairs | 205 | genMimeTypes :: FilePath -> String -> IO ()
genMimeTypes fp c =
do case parse (many1 parseMimeType) fp c of
(Left e) -> error (show e)
(Right pairs) ->
putStrLn $ mkMimeTypes pairs | 205 | genMimeTypes fp c =
do case parse (many1 parseMimeType) fp c of
(Left e) -> error (show e)
(Right pairs) ->
putStrLn $ mkMimeTypes pairs | 161 | false | true | 0 | 12 | 57 | 89 | 42 | 47 | null | null |
brownplt/ovid | src/Ovid/GraphNode.hs | bsd-2-clause | isPageNavNode (PageNavNode{}) = True | 36 | isPageNavNode (PageNavNode{}) = True | 36 | isPageNavNode (PageNavNode{}) = True | 36 | false | false | 0 | 7 | 3 | 16 | 8 | 8 | null | null |
urbanslug/ghc | compiler/typecheck/TcEvidence.hs | bsd-3-clause | evTermCoercion (EvCoercion co) = co | 35 | evTermCoercion (EvCoercion co) = co | 35 | evTermCoercion (EvCoercion co) = co | 35 | false | false | 0 | 7 | 4 | 15 | 7 | 8 | null | null |
dmw/csds | test/Data/CSDS/QueueLSpec.hs | bsd-3-clause | testMapConcat :: [Int]
testMapConcat = let x :: QueueLT Int
r :: [QueueLT Int]
x = pushQ 1 $ pushQ 2 $ pushQ 3 $ pushQ 4 emptyQ
r = map singletonQ $ toListQ x
m = mapConcatQ (+ 10) r
in toListQ m | 291 | testMapConcat :: [Int]
testMapConcat = let x :: QueueLT Int
r :: [QueueLT Int]
x = pushQ 1 $ pushQ 2 $ pushQ 3 $ pushQ 4 emptyQ
r = map singletonQ $ toListQ x
m = mapConcatQ (+ 10) r
in toListQ m | 291 | testMapConcat = let x :: QueueLT Int
r :: [QueueLT Int]
x = pushQ 1 $ pushQ 2 $ pushQ 3 $ pushQ 4 emptyQ
r = map singletonQ $ toListQ x
m = mapConcatQ (+ 10) r
in toListQ m | 268 | false | true | 0 | 12 | 139 | 108 | 51 | 57 | null | null |
chemist/highlighter | src/Text/Highlighter/Lexers/Tcsh.hs | bsd-3-clause | paren' :: TokenMatcher
paren' =
[ tokNext "\\)" (Arbitrary "Keyword") Pop
, anyOf root'
] | 101 | paren' :: TokenMatcher
paren' =
[ tokNext "\\)" (Arbitrary "Keyword") Pop
, anyOf root'
] | 101 | paren' =
[ tokNext "\\)" (Arbitrary "Keyword") Pop
, anyOf root'
] | 78 | false | true | 0 | 8 | 26 | 33 | 17 | 16 | null | null |
jean-edouard/manager | rpc-proxy/Firewall.hs | gpl-2.0 | subjectFor :: Direction -> ReceivedMessage -> RuleSubject
subjectFor d ReceivedMethodCall {} = RuleSubject d TagMethodCall | 124 | subjectFor :: Direction -> ReceivedMessage -> RuleSubject
subjectFor d ReceivedMethodCall {} = RuleSubject d TagMethodCall | 124 | subjectFor d ReceivedMethodCall {} = RuleSubject d TagMethodCall | 66 | false | true | 0 | 6 | 16 | 33 | 16 | 17 | null | null |
vaibhav276/exercism_haskell | list-ops/src/ListOps.hs | mit | (++) :: [a] -> [a] -> [a]
xs ++ [] = xs | 39 | (++) :: [a] -> [a] -> [a]
xs ++ [] = xs | 39 | xs ++ [] = xs | 13 | false | true | 0 | 10 | 11 | 43 | 22 | 21 | null | null |
cies/bloodhound | tests/tests.hs | bsd-3-clause | insertOther :: BH IO ()
insertOther = do
_ <- indexDocument testIndex testMapping defaultIndexDocumentSettings otherTweet (DocId "2")
_ <- refreshIndex testIndex
return () | 177 | insertOther :: BH IO ()
insertOther = do
_ <- indexDocument testIndex testMapping defaultIndexDocumentSettings otherTweet (DocId "2")
_ <- refreshIndex testIndex
return () | 177 | insertOther = do
_ <- indexDocument testIndex testMapping defaultIndexDocumentSettings otherTweet (DocId "2")
_ <- refreshIndex testIndex
return () | 153 | false | true | 0 | 10 | 28 | 60 | 27 | 33 | null | null |
facebookincubator/duckling | Duckling/Time/RU/Rules.hs | bsd-3-clause | ruleNthTimeAfterTime :: Rule
ruleNthTimeAfterTime = Rule
{ name = "nth <time> after <time>"
, pattern =
[ dimension Ordinal
, dimension Time
, regex "после"
, dimension Time
]
, prod = \case
(Token Ordinal OrdinalData{TOrdinal.value = v}:
Token Time td1:
_:
Token Tim... | 396 | ruleNthTimeAfterTime :: Rule
ruleNthTimeAfterTime = Rule
{ name = "nth <time> after <time>"
, pattern =
[ dimension Ordinal
, dimension Time
, regex "после"
, dimension Time
]
, prod = \case
(Token Ordinal OrdinalData{TOrdinal.value = v}:
Token Time td1:
_:
Token Tim... | 396 | ruleNthTimeAfterTime = Rule
{ name = "nth <time> after <time>"
, pattern =
[ dimension Ordinal
, dimension Time
, regex "после"
, dimension Time
]
, prod = \case
(Token Ordinal OrdinalData{TOrdinal.value = v}:
Token Time td1:
_:
Token Time td2:
_) -> tt $ pred... | 367 | false | true | 0 | 16 | 126 | 136 | 70 | 66 | null | null |
davidyu/Slowpoke | hs/src/Math/matrix.hs | mit | identity4 :: Num a => Matrix 4 4 a
identity4 = identity 4 | 57 | identity4 :: Num a => Matrix 4 4 a
identity4 = identity 4 | 57 | identity4 = identity 4 | 22 | false | true | 0 | 6 | 12 | 28 | 13 | 15 | null | null |
cocreature/leksah | src/IDE/OSX.hs | gpl-2.0 | updateMenu :: Application -> UIManager -> IDEM ()
updateMenu app uiManager = do
ideR <- ask
liftIO $ do
mbMenu <- uiManagerGetWidget uiManager ("/ui/menubar" :: Text)
case mbMenu of
Just menu -> do
widgetHide menu
applicationSetMenuBar app (castToMen... | 1,660 | updateMenu :: Application -> UIManager -> IDEM ()
updateMenu app uiManager = do
ideR <- ask
liftIO $ do
mbMenu <- uiManagerGetWidget uiManager ("/ui/menubar" :: Text)
case mbMenu of
Just menu -> do
widgetHide menu
applicationSetMenuBar app (castToMen... | 1,660 | updateMenu app uiManager = do
ideR <- ask
liftIO $ do
mbMenu <- uiManagerGetWidget uiManager ("/ui/menubar" :: Text)
case mbMenu of
Just menu -> do
widgetHide menu
applicationSetMenuBar app (castToMenuShell menu)
Nothing -> return ()
... | 1,610 | false | true | 0 | 17 | 485 | 330 | 151 | 179 | null | null |
urbanslug/ghc | testsuite/tests/deSugar/should_compile/ds037.hs | bsd-3-clause | g x y = (fst (f x y), y+(1::Int)) | 33 | g x y = (fst (f x y), y+(1::Int)) | 33 | g x y = (fst (f x y), y+(1::Int)) | 33 | false | false | 0 | 8 | 8 | 39 | 20 | 19 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.