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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inchingforward/elm-lang.org | src/backend/Router.hs | bsd-3-clause | guide :: Snap ()
guide =
ifTop pass
<|> route (map chapterToRoute Guide.chapters)
where
chapterToRoute name =
( Utf8.fromString name
, ifTop (serveFile (FT.file ["guide","html"] name "html"))
) | 229 | guide :: Snap ()
guide =
ifTop pass
<|> route (map chapterToRoute Guide.chapters)
where
chapterToRoute name =
( Utf8.fromString name
, ifTop (serveFile (FT.file ["guide","html"] name "html"))
) | 229 | guide =
ifTop pass
<|> route (map chapterToRoute Guide.chapters)
where
chapterToRoute name =
( Utf8.fromString name
, ifTop (serveFile (FT.file ["guide","html"] name "html"))
) | 212 | false | true | 3 | 12 | 63 | 89 | 44 | 45 | null | null |
jean-edouard/idl | rpcgen/Backend/Haskell.hs | gpl-2.0 | interfaceServerRecordFields :: Interface -> [RecordField]
interfaceServerRecordFields = map field . interfaceStubs where
field_sig ins outs = functionType $ map haskellType ins ++ [stubReturnType' outs]
field s@(GetterStub i p) = RecordField (FunctionName $ remoteStubName s) (field_sig [] [propertyType p])
... | 680 | interfaceServerRecordFields :: Interface -> [RecordField]
interfaceServerRecordFields = map field . interfaceStubs where
field_sig ins outs = functionType $ map haskellType ins ++ [stubReturnType' outs]
field s@(GetterStub i p) = RecordField (FunctionName $ remoteStubName s) (field_sig [] [propertyType p])
... | 680 | interfaceServerRecordFields = map field . interfaceStubs where
field_sig ins outs = functionType $ map haskellType ins ++ [stubReturnType' outs]
field s@(GetterStub i p) = RecordField (FunctionName $ remoteStubName s) (field_sig [] [propertyType p])
field s@(SetterStub i p) = RecordField (FunctionName $ rem... | 622 | false | true | 0 | 13 | 174 | 226 | 113 | 113 | null | null |
cullina/Extractor | src/RandomDistribution.hs | bsd-3-clause | getValue decision dist = gV (dist, mempty)
where gV (Constant x, _ ) = Done x
gV (Bernoulli p l r, state) = gV . mapFst (f l r) =<< decision p state
f r l b = if b then r else l
mapFst f (x, y) = (f x, y) | 248 | getValue decision dist = gV (dist, mempty)
where gV (Constant x, _ ) = Done x
gV (Bernoulli p l r, state) = gV . mapFst (f l r) =<< decision p state
f r l b = if b then r else l
mapFst f (x, y) = (f x, y) | 248 | getValue decision dist = gV (dist, mempty)
where gV (Constant x, _ ) = Done x
gV (Bernoulli p l r, state) = gV . mapFst (f l r) =<< decision p state
f r l b = if b then r else l
mapFst f (x, y) = (f x, y) | 248 | false | false | 2 | 9 | 95 | 147 | 68 | 79 | null | null |
DavidAlphaFox/ghc | compiler/hsSyn/HsBinds.hs | bsd-3-clause | isPragLSig :: LSig name -> Bool
-- Identifies pragmas
isPragLSig (L _ (SpecSig {})) = True | 92 | isPragLSig :: LSig name -> Bool
isPragLSig (L _ (SpecSig {})) = True | 70 | isPragLSig (L _ (SpecSig {})) = True | 38 | true | true | 0 | 9 | 17 | 37 | 19 | 18 | null | null |
mcapodici/haskelllearn | tapl/src/Lib.hs | mit | -- todo see http://blog.ezyang.com/2014/05/parsec-try-a-or-b-considered-harmful/
pterm :: Parser Term
pterm = choice $ map (try.lexeme) [ptrue, pfalse, p0, psucc, ppred, piszero, pitt, pparens] | 194 | pterm :: Parser Term
pterm = choice $ map (try.lexeme) [ptrue, pfalse, p0, psucc, ppred, piszero, pitt, pparens] | 112 | pterm = choice $ map (try.lexeme) [ptrue, pfalse, p0, psucc, ppred, piszero, pitt, pparens] | 91 | true | true | 1 | 8 | 22 | 56 | 31 | 25 | null | null |
orblivion/random-chain | Main.hs | mit | emptyStateBranch :: StateTree
emptyStateBranch = StateBranch $ DataMap.fromList [] | 82 | emptyStateBranch :: StateTree
emptyStateBranch = StateBranch $ DataMap.fromList [] | 82 | emptyStateBranch = StateBranch $ DataMap.fromList [] | 52 | false | true | 0 | 7 | 8 | 22 | 11 | 11 | null | null |
Gabriel439/Haskell-Pipes-ByteString-Library | src/Pipes/ByteString.hs | bsd-3-clause | -- | Take bytes until they fail the predicate
takeWhile :: Monad m => (Word8 -> Bool) -> Pipe ByteString ByteString m ()
takeWhile predicate = go
where
go = do
bs <- await
let (prefix, suffix) = BS.span predicate bs
if (BS.null suffix)
then do
yield bs
... | 360 | takeWhile :: Monad m => (Word8 -> Bool) -> Pipe ByteString ByteString m ()
takeWhile predicate = go
where
go = do
bs <- await
let (prefix, suffix) = BS.span predicate bs
if (BS.null suffix)
then do
yield bs
go
else yield prefix
| 314 | takeWhile predicate = go
where
go = do
bs <- await
let (prefix, suffix) = BS.span predicate bs
if (BS.null suffix)
then do
yield bs
go
else yield prefix
| 239 | true | true | 1 | 11 | 138 | 120 | 55 | 65 | null | null |
mikeplus64/Level-0 | src/Graphics/UI/SDL/Extra/Keys.hs | gpl-3.0 | keyToChar SDLK_SPACE = Just ' ' | 31 | keyToChar SDLK_SPACE = Just ' ' | 31 | keyToChar SDLK_SPACE = Just ' ' | 31 | false | false | 0 | 5 | 5 | 12 | 5 | 7 | null | null |
spechub/Hets | CspCASL/SymMapAna.hs | gpl-2.0 | directProcMap :: CspRawMap -> Sort_map -> Rel.Rel SORT -> ChanMap
-> Id -> Set.Set ProcProfile -> Result ProcessMap -> Result ProcessMap
directProcMap rmap sm rel cm pn ps m =
let pl = Set.toList ps
rl = map (lookupProcSymbol rmap pn) pl
(ms, os) = partition (isJust . fst) $ zip rl pl
in case ms of
... | 641 | directProcMap :: CspRawMap -> Sort_map -> Rel.Rel SORT -> ChanMap
-> Id -> Set.Set ProcProfile -> Result ProcessMap -> Result ProcessMap
directProcMap rmap sm rel cm pn ps m =
let pl = Set.toList ps
rl = map (lookupProcSymbol rmap pn) pl
(ms, os) = partition (isJust . fst) $ zip rl pl
in case ms of
... | 641 | directProcMap rmap sm rel cm pn ps m =
let pl = Set.toList ps
rl = map (lookupProcSymbol rmap pn) pl
(ms, os) = partition (isJust . fst) $ zip rl pl
in case ms of
l@((Just rsy, _) : rs) ->
foldr (\ (_, p) ->
insertProcSym sm rel cm pn
(ACspSymbol $ toProcSymbol
... | 502 | false | true | 0 | 20 | 215 | 284 | 142 | 142 | null | null |
spinda/liquidhaskell | src/Language/Haskell/Liquid/Desugar710/DsArrows.hs | bsd-3-clause | -- app :: forall b c. a (a b c, b) c
do_app :: DsCmdEnv -> Type -> Type -> CoreExpr
do_app ids b_ty c_ty = mkApps (app_id ids) [Type b_ty, Type c_ty] | 149 | do_app :: DsCmdEnv -> Type -> Type -> CoreExpr
do_app ids b_ty c_ty = mkApps (app_id ids) [Type b_ty, Type c_ty] | 112 | do_app ids b_ty c_ty = mkApps (app_id ids) [Type b_ty, Type c_ty] | 65 | true | true | 0 | 7 | 32 | 59 | 28 | 31 | null | null |
GaloisInc/http-server | Network/HTTP/Server/Utils.hs | mit | -- |Extract the port number from a SockAddr
portFromSockAddr :: SockAddr -> Int
portFromSockAddr (SockAddrInet port _) = fromInteger $ toInteger port | 149 | portFromSockAddr :: SockAddr -> Int
portFromSockAddr (SockAddrInet port _) = fromInteger $ toInteger port | 105 | portFromSockAddr (SockAddrInet port _) = fromInteger $ toInteger port | 69 | true | true | 0 | 6 | 21 | 38 | 18 | 20 | null | null |
apriori/daak | lib/DAAK/Core/ResidualSpace.hs | mit | splitFoldSupport' :: [EuclideanSpace3D] -> [EuclideanSpace3D] -> [(ResidualSpace, [EuclideanSpace3D])]
splitFoldSupport' grouped others =
zipWith (\r es -> (r, determineInside r es))
(splitFoldDominantSupport [mkResidualSpace groupBB] sortedOthers) $ repeat grouped
where
groupBB = boundingBox grouped
... | 689 | splitFoldSupport' :: [EuclideanSpace3D] -> [EuclideanSpace3D] -> [(ResidualSpace, [EuclideanSpace3D])]
splitFoldSupport' grouped others =
zipWith (\r es -> (r, determineInside r es))
(splitFoldDominantSupport [mkResidualSpace groupBB] sortedOthers) $ repeat grouped
where
groupBB = boundingBox grouped
... | 689 | splitFoldSupport' grouped others =
zipWith (\r es -> (r, determineInside r es))
(splitFoldDominantSupport [mkResidualSpace groupBB] sortedOthers) $ repeat grouped
where
groupBB = boundingBox grouped
sortedOthers = sortBy (compare `on` ez) others
-- splitFold2 :: LoadSpace -> [EuclideanSpace3D] ->... | 586 | false | true | 2 | 11 | 124 | 138 | 71 | 67 | null | null |
ganeti/ganeti | test/hs/Test/Ganeti/JQScheduler.hs | bsd-2-clause | case_reasonRateLimit :: Assertion
case_reasonRateLimit = do
let mkJobWithReason jobNum reasonTrail = do
opc <- genSample genQueuedOpCode
jid <- makeJobId jobNum
let opc' = opc & (qoInputL . validOpCodeL . metaParamsL . opReasonL)
.~ reasonTrail
return . nullJobW... | 1,527 | case_reasonRateLimit :: Assertion
case_reasonRateLimit = do
let mkJobWithReason jobNum reasonTrail = do
opc <- genSample genQueuedOpCode
jid <- makeJobId jobNum
let opc' = opc & (qoInputL . validOpCodeL . metaParamsL . opReasonL)
.~ reasonTrail
return . nullJobW... | 1,527 | case_reasonRateLimit = do
let mkJobWithReason jobNum reasonTrail = do
opc <- genSample genQueuedOpCode
jid <- makeJobId jobNum
let opc' = opc & (qoInputL . validOpCodeL . metaParamsL . opReasonL)
.~ reasonTrail
return . nullJobWithStat
$ QueuedJob
... | 1,493 | false | true | 0 | 20 | 432 | 447 | 241 | 206 | null | null |
flocc-net/flocc | v0.1/Compiler/Planner/SolExec.hs | apache-2.0 | --03*60 --30 --3000 -- 30 seconds
progFileName = "program.flocc" | 65 | progFileName = "program.flocc" | 30 | progFileName = "program.flocc" | 30 | true | false | 0 | 4 | 9 | 7 | 4 | 3 | null | null |
HaskellZhangSong/TemplateHaskellUtils | src/Language/Haskell/TH/Utils.hs | mit | -- | Get name from constructors
getConName :: Con -> Name
getConName (NormalC name _) = name | 96 | getConName :: Con -> Name
getConName (NormalC name _) = name | 61 | getConName (NormalC name _) = name | 35 | true | true | 0 | 7 | 20 | 27 | 14 | 13 | null | null |
pbl64k/Net.Gearman.Worker | gearman.hs | bsd-2-clause | serverAddressHostName = accWrapped (accFirst :: Accessor (N.HostName, N.PortID) N.HostName) | 91 | serverAddressHostName = accWrapped (accFirst :: Accessor (N.HostName, N.PortID) N.HostName) | 91 | serverAddressHostName = accWrapped (accFirst :: Accessor (N.HostName, N.PortID) N.HostName) | 91 | false | false | 0 | 9 | 8 | 32 | 17 | 15 | null | null |
siddhanathan/ghc | compiler/iface/BuildTyCl.hs | bsd-3-clause | distinctAbstractTyConRhs, totallyAbstractTyConRhs :: AlgTyConRhs
distinctAbstractTyConRhs = AbstractTyCon True | 110 | distinctAbstractTyConRhs, totallyAbstractTyConRhs :: AlgTyConRhs
distinctAbstractTyConRhs = AbstractTyCon True | 110 | distinctAbstractTyConRhs = AbstractTyCon True | 45 | false | true | 0 | 5 | 7 | 16 | 9 | 7 | null | null |
j-rock/rayt | src/Ray/Affine.hs | mit | scaleA :: V3 -> AffineTransformation
scaleA = Scale | 51 | scaleA :: V3 -> AffineTransformation
scaleA = Scale | 51 | scaleA = Scale | 14 | false | true | 0 | 5 | 7 | 15 | 8 | 7 | null | null |
input-output-hk/pos-haskell-prototype | wallet/test/unit/Wallet/Rollback/Basic.hs | mit | initState :: State h a
initState = State {
_stateCurrent = Basic.initState
, _stateCheckpoints = []
} | 119 | initState :: State h a
initState = State {
_stateCurrent = Basic.initState
, _stateCheckpoints = []
} | 119 | initState = State {
_stateCurrent = Basic.initState
, _stateCheckpoints = []
} | 96 | false | true | 0 | 7 | 34 | 34 | 19 | 15 | null | null |
hsyl20/ViperVM | haskus-system/src/lib/Haskus/Format/Dwarf.hs | bsd-3-clause | getTypeUnitHeader :: Endianness -> Get TypeUnitHeader
getTypeUnitHeader endian = do
(format,len) <- getUnitLength endian
let (gw8,gw16,_,gw64,gwN) = getGetters endian format
TypeUnitHeader
format
len
<$> gw16
<*> gwN
<*> gw8
<*> gw64
<*> gwN
-- | Putter for type u... | 330 | getTypeUnitHeader :: Endianness -> Get TypeUnitHeader
getTypeUnitHeader endian = do
(format,len) <- getUnitLength endian
let (gw8,gw16,_,gw64,gwN) = getGetters endian format
TypeUnitHeader
format
len
<$> gw16
<*> gwN
<*> gw8
<*> gw64
<*> gwN
-- | Putter for type u... | 330 | getTypeUnitHeader endian = do
(format,len) <- getUnitLength endian
let (gw8,gw16,_,gw64,gwN) = getGetters endian format
TypeUnitHeader
format
len
<$> gw16
<*> gwN
<*> gw8
<*> gw64
<*> gwN
-- | Putter for type unit header | 276 | false | true | 0 | 12 | 95 | 96 | 48 | 48 | null | null |
superduper/enumgen-th | src/Data/EnumGen/TH.hs | bsd-3-clause | mkEnum :: String -- ^ Data Type Name
-> EnumDecl -- ^ Set of Constructor -> Int declarations
-> Q [Dec] -- ^ Result template
mkEnum name decls =
let decls' = execWriter decls
topDec = topDeclaration name decls'
fromF = (fromEnumFn name decls')
inst = enumInstance name fromF... | 377 | mkEnum :: String -- ^ Data Type Name
-> EnumDecl -- ^ Set of Constructor -> Int declarations
-> Q [Dec]
mkEnum name decls =
let decls' = execWriter decls
topDec = topDeclaration name decls'
fromF = (fromEnumFn name decls')
inst = enumInstance name fromF
in return $ [topDec] ... | 353 | mkEnum name decls =
let decls' = execWriter decls
topDec = topDeclaration name decls'
fromF = (fromEnumFn name decls')
inst = enumInstance name fromF
in return $ [topDec] ++ (toEnumFn name decls') ++ inst | 229 | true | true | 0 | 10 | 106 | 103 | 53 | 50 | null | null |
peteg/ADHOC | Apps/Cache/Tests/030_cache_bugfinder.hs | gpl-2.0 | system = arbitratedBus procs
where
procs busSigs = ( (mkSizedListf $ \i -> (cache i, proc_cache i busSigs)) `withLength` (undefined :: Caches)
, memory busSigs) | 186 | system = arbitratedBus procs
where
procs busSigs = ( (mkSizedListf $ \i -> (cache i, proc_cache i busSigs)) `withLength` (undefined :: Caches)
, memory busSigs) | 186 | system = arbitratedBus procs
where
procs busSigs = ( (mkSizedListf $ \i -> (cache i, proc_cache i busSigs)) `withLength` (undefined :: Caches)
, memory busSigs) | 186 | false | false | 0 | 11 | 50 | 67 | 36 | 31 | null | null |
athanclark/composition-extra | src/Data/Function/Apply.hs | bsd-3-clause | (---$) = (<<~~>) | 16 | (---$) = (<<~~>) | 16 | (---$) = (<<~~>) | 16 | false | false | 1 | 5 | 2 | 14 | 7 | 7 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/CanvasRenderingContext2D.hs | mit | -- | <https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.createPattern Mozilla CanvasRenderingContext2D.createPattern documentation>
createPatternUnchecked ::
(MonadDOM m, IsCanvasImageSource image, ToJSString repetition) =>
CanvasRenderingContext2... | 526 | createPatternUnchecked ::
(MonadDOM m, IsCanvasImageSource image, ToJSString repetition) =>
CanvasRenderingContext2D -> image -> repetition -> m CanvasPattern
createPatternUnchecked self image repetition
= liftDOM
((self ^. jsf "createPattern" [toJSVal image, toJS... | 369 | createPatternUnchecked self image repetition
= liftDOM
((self ^. jsf "createPattern" [toJSVal image, toJSVal repetition])
>>= fromJSValUnchecked) | 162 | true | true | 0 | 12 | 104 | 89 | 45 | 44 | null | null |
zsol/visual-graphrewrite | sample/SieveOfEratosthenes.hs | bsd-3-clause | showInt 6 = "6" | 15 | showInt 6 = "6" | 15 | showInt 6 = "6" | 15 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
alexander-at-github/eta | compiler/ETA/CodeGen/Rts.hs | bsd-3-clause | thunk = merge (rts "thunk") | 31 | thunk = merge (rts "thunk") | 31 | thunk = merge (rts "thunk") | 31 | false | false | 1 | 7 | 8 | 18 | 7 | 11 | null | null |
nobsun/oi | sample/morec.hs | bsd-3-clause | (|?|) :: (a :-> c)
-> (b :-> c)
-> Bool
-> (Either a b :-> c)
(|?|) = choiceOI | 96 | (|?|) :: (a :-> c)
-> (b :-> c)
-> Bool
-> (Either a b :-> c)
(|?|) = choiceOI | 96 | (|?|) = choiceOI | 16 | false | true | 0 | 12 | 37 | 60 | 31 | 29 | null | null |
mightymoose/liquidhaskell | benchmarks/llrbtree-0.1.1/Data/Set/RBTree-appel.hs | bsd-3-clause | balS l k r = Node R l k r
| 52 | lbalS l k r = Node R l k r | 52 | lbalS l k r = Node R l k r | 52 | false | false | 0 | 5 | 36 | 22 | 10 | 12 | null | null |
ksaveljev/hake-2 | src/Constants.hs | bsd-3-clause | aliasVersion = 8 :: Int | 23 | aliasVersion = 8 :: Int | 23 | aliasVersion = 8 :: Int | 23 | false | false | 0 | 4 | 4 | 9 | 5 | 4 | null | null |
acfoltzer/RazorsLambda | src/RazorsLambda/TypeCheck.hs | bsd-3-clause | tcIso :: Iso (ExceptionT TCError (Reader TCEnv)) TypeCheck
tcIso = Iso TC unTC | 78 | tcIso :: Iso (ExceptionT TCError (Reader TCEnv)) TypeCheck
tcIso = Iso TC unTC | 78 | tcIso = Iso TC unTC | 19 | false | true | 0 | 9 | 12 | 35 | 17 | 18 | null | null |
oldmanmike/ghc | compiler/main/ErrUtils.hs | bsd-3-clause | mkPlainWarnMsg dflags locn msg = mk_err_msg dflags SevWarning locn alwaysQualify (ErrDoc [msg] [] []) | 114 | mkPlainWarnMsg dflags locn msg = mk_err_msg dflags SevWarning locn alwaysQualify (ErrDoc [msg] [] []) | 114 | mkPlainWarnMsg dflags locn msg = mk_err_msg dflags SevWarning locn alwaysQualify (ErrDoc [msg] [] []) | 114 | false | false | 0 | 8 | 26 | 41 | 20 | 21 | null | null |
pascalpoizat/veca-haskell | test/TimedAutomatonTests.hs | apache-2.0 | cc1c :: ClockConstraint
cc1c = ClockConstraint c TA.LT 6 | 56 | cc1c :: ClockConstraint
cc1c = ClockConstraint c TA.LT 6 | 56 | cc1c = ClockConstraint c TA.LT 6 | 32 | false | true | 0 | 6 | 8 | 20 | 10 | 10 | null | null |
spechub/Hets | OMDoc/OMDocInterface.hs | gpl-2.0 | mkOMBWords :: [Word.Word8] -> OMBase64
mkOMBWords = OMB | 55 | mkOMBWords :: [Word.Word8] -> OMBase64
mkOMBWords = OMB | 55 | mkOMBWords = OMB | 16 | false | true | 0 | 8 | 7 | 27 | 12 | 15 | null | null |
GRACeFUL-project/haskelzinc | src/Interfaces/MZBuiltIns.hs | bsd-3-clause | mz_index_set_4of6 = prefCall "index_set_4of6" | 45 | mz_index_set_4of6 = prefCall "index_set_4of6" | 45 | mz_index_set_4of6 = prefCall "index_set_4of6" | 45 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
wavewave/devadmin | lib/Application/DevAdmin/Refactor/ProgType.hs | bsd-3-clause | mode :: Refactor
mode = modes [parsetest, renamemodule] | 56 | mode :: Refactor
mode = modes [parsetest, renamemodule] | 55 | mode = modes [parsetest, renamemodule] | 38 | false | true | 0 | 6 | 8 | 20 | 11 | 9 | null | null |
gridaphobe/ghc | compiler/typecheck/TcGenDeriv.hs | bsd-3-clause | toConstr_RDR = varQual_RDR gENERICS (fsLit "toConstr") | 57 | toConstr_RDR = varQual_RDR gENERICS (fsLit "toConstr") | 57 | toConstr_RDR = varQual_RDR gENERICS (fsLit "toConstr") | 57 | false | false | 0 | 7 | 8 | 17 | 8 | 9 | null | null |
chrisbouchard/bartender | src/BarTender/Message.hs | gpl-3.0 | messageCommand (RUnknown cmd) = cmd | 35 | messageCommand (RUnknown cmd) = cmd | 35 | messageCommand (RUnknown cmd) = cmd | 35 | false | false | 0 | 7 | 4 | 15 | 7 | 8 | null | null |
tidalcycles/tidal-midi | Sound/Tidal/MIDI/CC.hs | gpl-3.0 | (cc92, cc92_p) = pF "cc92" (Just 0) | 35 | (cc92, cc92_p) = pF "cc92" (Just 0) | 35 | (cc92, cc92_p) = pF "cc92" (Just 0) | 35 | false | false | 0 | 6 | 6 | 25 | 12 | 13 | null | null |
psibi/persistent | persistent-postgresql/Database/Persist/Postgresql.hs | mit | showAlterTable :: DBName -> AlterTable -> Text
showAlterTable table (AddUniqueConstraint cname cols) = T.concat
[ "ALTER TABLE "
, escape table
, " ADD CONSTRAINT "
, escape cname
, " UNIQUE("
, T.intercalate "," $ map escape cols
, ")"
] | 270 | showAlterTable :: DBName -> AlterTable -> Text
showAlterTable table (AddUniqueConstraint cname cols) = T.concat
[ "ALTER TABLE "
, escape table
, " ADD CONSTRAINT "
, escape cname
, " UNIQUE("
, T.intercalate "," $ map escape cols
, ")"
] | 270 | showAlterTable table (AddUniqueConstraint cname cols) = T.concat
[ "ALTER TABLE "
, escape table
, " ADD CONSTRAINT "
, escape cname
, " UNIQUE("
, T.intercalate "," $ map escape cols
, ")"
] | 223 | false | true | 0 | 8 | 73 | 78 | 40 | 38 | null | null |
hesiod/OpenGL | src/Graphics/Rendering/OpenGL/GL/Texturing/Parameters.hs | bsd-3-clause | --------------------------------------------------------------------------------
textureCompareOperator :: ParameterizedTextureTarget t => t -> StateVar (Maybe TextureCompareOperator)
textureCompareOperator =
combineTexParamsMaybe
(texParami (unmarshalCapability . fromIntegral) (fromIntegral. marshalCapabilit... | 475 | textureCompareOperator :: ParameterizedTextureTarget t => t -> StateVar (Maybe TextureCompareOperator)
textureCompareOperator =
combineTexParamsMaybe
(texParami (unmarshalCapability . fromIntegral) (fromIntegral. marshalCapability) TextureCompare)
(texParami (unmarshalTextureCompareOperator . fromIntegra... | 393 | textureCompareOperator =
combineTexParamsMaybe
(texParami (unmarshalCapability . fromIntegral) (fromIntegral. marshalCapability) TextureCompare)
(texParami (unmarshalTextureCompareOperator . fromIntegral) (fromIntegral . marshalTextureCompareOperator) TextureCompareOperator) | 290 | true | true | 0 | 9 | 44 | 85 | 44 | 41 | null | null |
mightymoose/liquidhaskell | benchmarks/vector-0.10.0.1/Data/Vector/Storable.hs | bsd-3-clause | ifoldr' = G.ifoldr' | 19 | ifoldr' = G.ifoldr' | 19 | ifoldr' = G.ifoldr' | 19 | false | false | 1 | 6 | 2 | 12 | 4 | 8 | null | null |
tonymorris/validation | src/Data/Validation.hs | bsd-3-clause | AccSuccess a1 `appsAccValidation` AccSuccess _ =
AccSuccess a1 | 64 | AccSuccess a1 `appsAccValidation` AccSuccess _ =
AccSuccess a1 | 64 | AccSuccess a1 `appsAccValidation` AccSuccess _ =
AccSuccess a1 | 64 | false | false | 0 | 6 | 9 | 23 | 10 | 13 | null | null |
chrisdotcode/hackage-server | MirrorClient.hs | bsd-3-clause | setETag :: FilePath -> Maybe String -> IO ()
setETag file Nothing = catchJustDoesNotExistError
(removeFile (file <.> "etag"))
(\_ -> return ()) | 205 | setETag :: FilePath -> Maybe String -> IO ()
setETag file Nothing = catchJustDoesNotExistError
(removeFile (file <.> "etag"))
(\_ -> return ()) | 205 | setETag file Nothing = catchJustDoesNotExistError
(removeFile (file <.> "etag"))
(\_ -> return ()) | 160 | false | true | 0 | 9 | 83 | 63 | 31 | 32 | null | null |
tamaralipowski/courseography | hs/Css/Common.hs | gpl-3.0 | disclaimerCSS :: Css
disclaimerCSS = "#disclaimerDiv" ? do
padding 0 (em 1) 0 (em 1)
fontSize (pt 11)
{- modalCSS
- Generates CSS for the modal that appears
- when nodes in the graph are clicked. -} | 209 | disclaimerCSS :: Css
disclaimerCSS = "#disclaimerDiv" ? do
padding 0 (em 1) 0 (em 1)
fontSize (pt 11)
{- modalCSS
- Generates CSS for the modal that appears
- when nodes in the graph are clicked. -} | 209 | disclaimerCSS = "#disclaimerDiv" ? do
padding 0 (em 1) 0 (em 1)
fontSize (pt 11)
{- modalCSS
- Generates CSS for the modal that appears
- when nodes in the graph are clicked. -} | 188 | false | true | 0 | 10 | 47 | 52 | 25 | 27 | null | null |
jbracker/supermonad-plugin | examples/monad/hmtc/original/CodeGenerator.hs | bsd-3-clause | evaluate majl env (ExpApp {eaFun = f, eaArgs = as}) = do
mapM_ (evaluate majl env) as
evaluate majl env f
emit CALLI | 128 | evaluate majl env (ExpApp {eaFun = f, eaArgs = as}) = do
mapM_ (evaluate majl env) as
evaluate majl env f
emit CALLI | 128 | evaluate majl env (ExpApp {eaFun = f, eaArgs = as}) = do
mapM_ (evaluate majl env) as
evaluate majl env f
emit CALLI | 128 | false | false | 0 | 9 | 34 | 63 | 30 | 33 | null | null |
fmapfmapfmap/amazonka | amazonka-iam/gen/Network/AWS/IAM/Types.hs | mpl-2.0 | -- | The request was rejected because the same certificate is associated with
-- an IAM user in the account.
_DuplicateCertificateException :: AsError a => Getting (First ServiceError) a ServiceError
_DuplicateCertificateException =
_ServiceError . hasStatus 409 . hasCode "DuplicateCertificate" | 299 | _DuplicateCertificateException :: AsError a => Getting (First ServiceError) a ServiceError
_DuplicateCertificateException =
_ServiceError . hasStatus 409 . hasCode "DuplicateCertificate" | 190 | _DuplicateCertificateException =
_ServiceError . hasStatus 409 . hasCode "DuplicateCertificate" | 99 | true | true | 0 | 8 | 42 | 47 | 23 | 24 | null | null |
SimonRichards/HaskellOfLife | georgie.hs | apache-2.0 | take' n (x:xs) = x : take' (n-1) xs | 35 | take' n (x:xs) = x : take' (n-1) xs | 35 | take' n (x:xs) = x : take' (n-1) xs | 35 | false | false | 0 | 8 | 8 | 34 | 17 | 17 | null | null |
taphu/scotty-resource | src/Web/Scotty/Resource/Trans.hs | apache-2.0 | {- |
Create a `WebResource` that handles GET requests using the given
scotty action.
-}
get :: ActionT e m () -> WebResource e m ()
get action = W [("GET", action)] () | 171 | get :: ActionT e m () -> WebResource e m ()
get action = W [("GET", action)] () | 79 | get action = W [("GET", action)] () | 35 | true | true | 0 | 7 | 36 | 53 | 27 | 26 | null | null |
l-a-i-n/Telegraphs | src/Network/Telegraphs.hs | mit | -- return an endpoint url for a given method & token
getEndpoint :: String -> String -> String
getEndpoint token method = getBaseURL token ++ method
where
getBaseURL :: String -> String
getBaseURL token = "https://api.telegram.org/bot" ++ token ++ "/"
-- convert the body returned from a GET request to an upd... | 323 | getEndpoint :: String -> String -> String
getEndpoint token method = getBaseURL token ++ method
where
getBaseURL :: String -> String
getBaseURL token = "https://api.telegram.org/bot" ++ token ++ "/"
-- convert the body returned from a GET request to an update | 270 | getEndpoint token method = getBaseURL token ++ method
where
getBaseURL :: String -> String
getBaseURL token = "https://api.telegram.org/bot" ++ token ++ "/"
-- convert the body returned from a GET request to an update | 228 | true | true | 0 | 8 | 62 | 72 | 33 | 39 | null | null |
cg5-/continue | src/Parse.hs | bsd-3-clause | squares = P.brackets lexer | 26 | squares = P.brackets lexer | 26 | squares = P.brackets lexer | 26 | false | false | 0 | 6 | 3 | 11 | 5 | 6 | null | null |
bitemyapp/lets-lens | src/Lets/StoreLens.hs | bsd-3-clause | -- $setup
-- >>> import qualified Data.Map as Map(fromList)
-- >>> import qualified Data.Set as Set(fromList)
-- >>> import Data.Char(ord)
-- >>> import Lets.Data
setS ::
Store s a
-> s
-> a
setS (Store s _) =
s | 220 | setS ::
Store s a
-> s
-> a
setS (Store s _) =
s | 56 | setS (Store s _) =
s | 22 | true | true | 0 | 10 | 47 | 42 | 22 | 20 | null | null |
bgold-cosmos/Tidal | src/Sound/Tidal/Params.hs | gpl-3.0 | -- |
lclaves :: Pattern Double -> ControlPattern
lclaves = pF "lclaves" | 72 | lclaves :: Pattern Double -> ControlPattern
lclaves = pF "lclaves" | 66 | lclaves = pF "lclaves" | 22 | true | true | 0 | 7 | 12 | 29 | 12 | 17 | null | null |
nikai3d/ce-challenges | hard/repeated_substr.hs | bsd-3-clause | main :: IO ()
main = do
[inpFile] <- getArgs
input <- readFile inpFile
putStr . unlines . map repeatedsub $ lines input | 131 | main :: IO ()
main = do
[inpFile] <- getArgs
input <- readFile inpFile
putStr . unlines . map repeatedsub $ lines input | 131 | main = do
[inpFile] <- getArgs
input <- readFile inpFile
putStr . unlines . map repeatedsub $ lines input | 117 | false | true | 0 | 9 | 34 | 57 | 26 | 31 | null | null |
codemac/yi-editor | src/Yi/Verifier/JavaScript.hs | gpl-2.0 | -- | Given a 'FunDecl', returns the token representing the name.
funName :: Statement t -> t
funName (FunDecl _ n _ _) = n | 122 | funName :: Statement t -> t
funName (FunDecl _ n _ _) = n | 57 | funName (FunDecl _ n _ _) = n | 29 | true | true | 0 | 9 | 24 | 40 | 18 | 22 | null | null |
gcampax/ghc | compiler/hsSyn/HsExpr.hs | bsd-3-clause | pprHsBracket (DecBrL ds) = thBrackets (char 'd') (vcat (map ppr ds)) | 68 | pprHsBracket (DecBrL ds) = thBrackets (char 'd') (vcat (map ppr ds)) | 68 | pprHsBracket (DecBrL ds) = thBrackets (char 'd') (vcat (map ppr ds)) | 68 | false | false | 0 | 9 | 10 | 40 | 19 | 21 | null | null |
cspollard/bcalib | src/BCalib/JF.hs | bsd-3-clause | jfPc :: Lens' JFInfo Double
jfPc
f_ajjp
(JFInfo x1_ajjq
x2_ajjr
x3_ajjs
x4_ajjt
x5_ajju
x6_ajjv
x7_ajjw
x8_ajjx
x9_ajjy
x10_ajjz)
= fmap
(\ y1_ajjA
-> JFInfo
x1_ajjq
x2_ajjr
... | 513 | jfPc :: Lens' JFInfo Double
jfPc
f_ajjp
(JFInfo x1_ajjq
x2_ajjr
x3_ajjs
x4_ajjt
x5_ajju
x6_ajjv
x7_ajjw
x8_ajjx
x9_ajjy
x10_ajjz)
= fmap
(\ y1_ajjA
-> JFInfo
x1_ajjq
x2_ajjr
... | 513 | jfPc
f_ajjp
(JFInfo x1_ajjq
x2_ajjr
x3_ajjs
x4_ajjt
x5_ajju
x6_ajjv
x7_ajjw
x8_ajjx
x9_ajjy
x10_ajjz)
= fmap
(\ y1_ajjA
-> JFInfo
x1_ajjq
x2_ajjr
x3_ajjs
... | 485 | false | true | 1 | 7 | 292 | 90 | 42 | 48 | null | null |
GaloisInc/halvm-ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | divModIntegerName = varQual gHC_INTEGER_TYPE (fsLit "divModInteger") divModIntegerIdKey | 95 | divModIntegerName = varQual gHC_INTEGER_TYPE (fsLit "divModInteger") divModIntegerIdKey | 95 | divModIntegerName = varQual gHC_INTEGER_TYPE (fsLit "divModInteger") divModIntegerIdKey | 95 | false | false | 1 | 7 | 14 | 22 | 9 | 13 | null | null |
burz/Feval | FVL/Eval.hs | mit | substitute _ _ (Fx' (CBool b)) = Fx' $ CBool b | 46 | substitute _ _ (Fx' (CBool b)) = Fx' $ CBool b | 46 | substitute _ _ (Fx' (CBool b)) = Fx' $ CBool b | 46 | false | false | 0 | 9 | 10 | 32 | 15 | 17 | null | null |
chemist/highlighter | src/Text/Highlighter/Lexer.hs | bsd-3-clause | nextState (PopNum n) _ =
modify $ \ls -> ls { lsState = P.drop n (lsState ls) } | 83 | nextState (PopNum n) _ =
modify $ \ls -> ls { lsState = P.drop n (lsState ls) } | 83 | nextState (PopNum n) _ =
modify $ \ls -> ls { lsState = P.drop n (lsState ls) } | 83 | false | false | 2 | 10 | 21 | 54 | 25 | 29 | null | null |
Chiel92/ants | simulation/Options.hs | gpl-2.0 | getRedTeam :: Options -> String
getRedTeam = removeDirectory . dropEnd 4 . getRedFile | 85 | getRedTeam :: Options -> String
getRedTeam = removeDirectory . dropEnd 4 . getRedFile | 85 | getRedTeam = removeDirectory . dropEnd 4 . getRedFile | 53 | false | true | 0 | 7 | 12 | 26 | 13 | 13 | null | null |
olorin/amazonka | amazonka-ec2/gen/Network/AWS/EC2/Types/Product.hs | mpl-2.0 | -- | The status message related to the export task.
etStatusMessage :: Lens' ExportTask Text
etStatusMessage = lens _etStatusMessage (\ s a -> s{_etStatusMessage = a}) | 167 | etStatusMessage :: Lens' ExportTask Text
etStatusMessage = lens _etStatusMessage (\ s a -> s{_etStatusMessage = a}) | 115 | etStatusMessage = lens _etStatusMessage (\ s a -> s{_etStatusMessage = a}) | 74 | true | true | 0 | 9 | 25 | 40 | 22 | 18 | null | null |
luigy/stack | src/Stack/Ghci.hs | bsd-3-clause | wantedPackageComponents :: BuildOpts -> SimpleTarget -> Package -> Set NamedComponent
wantedPackageComponents _ (STLocalComps cs) _ = cs | 136 | wantedPackageComponents :: BuildOpts -> SimpleTarget -> Package -> Set NamedComponent
wantedPackageComponents _ (STLocalComps cs) _ = cs | 136 | wantedPackageComponents _ (STLocalComps cs) _ = cs | 50 | false | true | 0 | 8 | 16 | 39 | 19 | 20 | null | null |
juhp/stack | src/Stack/Types/Config.hs | bsd-3-clause | buildOptsHaddockL :: Lens' BuildOpts Bool
buildOptsHaddockL =
lens boptsHaddock
(\bopts t -> bopts {boptsHaddock = t}) | 127 | buildOptsHaddockL :: Lens' BuildOpts Bool
buildOptsHaddockL =
lens boptsHaddock
(\bopts t -> bopts {boptsHaddock = t}) | 127 | buildOptsHaddockL =
lens boptsHaddock
(\bopts t -> bopts {boptsHaddock = t}) | 85 | false | true | 0 | 9 | 24 | 39 | 21 | 18 | null | null |
sebastiaanvisser/ghc-goals | src/Development/GhcGoals/Collector.hs | bsd-3-clause | reduce_type t = t | 17 | reduce_type t = t | 17 | reduce_type t = t | 17 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
murex/murex-coding-dojo | Paris/2015/2015-07-17-BrainfuckInterpreter-Continued-Randori-Haskell/hiker.hs | mit | eval' mem ('-':expr) = eval' (dec mem) expr | 43 | eval' mem ('-':expr) = eval' (dec mem) expr | 43 | eval' mem ('-':expr) = eval' (dec mem) expr | 43 | false | false | 0 | 7 | 7 | 29 | 14 | 15 | null | null |
jameshsmith/HRL | Server/Core/Monad.hs | mit | (%%=) :: l :~> a -> (a -> a) -> Game k l a
(weak -> l) %%= f = liftState (l Lens.%= f) | 86 | (%%=) :: l :~> a -> (a -> a) -> Game k l a
(weak -> l) %%= f = liftState (l Lens.%= f) | 86 | (weak -> l) %%= f = liftState (l Lens.%= f) | 43 | false | true | 0 | 8 | 23 | 64 | 33 | 31 | null | null |
aisamanra/xleb | src/Text/XML/Xleb.hs | bsd-3-clause | contents :: Monad m => Parse t -> XlebT m t
contents parser = Xleb $ do
cnt <- XML.strContent `fmap` M.ask
case parser cnt of
Left err -> M.throwError (XEParseFailure err)
Right x -> return x
-- | Access the raw underlying XML element that we are
-- processing. This is sometimes necessary for working with... | 343 | contents :: Monad m => Parse t -> XlebT m t
contents parser = Xleb $ do
cnt <- XML.strContent `fmap` M.ask
case parser cnt of
Left err -> M.throwError (XEParseFailure err)
Right x -> return x
-- | Access the raw underlying XML element that we are
-- processing. This is sometimes necessary for working with... | 343 | contents parser = Xleb $ do
cnt <- XML.strContent `fmap` M.ask
case parser cnt of
Left err -> M.throwError (XEParseFailure err)
Right x -> return x
-- | Access the raw underlying XML element that we are
-- processing. This is sometimes necessary for working with free-form
-- XML data. | 299 | false | true | 0 | 13 | 74 | 99 | 47 | 52 | null | null |
Noeda/caramia-extras | lib/Caramia/Extras/LoadImage.hs | mit | namify (ImageY16 {}) = "grayscale 16-bit" | 41 | namify (ImageY16 {}) = "grayscale 16-bit" | 41 | namify (ImageY16 {}) = "grayscale 16-bit" | 41 | false | false | 0 | 7 | 5 | 16 | 8 | 8 | null | null |
johanneshilden/hashids-haskell | test/Test.hs | mit | enc :: String -> ByteString
enc = encodeList hashidsContext . read | 66 | enc :: String -> ByteString
enc = encodeList hashidsContext . read | 66 | enc = encodeList hashidsContext . read | 38 | false | true | 0 | 7 | 10 | 29 | 12 | 17 | null | null |
mcschroeder/ghc | compiler/cmm/Debug.hs | bsd-3-clause | extractUnwind :: CmmBlock -> UnwindTable
extractUnwind b = go $ blockToList mid
where (_, mid, _) = blockSplit b
go :: [CmmNode O O] -> UnwindTable
go [] = Map.empty
go (x : xs) = case x of
CmmUnwind g so -> Map.insert g (toUnwindExpr so) $! go xs
CmmTick {} -> go... | 596 | extractUnwind :: CmmBlock -> UnwindTable
extractUnwind b = go $ blockToList mid
where (_, mid, _) = blockSplit b
go :: [CmmNode O O] -> UnwindTable
go [] = Map.empty
go (x : xs) = case x of
CmmUnwind g so -> Map.insert g (toUnwindExpr so) $! go xs
CmmTick {} -> go... | 596 | extractUnwind b = go $ blockToList mid
where (_, mid, _) = blockSplit b
go :: [CmmNode O O] -> UnwindTable
go [] = Map.empty
go (x : xs) = case x of
CmmUnwind g so -> Map.insert g (toUnwindExpr so) $! go xs
CmmTick {} -> go xs
_other -> Map.empty... | 555 | false | true | 0 | 11 | 191 | 161 | 78 | 83 | null | null |
alexander-at-github/eta | compiler/ETA/Prelude/PrimOp.hs | bsd-3-clause | primOpCanFail FetchSubByteArrayOp_Int = True | 44 | primOpCanFail FetchSubByteArrayOp_Int = True | 44 | primOpCanFail FetchSubByteArrayOp_Int = True | 44 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
rblaze/haskell-dbus | lib/DBus/Internal/Types.hs | apache-2.0 | showAtom :: Bool -> Atom -> String
showAtom _ (AtomBool x) = show x | 67 | showAtom :: Bool -> Atom -> String
showAtom _ (AtomBool x) = show x | 67 | showAtom _ (AtomBool x) = show x | 32 | false | true | 0 | 7 | 13 | 33 | 16 | 17 | null | null |
MoixaEnergy/blaze-react | src/Text/Blaze/Event/Keycode.hs | mit | loseBraket = Keycode 221
| 32 | closeBraket = Keycode 221 | 32 | closeBraket = Keycode 221 | 32 | false | false | 1 | 4 | 11 | 12 | 4 | 8 | null | null |
bergey/plots | src/Plots/Themes.hs | bsd-3-clause | applyTextStyle :: (SameSpace a t, HasPlotStyle a b, HasStyle t) => a -> t -> t
applyTextStyle a = applyStyle $ (a ^. textStyle) (a ^. plotColor) | 144 | applyTextStyle :: (SameSpace a t, HasPlotStyle a b, HasStyle t) => a -> t -> t
applyTextStyle a = applyStyle $ (a ^. textStyle) (a ^. plotColor) | 144 | applyTextStyle a = applyStyle $ (a ^. textStyle) (a ^. plotColor) | 65 | false | true | 0 | 8 | 26 | 68 | 35 | 33 | null | null |
sdiehl/ghc | compiler/basicTypes/RdrName.hs | bsd-3-clause | plusParent _ _ = NoParent | 43 | plusParent _ _ = NoParent | 43 | plusParent _ _ = NoParent | 43 | false | false | 0 | 5 | 22 | 11 | 5 | 6 | null | null |
peterbecich/haskell-programming-first-principles | src/Chapter16.hs | bsd-3-clause | getInt :: IO Int
getInt = fmap read getLine | 43 | getInt :: IO Int
getInt = fmap read getLine | 43 | getInt = fmap read getLine | 26 | false | true | 0 | 5 | 8 | 19 | 9 | 10 | null | null |
harrisi/on-being-better | list-expansion/Haskell/cis194/spring13/05/Calc.hs | cc0-1.0 | eval :: ExprT -> Integer
eval (Lit n) = n | 41 | eval :: ExprT -> Integer
eval (Lit n) = n | 41 | eval (Lit n) = n | 16 | false | true | 0 | 7 | 9 | 24 | 12 | 12 | null | null |
norm2782/uuagc | src-generated/PrintCode.hs | bsd-3-clause | sem_Decl ( Data !name_ !params_ alts_ !strict_ !derivings_ ) = sem_Decl_Data name_ params_ ( sem_DataAlts alts_ ) strict_ derivings_ | 132 | sem_Decl ( Data !name_ !params_ alts_ !strict_ !derivings_ ) = sem_Decl_Data name_ params_ ( sem_DataAlts alts_ ) strict_ derivings_ | 132 | sem_Decl ( Data !name_ !params_ alts_ !strict_ !derivings_ ) = sem_Decl_Data name_ params_ ( sem_DataAlts alts_ ) strict_ derivings_ | 132 | false | false | 0 | 8 | 18 | 44 | 19 | 25 | null | null |
martintrojer/scheme-haskell | src/Interpreter.hs | bsd-3-clause | evalExpr e = error $ "Invalid state " ++ show e | 47 | evalExpr e = error $ "Invalid state " ++ show e | 47 | evalExpr e = error $ "Invalid state " ++ show e | 47 | false | false | 0 | 6 | 10 | 20 | 9 | 11 | null | null |
olsner/ghc | testsuite/tests/programs/galois_raytrace/Interval.hs | bsd-3-clause | mapI f (b1, is, b2) = (b1, map f is, b2) | 40 | mapI f (b1, is, b2) = (b1, map f is, b2) | 40 | mapI f (b1, is, b2) = (b1, map f is, b2) | 40 | false | false | 0 | 6 | 10 | 34 | 19 | 15 | null | null |
nh2/WashNGo | WASH/HTML/HTMLMonadAttrs.hs | bsd-3-clause | clear :: Monad m => String -> WithHTML x m ()
clear = attr "clear" | 67 | clear :: Monad m => String -> WithHTML x m ()
clear = attr "clear" | 67 | clear = attr "clear" | 21 | false | true | 0 | 8 | 15 | 34 | 16 | 18 | null | null |
pgj/bead | src/Bead/Persistence/SQL/MySQL.hs | bsd-3-clause | defaultConfig = Config {
dbName = "bead"
, host = "localhost"
, port = 3306
, user = "root"
, pass = "password"
} | 127 | defaultConfig = Config {
dbName = "bead"
, host = "localhost"
, port = 3306
, user = "root"
, pass = "password"
} | 127 | defaultConfig = Config {
dbName = "bead"
, host = "localhost"
, port = 3306
, user = "root"
, pass = "password"
} | 127 | false | false | 0 | 6 | 37 | 38 | 24 | 14 | null | null |
brendanhay/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Campaigns/Update.hs | mpl-2.0 | -- | Upload protocol for media (e.g. \"raw\", \"multipart\").
cuUploadProtocol :: Lens' CampaignsUpdate (Maybe Text)
cuUploadProtocol
= lens _cuUploadProtocol
(\ s a -> s{_cuUploadProtocol = a}) | 202 | cuUploadProtocol :: Lens' CampaignsUpdate (Maybe Text)
cuUploadProtocol
= lens _cuUploadProtocol
(\ s a -> s{_cuUploadProtocol = a}) | 140 | cuUploadProtocol
= lens _cuUploadProtocol
(\ s a -> s{_cuUploadProtocol = a}) | 85 | true | true | 0 | 9 | 33 | 48 | 25 | 23 | null | null |
danr/tfp1 | Lang/LintRich.hs | gpl-3.0 | lint :: Ord v => LintM v a -> [Err v]
lint m = runReader (execWriterT m) M.empty | 80 | lint :: Ord v => LintM v a -> [Err v]
lint m = runReader (execWriterT m) M.empty | 80 | lint m = runReader (execWriterT m) M.empty | 42 | false | true | 0 | 10 | 17 | 54 | 24 | 30 | null | null |
phischu/fragnix | benchmarks/containers/Data.Sequence.hs | bsd-3-clause | squashR (Two n1 n2) (Three a b c) = Three n1 n2 (node3 a b c) | 61 | squashR (Two n1 n2) (Three a b c) = Three n1 n2 (node3 a b c) | 61 | squashR (Two n1 n2) (Three a b c) = Three n1 n2 (node3 a b c) | 61 | false | false | 0 | 7 | 15 | 48 | 22 | 26 | null | null |
amccausl/Swish | Swish/HaskellRDF/Datatype.hs | lgpl-2.1 | -- |Make rules for Datatype value based on supplied expression
typeMkRules :: Datatype ex lb vn -> ex -> [Rule ex]
typeMkRules (Datatype dtv) = tvalMkRules dtv | 161 | typeMkRules :: Datatype ex lb vn -> ex -> [Rule ex]
typeMkRules (Datatype dtv) = tvalMkRules dtv | 96 | typeMkRules (Datatype dtv) = tvalMkRules dtv | 44 | true | true | 0 | 8 | 28 | 45 | 22 | 23 | null | null |
comius/haskell-fast-reals | notes/Searchable.hs | bsd-2-clause | forall s p = not (exists s (not . p)) | 37 | forall s p = not (exists s (not . p)) | 37 | forall s p = not (exists s (not . p)) | 37 | false | false | 1 | 9 | 9 | 34 | 14 | 20 | null | null |
anttisalonen/freekick | haskell/libfreekick/Freekick/Libsoccer/DatabaseHelper.hs | agpl-3.0 | parsePoint :: Node -> Point
parsePoint n = (x, y, z)
where
x = if isNothing mx then 0.0 else read (fromJust mx)
y = if isNothing my then 0.0 else read (fromJust my)
z = if isNothing mz then 0.0 else read (fromJust mz)
mx = lookup "x" (eAttrs n)
my = lookup "... | 370 | parsePoint :: Node -> Point
parsePoint n = (x, y, z)
where
x = if isNothing mx then 0.0 else read (fromJust mx)
y = if isNothing my then 0.0 else read (fromJust my)
z = if isNothing mz then 0.0 else read (fromJust mz)
mx = lookup "x" (eAttrs n)
my = lookup "... | 370 | parsePoint n = (x, y, z)
where
x = if isNothing mx then 0.0 else read (fromJust mx)
y = if isNothing my then 0.0 else read (fromJust my)
z = if isNothing mz then 0.0 else read (fromJust mz)
mx = lookup "x" (eAttrs n)
my = lookup "y" (eAttrs n)
mz =... | 342 | false | true | 6 | 8 | 134 | 179 | 80 | 99 | null | null |
cdornan/idiot | Text/RE/LineNo.hs | bsd-3-clause | lineNo :: Int -> LineNo
lineNo = ZeroBasedLineNo . (\x->x-1) | 60 | lineNo :: Int -> LineNo
lineNo = ZeroBasedLineNo . (\x->x-1) | 60 | lineNo = ZeroBasedLineNo . (\x->x-1) | 36 | false | true | 0 | 8 | 9 | 31 | 17 | 14 | null | null |
N4d4/dotfiles | xmonad/.xmonad/xmonad.hs | mit | -- Border colors for unfocused and focused windows, respectively.
-- moved in /lib/MyTheme.hs
--myNormalBorderColor = "#074C34" -- Colors
--myFocusedBorderColor = "#17B753"
myNormalBorderColor = "#8F7056" | 206 | myNormalBorderColor = "#8F7056" | 32 | myNormalBorderColor = "#8F7056" | 32 | true | false | 1 | 5 | 25 | 14 | 7 | 7 | null | null |
wxwxwwxxx/ghc | testsuite/tests/programs/andy_cherry/DataTypes.hs | bsd-3-clause | getOpenName :: Int -> String
getOpenName eco
| otherwise = "Foo" | 73 | getOpenName :: Int -> String
getOpenName eco
| otherwise = "Foo" | 72 | getOpenName eco
| otherwise = "Foo" | 43 | false | true | 0 | 7 | 19 | 24 | 11 | 13 | null | null |
alphalambda/hsmath | src/Learn/Geometry/Drawing.hs | gpl-2.0 | drawCircle'' (o,p) = drawPoint o & drawPoint p & drawCircle (o,p) | 65 | drawCircle'' (o,p) = drawPoint o & drawPoint p & drawCircle (o,p) | 65 | drawCircle'' (o,p) = drawPoint o & drawPoint p & drawCircle (o,p) | 65 | false | false | 0 | 7 | 10 | 39 | 19 | 20 | null | null |
GaloisInc/halvm-ghc | utils/genapply/Main.hs | bsd-3-clause | doubleRegs n = [ "D" ++ show m | m <- [1..n] ] | 47 | doubleRegs n = [ "D" ++ show m | m <- [1..n] ] | 47 | doubleRegs n = [ "D" ++ show m | m <- [1..n] ] | 47 | false | false | 1 | 9 | 13 | 36 | 16 | 20 | null | null |
Oscarzhao/haskell | learnyouahaskell/monads/walk_the_line.hs | apache-2.0 | -- Usage:
-- return (0,0) >>= landLeft 1 >> banana >>= landRight 1
-- expect Nothing
-- We can use do notation to simplify the code
routine :: Maybe Pole
routine = do
start <- return (0,0)
first <- landLeft 2 start
second <- landRight 2 first
landLeft 1 second | 278 | routine :: Maybe Pole
routine = do
start <- return (0,0)
first <- landLeft 2 start
second <- landRight 2 first
landLeft 1 second | 144 | routine = do
start <- return (0,0)
first <- landLeft 2 start
second <- landRight 2 first
landLeft 1 second | 122 | true | true | 0 | 10 | 67 | 72 | 33 | 39 | null | null |
liff/adventofcode-2016 | app/Day1.hs | bsd-3-clause | step :: Placement -> Step -> Placement
step (Placement o pos) (Step t n) =
let o' = turn t o
pos' = move o' n pos
in Placement o' pos' | 144 | step :: Placement -> Step -> Placement
step (Placement o pos) (Step t n) =
let o' = turn t o
pos' = move o' n pos
in Placement o' pos' | 144 | step (Placement o pos) (Step t n) =
let o' = turn t o
pos' = move o' n pos
in Placement o' pos' | 105 | false | true | 0 | 10 | 40 | 80 | 36 | 44 | null | null |
maximkulkin/passwords | Crypto/Password.hs | mit | genRandom Uppercase = randomElement uppercaseChars | 50 | genRandom Uppercase = randomElement uppercaseChars | 50 | genRandom Uppercase = randomElement uppercaseChars | 50 | false | false | 1 | 5 | 4 | 15 | 5 | 10 | null | null |
Feeniks/wreq | Network/Wreq/Internal.hs | bsd-3-clause | ignoreResponse :: Response BodyReader -> IO (Response ())
ignoreResponse resp = (Lens.responseBody .~ ()) <$> readResponse resp | 127 | ignoreResponse :: Response BodyReader -> IO (Response ())
ignoreResponse resp = (Lens.responseBody .~ ()) <$> readResponse resp | 127 | ignoreResponse resp = (Lens.responseBody .~ ()) <$> readResponse resp | 69 | false | true | 0 | 9 | 16 | 50 | 24 | 26 | null | null |
yuvallanger/threepenny-gui | samples/GameThing.hs | bsd-3-clause | gridToPixels (x,y) = (32*(x-1),32*(y-1)) | 40 | gridToPixels (x,y) = (32*(x-1),32*(y-1)) | 40 | gridToPixels (x,y) = (32*(x-1),32*(y-1)) | 40 | false | false | 0 | 8 | 3 | 44 | 24 | 20 | null | null |
joshcough/L5-Haskell | src/L/L1/L1L2AST.hs | mit | multiply = Multiply | 21 | multiply = Multiply | 21 | multiply = Multiply | 21 | false | false | 0 | 4 | 4 | 6 | 3 | 3 | null | null |
jean-lopes/universal-machine | src/UniversalMachine.hs | mit | checkFinalStates :: Machine -> Either RunTimeError Machine
checkFinalStates m = mapM_ (checkState "Final" ss) fs >> return m
where fs = toList $ finalStates m
ss = states m | 186 | checkFinalStates :: Machine -> Either RunTimeError Machine
checkFinalStates m = mapM_ (checkState "Final" ss) fs >> return m
where fs = toList $ finalStates m
ss = states m | 186 | checkFinalStates m = mapM_ (checkState "Final" ss) fs >> return m
where fs = toList $ finalStates m
ss = states m | 127 | false | true | 1 | 8 | 42 | 66 | 31 | 35 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.