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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fabioyamate/programming-in-haskell | ch08/parser.hs | mit | ident :: Parser String
ident = lower >>= \x -> many alphanum >>= \xs -> return (x:xs) | 85 | ident :: Parser String
ident = lower >>= \x -> many alphanum >>= \xs -> return (x:xs) | 85 | ident = lower >>= \x -> many alphanum >>= \xs -> return (x:xs) | 62 | false | true | 0 | 11 | 16 | 45 | 23 | 22 | null | null |
mcschroeder/ghc | libraries/template-haskell/Language/Haskell/TH/Lib.hs | bsd-3-clause | bindS :: PatQ -> ExpQ -> StmtQ
bindS p e = liftM2 BindS p e | 59 | bindS :: PatQ -> ExpQ -> StmtQ
bindS p e = liftM2 BindS p e | 59 | bindS p e = liftM2 BindS p e | 28 | false | true | 0 | 8 | 14 | 37 | 16 | 21 | null | null |
MadSciGuys/protodb | src/ProtoDB/Parser.hs | mit | zipPad [] (m2:m2s) = (mempty, m2 ) : zipPad [] m2s | 60 | zipPad [] (m2:m2s) = (mempty, m2 ) : zipPad [] m2s | 60 | zipPad [] (m2:m2s) = (mempty, m2 ) : zipPad [] m2s | 60 | false | false | 0 | 7 | 20 | 37 | 19 | 18 | null | null |
tmcgilchrist/scheme | src/Scheme.hs | bsd-3-clause | flushStr :: Text -> IO ()
flushStr str = (putStr . T.unpack $ str) >> hFlush stdout | 83 | flushStr :: Text -> IO ()
flushStr str = (putStr . T.unpack $ str) >> hFlush stdout | 83 | flushStr str = (putStr . T.unpack $ str) >> hFlush stdout | 57 | false | true | 0 | 9 | 16 | 43 | 21 | 22 | null | null |
mstksg/hledger | hledger/Hledger/Cli/CliOptions.hs | gpl-3.0 | stripPrognamePrefix = drop (length progname + 1) | 48 | stripPrognamePrefix = drop (length progname + 1) | 48 | stripPrognamePrefix = drop (length progname + 1) | 48 | false | false | 0 | 8 | 6 | 19 | 9 | 10 | null | null |
prikhi/MyBookList | Settings.hs | gpl-3.0 | -- | @config/settings.yml@, parsed to a @Value@.
configSettingsYmlValue :: Value
configSettingsYmlValue = either throw id $ decodeEither' configSettingsYmlBS | 157 | configSettingsYmlValue :: Value
configSettingsYmlValue = either throw id $ decodeEither' configSettingsYmlBS | 108 | configSettingsYmlValue = either throw id $ decodeEither' configSettingsYmlBS | 76 | true | true | 2 | 6 | 17 | 32 | 13 | 19 | null | null |
xuanhuangyiqi/lambda-calculus-parser | lambda.hs | mit | betaReduction (GLeaf a) = GLeaf a | 57 | betaReduction (GLeaf a) = GLeaf a | 57 | betaReduction (GLeaf a) = GLeaf a | 57 | false | false | 0 | 6 | 29 | 19 | 8 | 11 | null | null |
rahulmutt/ghcvm | compiler/Eta/HsSyn/HsExpr.hs | bsd-3-clause | -- Not used at runtime
matchContextErrString (StmtCtxt (ParStmtCtxt c)) = matchContextErrString (StmtCtxt c) | 110 | matchContextErrString (StmtCtxt (ParStmtCtxt c)) = matchContextErrString (StmtCtxt c) | 87 | matchContextErrString (StmtCtxt (ParStmtCtxt c)) = matchContextErrString (StmtCtxt c) | 87 | true | false | 0 | 9 | 14 | 31 | 15 | 16 | null | null |
BioHaskell/bioace | src/Bio/Alignment/Ace.hs | gpl-3.0 | rd :: AceParser (Str,Int,Int,Int)
rd = parse1 (\t -> case t of RD a b c d -> do [x,y,z] <- readInts [b,c,d]
return (a,x,y,z)
_ -> Nothing) <?> "RD <string> <int> <int> <int>" | 249 | rd :: AceParser (Str,Int,Int,Int)
rd = parse1 (\t -> case t of RD a b c d -> do [x,y,z] <- readInts [b,c,d]
return (a,x,y,z)
_ -> Nothing) <?> "RD <string> <int> <int> <int>" | 249 | rd = parse1 (\t -> case t of RD a b c d -> do [x,y,z] <- readInts [b,c,d]
return (a,x,y,z)
_ -> Nothing) <?> "RD <string> <int> <int> <int>" | 215 | false | true | 0 | 15 | 108 | 118 | 62 | 56 | null | null |
google-research/dex-lang | src/lib/JIT.hs | bsd-3-clause | ptxSpecialReg :: L.Name -> ExternFunSpec
ptxSpecialReg name = ExternFunSpec name i32 [] [FA.ReadNone, FA.NoUnwind] [] | 117 | ptxSpecialReg :: L.Name -> ExternFunSpec
ptxSpecialReg name = ExternFunSpec name i32 [] [FA.ReadNone, FA.NoUnwind] [] | 117 | ptxSpecialReg name = ExternFunSpec name i32 [] [FA.ReadNone, FA.NoUnwind] [] | 76 | false | true | 0 | 7 | 14 | 45 | 23 | 22 | null | null |
shlevy/ghc | compiler/prelude/THNames.hs | bsd-3-clause | fromThenToEName = libFun (fsLit "fromThenToE") fromThenToEIdKey | 63 | fromThenToEName = libFun (fsLit "fromThenToE") fromThenToEIdKey | 63 | fromThenToEName = libFun (fsLit "fromThenToE") fromThenToEIdKey | 63 | false | false | 0 | 7 | 5 | 17 | 8 | 9 | null | null |
matthewbauer/eu4-parser | Generator.hs | gpl-3.0 | toMap'' :: ClausewitzText.Value -> Value
toMap'' (ClausewitzText.Identifier s) = String (pack s) | 96 | toMap'' :: ClausewitzText.Value -> Value
toMap'' (ClausewitzText.Identifier s) = String (pack s) | 96 | toMap'' (ClausewitzText.Identifier s) = String (pack s) | 55 | false | true | 0 | 8 | 11 | 37 | 18 | 19 | null | null |
xnning/fcore | lib/typeCheck/TypeCheck.hs | bsd-2-clause | checkExpr expr@(L loc (Proj e i))
= do (t, e') <- checkExpr e
case t of
Product ts
| 1 <= i && i <= length ts -> return (ts !! (i - 1), L loc $ Proj e' i)
| otherwise -> throwError $ IndexTooLarge `withExpr` expr
_ -> throwError $ ProjectionOfNonProduct `withExpr` e | 315 | checkExpr expr@(L loc (Proj e i))
= do (t, e') <- checkExpr e
case t of
Product ts
| 1 <= i && i <= length ts -> return (ts !! (i - 1), L loc $ Proj e' i)
| otherwise -> throwError $ IndexTooLarge `withExpr` expr
_ -> throwError $ ProjectionOfNonProduct `withExpr` e | 315 | checkExpr expr@(L loc (Proj e i))
= do (t, e') <- checkExpr e
case t of
Product ts
| 1 <= i && i <= length ts -> return (ts !! (i - 1), L loc $ Proj e' i)
| otherwise -> throwError $ IndexTooLarge `withExpr` expr
_ -> throwError $ ProjectionOfNonProduct `withExpr` e | 315 | false | false | 0 | 15 | 103 | 148 | 73 | 75 | null | null |
JacquesCarette/literate-scientific-software | code/drasil-gool/GOOL/Drasil/LanguageRenderer/LanguagePolymorphic.hs | bsd-2-clause | int :: (RenderSym repr) => VS (repr (Type repr))
int = toState $ typeFromData Integer "int" (text "int") | 104 | int :: (RenderSym repr) => VS (repr (Type repr))
int = toState $ typeFromData Integer "int" (text "int") | 104 | int = toState $ typeFromData Integer "int" (text "int") | 55 | false | true | 2 | 11 | 17 | 58 | 27 | 31 | null | null |
nh2/WashNGo | WASH/HTML/HTMLPrelude.hs | bsd-3-clause | tt f elt = elt `add` f (make TT) | 32 | tt f elt = elt `add` f (make TT) | 32 | tt f elt = elt `add` f (make TT) | 32 | false | false | 0 | 8 | 8 | 26 | 13 | 13 | null | null |
Macil-dev/verhface-ll | src/Bindings/Verba/ErrorCodes.hs | unlicense | verr :: Int -> VerbaError
verr 0 = VerbaError 0 "NO_ERROR" "Нет ошибки. Функция завершилась успешно" | 116 | verr :: Int -> VerbaError
verr 0 = VerbaError 0 "NO_ERROR" "Нет ошибки. Функция завершилась успешно" | 116 | verr 0 = VerbaError 0 "NO_ERROR" "Нет ошибки. Функция завершилась успешно" | 90 | false | true | 0 | 7 | 31 | 30 | 13 | 17 | null | null |
sdiehl/ghc | testsuite/tests/simplCore/should_run/T13429a.hs | bsd-3-clause | addDigits3 m1 (Four a b c d) e f g (Two h i) m2 =
appendTree3 m1 (node3 a b c) (node3 d e f) (node3 g h i) m2 | 113 | addDigits3 m1 (Four a b c d) e f g (Two h i) m2 =
appendTree3 m1 (node3 a b c) (node3 d e f) (node3 g h i) m2 | 113 | addDigits3 m1 (Four a b c d) e f g (Two h i) m2 =
appendTree3 m1 (node3 a b c) (node3 d e f) (node3 g h i) m2 | 113 | false | false | 1 | 7 | 33 | 89 | 40 | 49 | null | null |
roberth/uu-helium | test/knowntofix/TestTypeSynonyms.hs | gpl-3.0 | ijsberen :: IJsberen
ijsberen = [ijsbeer, ijsbeer] | 50 | ijsberen :: IJsberen
ijsberen = [ijsbeer, ijsbeer] | 50 | ijsberen = [ijsbeer, ijsbeer] | 29 | false | true | 0 | 6 | 6 | 24 | 11 | 13 | null | null |
ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/recip_1.hs | mit | recip :: Ratio MyInt -> Ratio MyInt;
recip (CnPc x y) = CnPc y x | 64 | recip :: Ratio MyInt -> Ratio MyInt
recip (CnPc x y) = CnPc y x | 63 | recip (CnPc x y) = CnPc y x | 27 | false | true | 0 | 7 | 14 | 38 | 18 | 20 | null | null |
rubenpieters/gre-project | shared/src/GameState.hs | bsd-3-clause | evalCE' (Combo cid :>>= k) o = do
evalCombo o cid
evalCE (k ()) o | 69 | evalCE' (Combo cid :>>= k) o = do
evalCombo o cid
evalCE (k ()) o | 69 | evalCE' (Combo cid :>>= k) o = do
evalCombo o cid
evalCE (k ()) o | 69 | false | false | 1 | 11 | 18 | 48 | 20 | 28 | null | null |
oldmanmike/ghc | compiler/prelude/TysWiredIn.hs | bsd-3-clause | boxedTupleArr, unboxedTupleArr :: Array Int (TyCon,DataCon)
boxedTupleArr = listArray (0,mAX_TUPLE_SIZE) [mk_tuple Boxed i | i <- [0..mAX_TUPLE_SIZE]] | 154 | boxedTupleArr, unboxedTupleArr :: Array Int (TyCon,DataCon)
boxedTupleArr = listArray (0,mAX_TUPLE_SIZE) [mk_tuple Boxed i | i <- [0..mAX_TUPLE_SIZE]] | 154 | boxedTupleArr = listArray (0,mAX_TUPLE_SIZE) [mk_tuple Boxed i | i <- [0..mAX_TUPLE_SIZE]] | 94 | false | true | 3 | 9 | 20 | 65 | 31 | 34 | null | null |
da-x/lamdu | Lamdu/GUI/ExpressionGui/Monad.hs | gpl-3.0 | readConfig :: Monad m => ExprGuiM m Config
readConfig = ExprGuiM $ Lens.view aConfig | 84 | readConfig :: Monad m => ExprGuiM m Config
readConfig = ExprGuiM $ Lens.view aConfig | 84 | readConfig = ExprGuiM $ Lens.view aConfig | 41 | false | true | 2 | 7 | 13 | 38 | 16 | 22 | null | null |
beni55/haste-compiler | libraries/ghc-7.10/base/System/IO.hs | bsd-3-clause | pathSeparator = '\\' | 20 | pathSeparator = '\\' | 20 | pathSeparator = '\\' | 20 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
romanb/amazonka | amazonka-autoscaling/gen/Network/AWS/AutoScaling/Types.hs | mpl-2.0 | -- | The name of the Auto Scaling group.
aAutoScalingGroupName :: Lens' Activity Text
aAutoScalingGroupName =
lens _aAutoScalingGroupName (\s a -> s { _aAutoScalingGroupName = a }) | 184 | aAutoScalingGroupName :: Lens' Activity Text
aAutoScalingGroupName =
lens _aAutoScalingGroupName (\s a -> s { _aAutoScalingGroupName = a }) | 143 | aAutoScalingGroupName =
lens _aAutoScalingGroupName (\s a -> s { _aAutoScalingGroupName = a }) | 98 | true | true | 0 | 9 | 30 | 40 | 22 | 18 | null | null |
henrytill/deviser | src/Deviser/Types.hs | bsd-3-clause | showVal (Vector xs) =
T.concat ["#(", T.pack (show xs), ")"] | 62 | showVal (Vector xs) =
T.concat ["#(", T.pack (show xs), ")"] | 62 | showVal (Vector xs) =
T.concat ["#(", T.pack (show xs), ")"] | 62 | false | false | 0 | 9 | 11 | 40 | 20 | 20 | null | null |
meditans/lambdaEval | src/ScottEncoding.hs | bsd-3-clause | -- ** Schemi di ricorsione per le algebre debolmente iniziali
-- *** Catamorfismi
-- Questa e' la ricetta generale del catamorfismo: notare come ricalca il
-- corrispondente diagramma categoriale.
cata = p ^ (fix # (f ^ comp3 # p # (fNat # f) # outN)) | 253 | cata = p ^ (fix # (f ^ comp3 # p # (fNat # f) # outN)) | 54 | cata = p ^ (fix # (f ^ comp3 # p # (fNat # f) # outN)) | 54 | true | false | 0 | 12 | 47 | 47 | 27 | 20 | null | null |
scottgw/demonL | Language/DemonL/GoalSerial.hs | bsd-3-clause | goalAction i = ASSERT $ APP (VarE "actions") [LitI i] | 53 | goalAction i = ASSERT $ APP (VarE "actions") [LitI i] | 53 | goalAction i = ASSERT $ APP (VarE "actions") [LitI i] | 53 | false | false | 0 | 8 | 9 | 30 | 14 | 16 | null | null |
ledyba/hs-java | JVM/Builder/Instructions.hs | lgpl-3.0 | frem :: Generator e g => g e ()
frem = i0 FREM | 49 | frem :: Generator e g => g e ()
frem = i0 FREM | 49 | frem = i0 FREM | 17 | false | true | 0 | 7 | 15 | 30 | 14 | 16 | null | null |
brendanhay/gogol | gogol-iam/gen/Network/Google/Resource/IAM/Organizations/Roles/List.hs | mpl-2.0 | -- | Optional view for the returned Role objects. When \`FULL\` is specified,
-- the \`includedPermissions\` field is returned, which includes a list of
-- all permissions in the role. The default value is \`BASIC\`, which does
-- not return the \`includedPermissions\` field.
orlView :: Lens' OrganizationsRolesList (Ma... | 402 | orlView :: Lens' OrganizationsRolesList (Maybe OrganizationsRolesListView)
orlView = lens _orlView (\ s a -> s{_orlView = a}) | 125 | orlView = lens _orlView (\ s a -> s{_orlView = a}) | 50 | true | true | 1 | 9 | 59 | 52 | 28 | 24 | null | null |
apyrgio/ganeti | src/Ganeti/OpCodes.hs | bsd-2-clause | opSummaryVal OpInstanceFailover { opInstanceName = s } = Just s | 63 | opSummaryVal OpInstanceFailover { opInstanceName = s } = Just s | 63 | opSummaryVal OpInstanceFailover { opInstanceName = s } = Just s | 63 | false | false | 0 | 7 | 9 | 22 | 10 | 12 | null | null |
kim/amazonka | amazonka-swf/gen/Network/AWS/SWF/Types.hs | mpl-2.0 | -- | Identity of the worker that was assigned this task. This aids diagnostics
-- when problems arise. The form of this identity is user defined.
atseaIdentity :: Lens' ActivityTaskStartedEventAttributes (Maybe Text)
atseaIdentity = lens _atseaIdentity (\s a -> s { _atseaIdentity = a }) | 287 | atseaIdentity :: Lens' ActivityTaskStartedEventAttributes (Maybe Text)
atseaIdentity = lens _atseaIdentity (\s a -> s { _atseaIdentity = a }) | 141 | atseaIdentity = lens _atseaIdentity (\s a -> s { _atseaIdentity = a }) | 70 | true | true | 0 | 9 | 44 | 47 | 26 | 21 | null | null |
yoo-e/weixin-mp-sdk | WeiXin/PublicPlatform/Utils.hs | mit | parseMsgErrorToString (Right x) = Right x | 45 | parseMsgErrorToString (Right x) = Right x | 45 | parseMsgErrorToString (Right x) = Right x | 45 | false | false | 0 | 6 | 9 | 19 | 8 | 11 | null | null |
kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/ImportVolume.hs | mpl-2.0 | -- | An optional description for the volume being imported.
ivDescription :: Lens' ImportVolume (Maybe Text)
ivDescription = lens _ivDescription (\s a -> s { _ivDescription = a }) | 179 | ivDescription :: Lens' ImportVolume (Maybe Text)
ivDescription = lens _ivDescription (\s a -> s { _ivDescription = a }) | 119 | ivDescription = lens _ivDescription (\s a -> s { _ivDescription = a }) | 70 | true | true | 2 | 9 | 28 | 55 | 25 | 30 | null | null |
flipstone/orville | orville-postgresql/test/Migrations/MigrateTest.hs | mit | showDDL :: O.MigrationPlan -> String
showDDL =
List.intercalate "\n\n" . map O.migrationItemDDL . O.migrationPlanItems | 120 | showDDL :: O.MigrationPlan -> String
showDDL =
List.intercalate "\n\n" . map O.migrationItemDDL . O.migrationPlanItems | 120 | showDDL =
List.intercalate "\n\n" . map O.migrationItemDDL . O.migrationPlanItems | 83 | false | true | 0 | 8 | 15 | 44 | 19 | 25 | null | null |
sdiehl/llvm-codegen | src/LLVM/Codegen/Instructions.hs | mit | uitofp :: Type -> Operand -> Codegen Operand
uitofp ty a = instr $ UIToFP a ty [] | 81 | uitofp :: Type -> Operand -> Codegen Operand
uitofp ty a = instr $ UIToFP a ty [] | 81 | uitofp ty a = instr $ UIToFP a ty [] | 36 | false | true | 2 | 8 | 17 | 45 | 20 | 25 | null | null |
xu-hao/QueryArrow | QueryArrow-db-filesystem/src/QueryArrow/FileSystem/Commands.hs | bsd-3-clause | interpret (FindFileById p next) = do
fs <- runPredicateMaybe (LFindFileById p)
next fs | 92 | interpret (FindFileById p next) = do
fs <- runPredicateMaybe (LFindFileById p)
next fs | 92 | interpret (FindFileById p next) = do
fs <- runPredicateMaybe (LFindFileById p)
next fs | 92 | false | false | 0 | 10 | 18 | 39 | 17 | 22 | null | null |
CindyLinz/Haskell-Perl | src/Perl/Monad.hs | mit | releaseSVPool :: PtrPerl -> [SV] -> IO ()
releaseSVPool perl = mapM_ (svREFCNT_dec perl) | 88 | releaseSVPool :: PtrPerl -> [SV] -> IO ()
releaseSVPool perl = mapM_ (svREFCNT_dec perl) | 88 | releaseSVPool perl = mapM_ (svREFCNT_dec perl) | 46 | false | true | 0 | 8 | 13 | 39 | 19 | 20 | null | null |
fishbee/pfds-haskell | chapter3/Ex3_6.hs | gpl-3.0 | sampleHeap :: BinomialTopRankHeap Char
sampleHeap = foldl (\h -> \c -> insert c h) empty ['a', 'b', 'c', 'd', 'g', 'f', 'h'] | 124 | sampleHeap :: BinomialTopRankHeap Char
sampleHeap = foldl (\h -> \c -> insert c h) empty ['a', 'b', 'c', 'd', 'g', 'f', 'h'] | 124 | sampleHeap = foldl (\h -> \c -> insert c h) empty ['a', 'b', 'c', 'd', 'g', 'f', 'h'] | 85 | false | true | 0 | 9 | 21 | 60 | 34 | 26 | null | null |
rueshyna/gogol | gogol-monitoring/gen/Network/Google/Monitoring/Types/Product.hs | mpl-2.0 | -- | The data source for the collectd value. For example there are two data
-- sources for network measurements: \"rx\" and \"tx\".
cvDataSourceName :: Lens' CollectdValue (Maybe Text)
cvDataSourceName
= lens _cvDataSourceName
(\ s a -> s{_cvDataSourceName = a}) | 270 | cvDataSourceName :: Lens' CollectdValue (Maybe Text)
cvDataSourceName
= lens _cvDataSourceName
(\ s a -> s{_cvDataSourceName = a}) | 138 | cvDataSourceName
= lens _cvDataSourceName
(\ s a -> s{_cvDataSourceName = a}) | 85 | true | true | 1 | 9 | 47 | 53 | 26 | 27 | null | null |
flowbox-public/fgl | Data/Graph/Inductive/Graph.hs | bsd-3-clause | -- | All 'Node's linked from in a 'Context'.
pre' :: Context a b -> [Node]
pre' = map snd . context1l' | 102 | pre' :: Context a b -> [Node]
pre' = map snd . context1l' | 57 | pre' = map snd . context1l' | 27 | true | true | 1 | 8 | 21 | 39 | 17 | 22 | null | null |
christiaanb/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | m1TyConKey = mkPreludeTyConUnique 140 | 40 | m1TyConKey = mkPreludeTyConUnique 140 | 40 | m1TyConKey = mkPreludeTyConUnique 140 | 40 | false | false | 0 | 5 | 6 | 9 | 4 | 5 | null | null |
melted/idris-chez | src/Chez/Operators.hs | isc | compileOp (LLt ty) xs = ucmp ty "<" xs | 38 | compileOp (LLt ty) xs = ucmp ty "<" xs | 38 | compileOp (LLt ty) xs = ucmp ty "<" xs | 38 | false | false | 1 | 6 | 8 | 28 | 11 | 17 | null | null |
kosmoskatten/nats-client | src/Network/Nats/Writer.hs | mit | -- | The translate a Field to a Builder and prepend it to the list of
-- Builders.
writeField :: [Builder] -> (ByteString, Maybe Field) -> [Builder]
writeField xs (name, Just (Field value)) =
let x = byteString name <> charUtf8 ':' <> write value
in x:xs | 263 | writeField :: [Builder] -> (ByteString, Maybe Field) -> [Builder]
writeField xs (name, Just (Field value)) =
let x = byteString name <> charUtf8 ':' <> write value
in x:xs | 180 | writeField xs (name, Just (Field value)) =
let x = byteString name <> charUtf8 ':' <> write value
in x:xs | 114 | true | true | 0 | 11 | 55 | 88 | 45 | 43 | null | null |
gallais/potpourri | haskell/hsubst/TypeChecking.hs | gpl-3.0 | checkNf :: (Eq a, Eq b, Show a, Show b) => Context a b -> Ty Nf a b -> Nf a b -> ()
checkNf ga (TyElt (NfTyp ty)) te = checkNf ga ty te | 135 | checkNf :: (Eq a, Eq b, Show a, Show b) => Context a b -> Ty Nf a b -> Nf a b -> ()
checkNf ga (TyElt (NfTyp ty)) te = checkNf ga ty te | 135 | checkNf ga (TyElt (NfTyp ty)) te = checkNf ga ty te | 51 | false | true | 0 | 14 | 35 | 100 | 47 | 53 | null | null |
abakst/Zoepis | Zoepis/ZGraphics.hs | gpl-3.0 | applyWindowMsg ShowWindow = windowStatus $= Shown | 49 | applyWindowMsg ShowWindow = windowStatus $= Shown | 49 | applyWindowMsg ShowWindow = windowStatus $= Shown | 49 | false | false | 0 | 5 | 5 | 13 | 6 | 7 | null | null |
ppenzin/neko-lib-hs | src/lib/Binary/Neko/Instructions.hs | bsd-2-clause | opcode (PhysCompare) = (62, Nothing) | 37 | opcode (PhysCompare) = (62, Nothing) | 37 | opcode (PhysCompare) = (62, Nothing) | 37 | false | false | 0 | 6 | 5 | 18 | 10 | 8 | null | null |
cbrghostrider/Hacking | Misc/RWH/chapter1n2n3.hs | mit | heightMyTree :: TreeType a -> Int
heightMyTree Empty = 0 | 56 | heightMyTree :: TreeType a -> Int
heightMyTree Empty = 0 | 56 | heightMyTree Empty = 0 | 22 | false | true | 0 | 6 | 9 | 21 | 10 | 11 | null | null |
Purview/purview | src/Graphics/Forensics/Runner/Console.hs | gpl-3.0 | makeModes :: String -> Annotate Ann
makeModes pname =
modes_
[ record (ModeAnalyse "" "")
[ modeAnalyser :=
def
+= typ "ANALYSER"
+= argPos 0
, modeFile :=
def
+= typ "IMAGE"
+= argPos 1
]
+= help "Analyses an image with the specified analyser"
+= name "analys... | 663 | makeModes :: String -> Annotate Ann
makeModes pname =
modes_
[ record (ModeAnalyse "" "")
[ modeAnalyser :=
def
+= typ "ANALYSER"
+= argPos 0
, modeFile :=
def
+= typ "IMAGE"
+= argPos 1
]
+= help "Analyses an image with the specified analyser"
+= name "analys... | 663 | makeModes pname =
modes_
[ record (ModeAnalyse "" "")
[ modeAnalyser :=
def
+= typ "ANALYSER"
+= argPos 0
, modeFile :=
def
+= typ "IMAGE"
+= argPos 1
]
+= help "Analyses an image with the specified analyser"
+= name "analyse"
, record ModeList []
+= hel... | 627 | false | true | 6 | 12 | 212 | 205 | 95 | 110 | null | null |
jrclogic/SMCDEL | src/SMCDEL/Examples/SimpleS5.hs | gpl-2.0 | exampleResult :: KnowScene
exampleResult = exampleStart `update` exampleEvent | 77 | exampleResult :: KnowScene
exampleResult = exampleStart `update` exampleEvent | 77 | exampleResult = exampleStart `update` exampleEvent | 50 | false | true | 0 | 6 | 7 | 24 | 11 | 13 | null | null |
lukexi/ghc-7.8-arm64 | compiler/codeGen/StgCmmProf.hs | bsd-3-clause | enterCostCentreFun :: CostCentreStack -> CmmExpr -> FCode ()
enterCostCentreFun ccs closure =
ifProfiling $ do
if isCurrentCCS ccs
then do dflags <- getDynFlags
emitRtsCall rtsPackageId (fsLit "enterFunCCS")
[(CmmReg (CmmGlobal BaseReg), AddrHint),
(cos... | 423 | enterCostCentreFun :: CostCentreStack -> CmmExpr -> FCode ()
enterCostCentreFun ccs closure =
ifProfiling $ do
if isCurrentCCS ccs
then do dflags <- getDynFlags
emitRtsCall rtsPackageId (fsLit "enterFunCCS")
[(CmmReg (CmmGlobal BaseReg), AddrHint),
(cos... | 423 | enterCostCentreFun ccs closure =
ifProfiling $ do
if isCurrentCCS ccs
then do dflags <- getDynFlags
emitRtsCall rtsPackageId (fsLit "enterFunCCS")
[(CmmReg (CmmGlobal BaseReg), AddrHint),
(costCentreFrom dflags closure, AddrHint)] False
else retu... | 362 | false | true | 2 | 16 | 118 | 112 | 55 | 57 | null | null |
sourcegraph/preprocess-haskell | src/Language/Haskell/Preprocess/Examples.hs | bsd-3-clause | parseEntireProject ∷ FilePath → IO (EntireProject MaybeModule)
parseEntireProject root = do
pkgFiles ← S.toList <$> scan root
mapM (loadPkg root parseCode) $ M.fromList $ (\x→(x,x)) <$> pkgFiles | 198 | parseEntireProject ∷ FilePath → IO (EntireProject MaybeModule)
parseEntireProject root = do
pkgFiles ← S.toList <$> scan root
mapM (loadPkg root parseCode) $ M.fromList $ (\x→(x,x)) <$> pkgFiles | 198 | parseEntireProject root = do
pkgFiles ← S.toList <$> scan root
mapM (loadPkg root parseCode) $ M.fromList $ (\x→(x,x)) <$> pkgFiles | 135 | false | true | 0 | 12 | 30 | 90 | 43 | 47 | null | null |
bravit/Idris-dev | src/IRTS/CodegenC.hs | bsd-3-clause | toFunType _ = FAny | 18 | toFunType _ = FAny | 18 | toFunType _ = FAny | 18 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
MaxGabriel/hackvote-yesod | Handler/Voting.hs | cc0-1.0 | -- Individuals can vote on 3 projects per hackday; remaining votes are stored in a session
readInt :: Text -> Maybe Int
readInt text = case TR.decimal text of
Right (int,_) -> Just int
Left _ -> Nothing
-- Gets the remaining votes for the given HackDay
-- If not present in the session... | 351 | readInt :: Text -> Maybe Int
readInt text = case TR.decimal text of
Right (int,_) -> Just int
Left _ -> Nothing
-- Gets the remaining votes for the given HackDay
-- If not present in the session, sets it to the default value. | 259 | readInt text = case TR.decimal text of
Right (int,_) -> Just int
Left _ -> Nothing
-- Gets the remaining votes for the given HackDay
-- If not present in the session, sets it to the default value. | 230 | true | true | 0 | 9 | 94 | 60 | 30 | 30 | null | null |
opentower/carnap | Carnap-Server/Util/Data.hs | gpl-3.0 | jsonSerialize = decodeUtf8 . encode | 35 | jsonSerialize = decodeUtf8 . encode | 35 | jsonSerialize = decodeUtf8 . encode | 35 | false | false | 2 | 5 | 4 | 15 | 5 | 10 | null | null |
ucla-pls/wiretap-tools | src/Pipes/Missing.hs | gpl-3.0 | receive :: Monad m
=> SubROEffect' a m a
receive = lift await | 63 | receive :: Monad m
=> SubROEffect' a m a
receive = lift await | 63 | receive = lift await | 20 | false | true | 0 | 6 | 14 | 28 | 13 | 15 | null | null |
veniversum/fractal-haskell | src/Coloring.hs | bsd-3-clause | -- |Helper function for hsvBlend
dmod :: RealFrac n => n -> n -> n
dmod a m = a - m * fromInteger (floor (a/m)) | 111 | dmod :: RealFrac n => n -> n -> n
dmod a m = a - m * fromInteger (floor (a/m)) | 78 | dmod a m = a - m * fromInteger (floor (a/m)) | 44 | true | true | 0 | 10 | 25 | 56 | 28 | 28 | null | null |
sinelaw/lamdu | Lamdu/GUI/CodeEdit.hs | gpl-3.0 | make ::
(MonadA m, Typeable1 m) =>
Env m -> Guid -> CT m (Widget (T m))
make env rootGuid = do
prop <- lift . lift $ Anchors.panes (codeProps env) ^. Transaction.mkProperty
(sugarPanes, sugarClipboards) <-
(,) (makePanes prop rootGuid) <$> (lift . lift . getClipboards) (codeProps env)
panesEdit <- makePan... | 504 | make ::
(MonadA m, Typeable1 m) =>
Env m -> Guid -> CT m (Widget (T m))
make env rootGuid = do
prop <- lift . lift $ Anchors.panes (codeProps env) ^. Transaction.mkProperty
(sugarPanes, sugarClipboards) <-
(,) (makePanes prop rootGuid) <$> (lift . lift . getClipboards) (codeProps env)
panesEdit <- makePan... | 504 | make env rootGuid = do
prop <- lift . lift $ Anchors.panes (codeProps env) ^. Transaction.mkProperty
(sugarPanes, sugarClipboards) <-
(,) (makePanes prop rootGuid) <$> (lift . lift . getClipboards) (codeProps env)
panesEdit <- makePanesEdit env sugarPanes $ WidgetIds.fromGuid rootGuid
clipboardsEdit <- make... | 428 | false | true | 0 | 13 | 103 | 200 | 95 | 105 | null | null |
pxqr/algorithm-wm | src/TC.hs | mit | tyInfPat (VarP _) = freshVar | 31 | tyInfPat (VarP _) = freshVar | 31 | tyInfPat (VarP _) = freshVar | 31 | false | false | 0 | 7 | 7 | 15 | 7 | 8 | null | null |
asib/cryptopals-haskell | Crypto.hs | mit | genNumsMT :: S.Seq W.Word32 -> S.Seq W.Word32
genNumsMT x = helper 0 x
where helper 624 st = st
helper i st = helper (i+1) (S.update i y' st)
where y = ((st `S.index` i) BTS..&. 0x80000000) + ((st `S.index` j) BTS..&. 0x7fffffff)
j = (i+1) `mod` 624
k = (i+397) `... | 504 | genNumsMT :: S.Seq W.Word32 -> S.Seq W.Word32
genNumsMT x = helper 0 x
where helper 624 st = st
helper i st = helper (i+1) (S.update i y' st)
where y = ((st `S.index` i) BTS..&. 0x80000000) + ((st `S.index` j) BTS..&. 0x7fffffff)
j = (i+1) `mod` 624
k = (i+397) `... | 504 | genNumsMT x = helper 0 x
where helper 624 st = st
helper i st = helper (i+1) (S.update i y' st)
where y = ((st `S.index` i) BTS..&. 0x80000000) + ((st `S.index` j) BTS..&. 0x7fffffff)
j = (i+1) `mod` 624
k = (i+397) `mod` 624
n = (st `S.index` k)... | 458 | false | true | 1 | 11 | 208 | 229 | 126 | 103 | null | null |
sdiehl/ghc | libraries/base/GHC/Conc/Sync.hs | bsd-3-clause | reportStackOverflow :: IO ()
reportStackOverflow = do
ThreadId tid <- myThreadId
c_reportStackOverflow tid | 116 | reportStackOverflow :: IO ()
reportStackOverflow = do
ThreadId tid <- myThreadId
c_reportStackOverflow tid | 116 | reportStackOverflow = do
ThreadId tid <- myThreadId
c_reportStackOverflow tid | 87 | false | true | 1 | 9 | 22 | 36 | 14 | 22 | null | null |
gcampax/ghc | compiler/typecheck/TcRnTypes.hs | bsd-3-clause | bumpCtLocDepth :: SubGoalCounter -> CtLoc -> CtLoc
bumpCtLocDepth cnt loc@(CtLoc { ctl_depth = d }) = loc { ctl_depth = bumpSubGoalDepth cnt d } | 144 | bumpCtLocDepth :: SubGoalCounter -> CtLoc -> CtLoc
bumpCtLocDepth cnt loc@(CtLoc { ctl_depth = d }) = loc { ctl_depth = bumpSubGoalDepth cnt d } | 144 | bumpCtLocDepth cnt loc@(CtLoc { ctl_depth = d }) = loc { ctl_depth = bumpSubGoalDepth cnt d } | 93 | false | true | 0 | 10 | 23 | 52 | 28 | 24 | null | null |
fmthoma/ghc | compiler/main/DriverPipeline.hs | bsd-3-clause | linkBinary' :: Bool -> DynFlags -> [FilePath] -> [PackageKey] -> IO ()
linkBinary' staticLink dflags o_files dep_packages = do
let platform = targetPlatform dflags
mySettings = settings dflags
verbFlags = getVerbFlags dflags
output_fn = exeFileName staticLink dflags
-- get the full list... | 10,113 | linkBinary' :: Bool -> DynFlags -> [FilePath] -> [PackageKey] -> IO ()
linkBinary' staticLink dflags o_files dep_packages = do
let platform = targetPlatform dflags
mySettings = settings dflags
verbFlags = getVerbFlags dflags
output_fn = exeFileName staticLink dflags
-- get the full list... | 10,113 | linkBinary' staticLink dflags o_files dep_packages = do
let platform = targetPlatform dflags
mySettings = settings dflags
verbFlags = getVerbFlags dflags
output_fn = exeFileName staticLink dflags
-- get the full list of packages to link with, by combining the
-- explicit packages wi... | 10,042 | false | true | 0 | 27 | 4,504 | 1,396 | 720 | 676 | null | null |
abramhindle/haskell-sand-game | Sand2.hs | lgpl-3.0 | eventLoop s ow = do
w <- step s ow
e <- pollEvent
case e of
(MouseMotion x y _ _) -> do
let rx = fromIntegral x
let ry = fromIntegral y
eventLoop s (if (leftButton s)
then (w{ room = (insertParticle (room w) (currentSand... | 1,212 | eventLoop s ow = do
w <- step s ow
e <- pollEvent
case e of
(MouseMotion x y _ _) -> do
let rx = fromIntegral x
let ry = fromIntegral y
eventLoop s (if (leftButton s)
then (w{ room = (insertParticle (room w) (currentSand... | 1,212 | eventLoop s ow = do
w <- step s ow
e <- pollEvent
case e of
(MouseMotion x y _ _) -> do
let rx = fromIntegral x
let ry = fromIntegral y
eventLoop s (if (leftButton s)
then (w{ room = (insertParticle (room w) (currentSand... | 1,212 | false | false | 0 | 21 | 445 | 466 | 230 | 236 | null | null |
acowley/ghc | ghc/Main.hs | bsd-3-clause | showPackagesMode = mkPostLoadMode ShowPackages | 46 | showPackagesMode = mkPostLoadMode ShowPackages | 46 | showPackagesMode = mkPostLoadMode ShowPackages | 46 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
stites/reinforce | reinforce-environments-gym/src/Environments/Gym/Internal.hs | bsd-3-clause | runClientT :: MonadIO t => ClientT t a -> ClientEnv -> t (Either ServantError a)
runClientT (ClientT m) env = runExceptT $ runReaderT m env | 139 | runClientT :: MonadIO t => ClientT t a -> ClientEnv -> t (Either ServantError a)
runClientT (ClientT m) env = runExceptT $ runReaderT m env | 139 | runClientT (ClientT m) env = runExceptT $ runReaderT m env | 58 | false | true | 0 | 11 | 24 | 66 | 30 | 36 | null | null |
bvdelft/paragon | src/Language/Java/Paragon/Interaction/Flags.hs | bsd-3-clause | getPiOutputPath :: [Flag] -> Maybe String
getPiOutputPath flags =
case [p | PiOutputPath p <- flags] of
[p] -> Just p
_ -> Nothing
-- | Returns path of .para files, if specified. | 191 | getPiOutputPath :: [Flag] -> Maybe String
getPiOutputPath flags =
case [p | PiOutputPath p <- flags] of
[p] -> Just p
_ -> Nothing
-- | Returns path of .para files, if specified. | 191 | getPiOutputPath flags =
case [p | PiOutputPath p <- flags] of
[p] -> Just p
_ -> Nothing
-- | Returns path of .para files, if specified. | 149 | false | true | 0 | 9 | 45 | 61 | 31 | 30 | null | null |
NCrashed/hjass | src/library/Data/Global/Registry.hs | mit | declareEmptyMVar
:: Typeable a
=> String -- ^ The identifying name
-> MVar a -- ^ A unique 'MVar' determined by @(name, typeOf val)@. Whether it is still
-- empty depends on the rest of the program.
declareEmptyMVar name = unsafeDupablePerformIO $ lookupOrInsertEmptyMVar name | 305 | declareEmptyMVar
:: Typeable a
=> String -- ^ The identifying name
-> MVar a
declareEmptyMVar name = unsafeDupablePerformIO $ lookupOrInsertEmptyMVar name | 167 | declareEmptyMVar name = unsafeDupablePerformIO $ lookupOrInsertEmptyMVar name | 77 | true | true | 0 | 7 | 72 | 38 | 19 | 19 | null | null |
UU-ComputerScience/uu-cco | uu-cco/src/CCO/Printing/Rendering.hs | bsd-3-clause | cut :: Int -> [Format a] -> [Format a]
cut wmax = dropWhile tooWide -- we can use 'dropWhile', for we may assume
-- that the formats are sorted on descending
-- widths
where
tooWide (_ :^ D _ w _) = w > wmax
-- | A (proper) partial order on form... | 393 | cut :: Int -> [Format a] -> [Format a]
cut wmax = dropWhile tooWide -- we can use 'dropWhile', for we may assume
-- that the formats are sorted on descending
-- widths
where
tooWide (_ :^ D _ w _) = w > wmax
-- | A (proper) partial order on form... | 393 | cut wmax = dropWhile tooWide -- we can use 'dropWhile', for we may assume
-- that the formats are sorted on descending
-- widths
where
tooWide (_ :^ D _ w _) = w > wmax
-- | A (proper) partial order on formats, according to which the lists
-- pr... | 354 | false | true | 0 | 10 | 138 | 77 | 38 | 39 | null | null |
bergey/plots | examples/others.hs | bsd-3-clause | main :: IO ()
main = make $ renderAxis myaxis | 45 | main :: IO ()
main = make $ renderAxis myaxis | 45 | main = make $ renderAxis myaxis | 31 | false | true | 0 | 6 | 9 | 23 | 11 | 12 | null | null |
forsyde/forsyde-atom | src/ForSyDe/Atom/MoC/CT/Lib.hs | bsd-3-clause | stated21 ns i = MoC.stated21 ns (unit i) | 41 | stated21 ns i = MoC.stated21 ns (unit i) | 41 | stated21 ns i = MoC.stated21 ns (unit i) | 41 | false | false | 1 | 7 | 8 | 29 | 11 | 18 | null | null |
ciderpunx/exercismo | src/Garden.hs | gpl-3.0 | egStudents :: String
egStudents = ['A'..'Z'] | 47 | egStudents :: String
egStudents = ['A'..'Z'] | 47 | egStudents = ['A'..'Z'] | 26 | false | true | 0 | 5 | 8 | 16 | 9 | 7 | null | null |
NCrashed/pdf-slave | app/Main.hs | bsd-3-clause | -- | Same as 'strOption' but parses Text
filePathOption :: Mod OptionFields String -> Parser FilePath
filePathOption m = fmap (fromText . pack) $ strOption m | 157 | filePathOption :: Mod OptionFields String -> Parser FilePath
filePathOption m = fmap (fromText . pack) $ strOption m | 116 | filePathOption m = fmap (fromText . pack) $ strOption m | 55 | true | true | 0 | 8 | 25 | 44 | 21 | 23 | null | null |
snoyberg/ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | tidyOccNames :: TidyOccEnv -> [OccName] -> (TidyOccEnv, [OccName])
tidyOccNames env occs = mapAccumL tidyOccName env' occs
where
env' = avoidClashesOccEnv env occs | 169 | tidyOccNames :: TidyOccEnv -> [OccName] -> (TidyOccEnv, [OccName])
tidyOccNames env occs = mapAccumL tidyOccName env' occs
where
env' = avoidClashesOccEnv env occs | 169 | tidyOccNames env occs = mapAccumL tidyOccName env' occs
where
env' = avoidClashesOccEnv env occs | 102 | false | true | 0 | 8 | 27 | 56 | 29 | 27 | null | null |
skogsbaer/xsd | Text/XML/XSD.hs | bsd-3-clause | -- | What XSD calls @nonNegativeInteger@.
unsignedInteger :: Integral a => Text -> Either String a
unsignedInteger = unsigned | 125 | unsignedInteger :: Integral a => Text -> Either String a
unsignedInteger = unsigned | 83 | unsignedInteger = unsigned | 26 | true | true | 0 | 7 | 18 | 28 | 14 | 14 | null | null |
beni55/lit | src/Code.hs | gpl-2.0 | merge :: [Chunk] -> [Chunk]
merge = mergeAux [] | 47 | merge :: [Chunk] -> [Chunk]
merge = mergeAux [] | 47 | merge = mergeAux [] | 19 | false | true | 0 | 6 | 8 | 26 | 14 | 12 | null | null |
tjakway/ghcjvm | compiler/typecheck/TcRnTypes.hs | bsd-3-clause | pprCtOrigin (DerivOriginDC dc n)
= hang (ctoHerald <+> text "the" <+> speakNth n
<+> text "field of" <+> quotes (ppr dc))
2 (parens (text "type" <+> quotes (ppr ty)))
where
ty = dataConOrigArgTys dc !! (n-1) | 232 | pprCtOrigin (DerivOriginDC dc n)
= hang (ctoHerald <+> text "the" <+> speakNth n
<+> text "field of" <+> quotes (ppr dc))
2 (parens (text "type" <+> quotes (ppr ty)))
where
ty = dataConOrigArgTys dc !! (n-1) | 232 | pprCtOrigin (DerivOriginDC dc n)
= hang (ctoHerald <+> text "the" <+> speakNth n
<+> text "field of" <+> quotes (ppr dc))
2 (parens (text "type" <+> quotes (ppr ty)))
where
ty = dataConOrigArgTys dc !! (n-1) | 232 | false | false | 1 | 11 | 60 | 115 | 51 | 64 | null | null |
jgm/pandoc-citeproc | src/Text/CSL/Style.hs | bsd-3-clause | rmOrdinals :: [CslTerm] -> [CslTerm]
rmOrdinals [] = [] | 55 | rmOrdinals :: [CslTerm] -> [CslTerm]
rmOrdinals [] = [] | 55 | rmOrdinals [] = [] | 18 | false | true | 0 | 6 | 8 | 28 | 15 | 13 | null | null |
SuperDrew/sql-server-gen | src/Database/SqlServer/Definition/DataType.hs | bsd-2-clause | rowGuidOptions _ = False | 45 | rowGuidOptions _ = False | 45 | rowGuidOptions _ = False | 45 | false | false | 0 | 4 | 24 | 10 | 4 | 6 | null | null |
mcschroeder/ghc | compiler/deSugar/Coverage.hs | bsd-3-clause | addTickHsExpr (HsSCC src nm e) =
liftM3 HsSCC
(return src)
(return nm)
(addTickLHsExpr e) | 145 | addTickHsExpr (HsSCC src nm e) =
liftM3 HsSCC
(return src)
(return nm)
(addTickLHsExpr e) | 145 | addTickHsExpr (HsSCC src nm e) =
liftM3 HsSCC
(return src)
(return nm)
(addTickLHsExpr e) | 145 | false | false | 0 | 6 | 69 | 50 | 22 | 28 | null | null |
Xandaros/MinecraftCLI | app/Main.hs | bsd-2-clause | serverInput ("list":_) = do
servers <- liftIO DB.getServers
forM_ servers $ \server -> do
outputStrLn . T.unpack $ server ^. serverName | 151 | serverInput ("list":_) = do
servers <- liftIO DB.getServers
forM_ servers $ \server -> do
outputStrLn . T.unpack $ server ^. serverName | 151 | serverInput ("list":_) = do
servers <- liftIO DB.getServers
forM_ servers $ \server -> do
outputStrLn . T.unpack $ server ^. serverName | 151 | false | false | 0 | 14 | 36 | 60 | 28 | 32 | null | null |
haroldcarr/learn-haskell-coq-ml-etc | haskell/course/2014-10-edx-delft-fp101x-intro-to-fp-erik-meijer/hw01.hs | unlicense | q5 [] = [] | 10 | q5 [] = [] | 10 | q5 [] = [] | 10 | false | false | 0 | 5 | 3 | 14 | 6 | 8 | null | null |
nikita-volkov/remotion | htf-test-suite/HTFTestSuite/CommunicationTests.hs | mit | socketLM = S.Socket socket | 26 | socketLM = S.Socket socket | 26 | socketLM = S.Socket socket | 26 | false | false | 0 | 6 | 3 | 11 | 5 | 6 | null | null |
meteogrid/mime-mail-parser | Network/Mail/Mime/Parser/Internal/Rfc2822.hs | bsd-3-clause | -- |Parses the \"right part\" of a message ID, but allows the obsolete
-- syntax, which is identical to a 'domain'.
obs_id_right :: Parser ByteString
obs_id_right = domain <?> "right part of an message ID" | 212 | obs_id_right :: Parser ByteString
obs_id_right = domain <?> "right part of an message ID" | 95 | obs_id_right = domain <?> "right part of an message ID" | 58 | true | true | 1 | 6 | 41 | 24 | 11 | 13 | null | null |
ekmett/wxHaskell | wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs | lgpl-2.1 | wxFIXED_LENGTH :: Int
wxFIXED_LENGTH = 1024 | 43 | wxFIXED_LENGTH :: Int
wxFIXED_LENGTH = 1024 | 43 | wxFIXED_LENGTH = 1024 | 21 | false | true | 0 | 6 | 5 | 18 | 7 | 11 | null | null |
vTurbine/ghc | compiler/basicTypes/PatSyn.hs | bsd-3-clause | -- | Print the type of a pattern synonym. The foralls are printed explicitly
pprPatSynType :: PatSyn -> SDoc
pprPatSynType (MkPatSyn { psUnivTyVars = univ_tvs, psReqTheta = req_theta
, psExTyVars = ex_tvs, psProvTheta = prov_theta
, psArgs = orig_args, psOrig... | 704 | pprPatSynType :: PatSyn -> SDoc
pprPatSynType (MkPatSyn { psUnivTyVars = univ_tvs, psReqTheta = req_theta
, psExTyVars = ex_tvs, psProvTheta = prov_theta
, psArgs = orig_args, psOrigResTy = orig_res_ty })
= sep [ pprForAll univ_tvs
, pprThetaArrowTy... | 627 | pprPatSynType (MkPatSyn { psUnivTyVars = univ_tvs, psReqTheta = req_theta
, psExTyVars = ex_tvs, psProvTheta = prov_theta
, psArgs = orig_args, psOrigResTy = orig_res_ty })
= sep [ pprForAll univ_tvs
, pprThetaArrowTy req_theta
, ppWhen inse... | 595 | true | true | 1 | 9 | 213 | 154 | 80 | 74 | null | null |
jystic/river | src/River/Core/Analysis/Live.hs | bsd-3-clause | liveOfTerm :: Ord n => Term k p n a -> Either (LiveError n) (Term k p n (Live n a))
liveOfTerm =
liveOfTerm' Map.empty . annotFreeOfTerm | 138 | liveOfTerm :: Ord n => Term k p n a -> Either (LiveError n) (Term k p n (Live n a))
liveOfTerm =
liveOfTerm' Map.empty . annotFreeOfTerm | 138 | liveOfTerm =
liveOfTerm' Map.empty . annotFreeOfTerm | 54 | false | true | 0 | 11 | 28 | 71 | 34 | 37 | null | null |
maruks/haskell-book | src/Chapter9_lists.hs | gpl-3.0 | myMinBy _ [x] = x | 17 | myMinBy _ [x] = x | 17 | myMinBy _ [x] = x | 17 | false | false | 0 | 6 | 4 | 14 | 7 | 7 | null | null |
joshcough/Scrabble | src/Scrabble/Game.hs | mit | isHuman :: Player -> Bool
isHuman p = playerType p == Human | 59 | isHuman :: Player -> Bool
isHuman p = playerType p == Human | 59 | isHuman p = playerType p == Human | 33 | false | true | 1 | 7 | 11 | 32 | 14 | 18 | null | null |
erochest/stat-nlp | src/StatNLP/Document.hs | apache-2.0 | getDocs :: M.HashMap PlainToken [(DocumentId, Int)]
-> M.HashMap DocumentId (VectorDoc b)
-> T.Text
-> [(Int, VectorDoc b)]
getDocs idx docs target =
mapMaybe (sequenceA . second (`M.lookup` docs) . swap)
$ M.lookupDefault [] target idx | 270 | getDocs :: M.HashMap PlainToken [(DocumentId, Int)]
-> M.HashMap DocumentId (VectorDoc b)
-> T.Text
-> [(Int, VectorDoc b)]
getDocs idx docs target =
mapMaybe (sequenceA . second (`M.lookup` docs) . swap)
$ M.lookupDefault [] target idx | 270 | getDocs idx docs target =
mapMaybe (sequenceA . second (`M.lookup` docs) . swap)
$ M.lookupDefault [] target idx | 122 | false | true | 0 | 11 | 68 | 113 | 59 | 54 | null | null |
rabipelais/Recordwire | src/Window.hs | mit | keyCallback keys _w k _ KeyState'Released _mods = modifyIORef' keys (S.delete k) | 80 | keyCallback keys _w k _ KeyState'Released _mods = modifyIORef' keys (S.delete k) | 80 | keyCallback keys _w k _ KeyState'Released _mods = modifyIORef' keys (S.delete k) | 80 | false | false | 0 | 8 | 11 | 32 | 15 | 17 | null | null |
k-bx/riak-haskell-client | src/Network/Riak/CRDT/Types.hs | apache-2.0 | setFromSeq :: Seq.Seq ByteString -> Set
setFromSeq = Set . S.fromList . F.toList | 80 | setFromSeq :: Seq.Seq ByteString -> Set
setFromSeq = Set . S.fromList . F.toList | 80 | setFromSeq = Set . S.fromList . F.toList | 40 | false | true | 0 | 7 | 12 | 32 | 16 | 16 | null | null |
jdubrule/bond | compiler/src/Language/Bond/Codegen/Cpp/Util.hs | mit | defaultValue _ _ (DefaultBool True) = "true" | 44 | defaultValue _ _ (DefaultBool True) = "true" | 44 | defaultValue _ _ (DefaultBool True) = "true" | 44 | false | false | 0 | 7 | 6 | 19 | 9 | 10 | null | null |
sdiehl/ghc | compiler/prelude/TysWiredIn.hs | bsd-3-clause | wordDataConName = mkWiredInDataConName UserSyntax gHC_TYPES (fsLit "W#") wordDataConKey wordDataCon | 108 | wordDataConName = mkWiredInDataConName UserSyntax gHC_TYPES (fsLit "W#") wordDataConKey wordDataCon | 108 | wordDataConName = mkWiredInDataConName UserSyntax gHC_TYPES (fsLit "W#") wordDataConKey wordDataCon | 108 | false | false | 0 | 7 | 17 | 23 | 11 | 12 | null | null |
yliu120/K3 | src/Language/K3/Stages.hs | apache-2.0 | withRepairD :: String -> ProgramTransformD -> ProgramTransformD
withRepairD msg f prog = do
(r,np) <- f prog
st <- get
let (i,np') = repairProgram msg (Just $ nextuid st) np
void $ put $ st {nextuid = i}
return (r,np')
{-- Transform constructors --} | 261 | withRepairD :: String -> ProgramTransformD -> ProgramTransformD
withRepairD msg f prog = do
(r,np) <- f prog
st <- get
let (i,np') = repairProgram msg (Just $ nextuid st) np
void $ put $ st {nextuid = i}
return (r,np')
{-- Transform constructors --} | 261 | withRepairD msg f prog = do
(r,np) <- f prog
st <- get
let (i,np') = repairProgram msg (Just $ nextuid st) np
void $ put $ st {nextuid = i}
return (r,np')
{-- Transform constructors --} | 197 | false | true | 0 | 13 | 55 | 114 | 57 | 57 | null | null |
wouwouwou/2017_module_8 | src/haskell/PP-project-2017/Checker.hs | apache-2.0 | checker2 (ASTAss var expr _ _) check
| (getExprType varCheck) == (getExprType exprCheck) = ASTAss varCheck exprCheck (Just (getExprType varCheck)) check
| otherwise = error $ "Types do not match in assignment in Checker.checker2, with: " ++ (show var) ++ " and: " ++ (show expr)
where
exprCheck ... | 397 | checker2 (ASTAss var expr _ _) check
| (getExprType varCheck) == (getExprType exprCheck) = ASTAss varCheck exprCheck (Just (getExprType varCheck)) check
| otherwise = error $ "Types do not match in assignment in Checker.checker2, with: " ++ (show var) ++ " and: " ++ (show expr)
where
exprCheck ... | 397 | checker2 (ASTAss var expr _ _) check
| (getExprType varCheck) == (getExprType exprCheck) = ASTAss varCheck exprCheck (Just (getExprType varCheck)) check
| otherwise = error $ "Types do not match in assignment in Checker.checker2, with: " ++ (show var) ++ " and: " ++ (show expr)
where
exprCheck ... | 397 | false | false | 1 | 10 | 97 | 135 | 63 | 72 | null | null |
purcell/adventofcodeteam | app/Eighteen.hs | bsd-3-clause | eighteen :: IO Int
eighteen = do
initialBoard <- parseFile <$> readFile "input/18.txt"
let endBoard = iterate run (Map.fromList initialBoard) !! 100
return . length $ filter id (Map.elems endBoard) | 210 | eighteen :: IO Int
eighteen = do
initialBoard <- parseFile <$> readFile "input/18.txt"
let endBoard = iterate run (Map.fromList initialBoard) !! 100
return . length $ filter id (Map.elems endBoard) | 210 | eighteen = do
initialBoard <- parseFile <$> readFile "input/18.txt"
let endBoard = iterate run (Map.fromList initialBoard) !! 100
return . length $ filter id (Map.elems endBoard) | 191 | false | true | 0 | 15 | 42 | 84 | 37 | 47 | null | null |
sopvop/cabal | Cabal/Distribution/Simple/Utils.hs | bsd-3-clause | printRawCommandAndArgs :: Verbosity -> FilePath -> [String] -> IO ()
printRawCommandAndArgs verbosity path args = withFrozenCallStack $
printRawCommandAndArgsAndEnv verbosity path args Nothing | 196 | printRawCommandAndArgs :: Verbosity -> FilePath -> [String] -> IO ()
printRawCommandAndArgs verbosity path args = withFrozenCallStack $
printRawCommandAndArgsAndEnv verbosity path args Nothing | 196 | printRawCommandAndArgs verbosity path args = withFrozenCallStack $
printRawCommandAndArgsAndEnv verbosity path args Nothing | 127 | false | true | 0 | 9 | 25 | 51 | 25 | 26 | null | null |
yousufmsoliman/music | Source (Haskell)/Control.hs | gpl-3.0 | addTests :: BlackboardContext -> [TestLoc] -> BlackboardContext
addTests bc tests = bc { testsToRun = testsToRun bc ++ tests } | 126 | addTests :: BlackboardContext -> [TestLoc] -> BlackboardContext
addTests bc tests = bc { testsToRun = testsToRun bc ++ tests } | 126 | addTests bc tests = bc { testsToRun = testsToRun bc ++ tests } | 62 | false | true | 0 | 8 | 19 | 42 | 22 | 20 | null | null |
balangs/eTeak | src/Traverse.hs | bsd-3-clause | descendSN :: ParseTreeTraverse e1 =>
Apply context accum result ->
(String -> e1 -> node) -> String -> e1 ->
Descend context accum result node
descendSN apply cons str e = descend apply cons $
stepD apply e . stringD apply str | 262 | descendSN :: ParseTreeTraverse e1 =>
Apply context accum result ->
(String -> e1 -> node) -> String -> e1 ->
Descend context accum result node
descendSN apply cons str e = descend apply cons $
stepD apply e . stringD apply str | 258 | descendSN apply cons str e = descend apply cons $
stepD apply e . stringD apply str | 91 | false | true | 0 | 11 | 77 | 94 | 44 | 50 | null | null |
pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Config/Desktop.hs | bsd-2-clause | desktopLayoutModifiers layout = avoidStruts layout | 50 | desktopLayoutModifiers layout = avoidStruts layout | 50 | desktopLayoutModifiers layout = avoidStruts layout | 50 | false | false | 0 | 5 | 4 | 12 | 5 | 7 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.