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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fmapfmapfmap/amazonka | amazonka-elastictranscoder/test/Test/AWS/Gen/ElasticTranscoder.hs | mpl-2.0 | testListPipelinesResponse :: ListPipelinesResponse -> TestTree
testListPipelinesResponse = res
"ListPipelinesResponse"
"fixture/ListPipelinesResponse.proto"
elasticTranscoder
(Proxy :: Proxy ListPipelines) | 221 | testListPipelinesResponse :: ListPipelinesResponse -> TestTree
testListPipelinesResponse = res
"ListPipelinesResponse"
"fixture/ListPipelinesResponse.proto"
elasticTranscoder
(Proxy :: Proxy ListPipelines) | 221 | testListPipelinesResponse = res
"ListPipelinesResponse"
"fixture/ListPipelinesResponse.proto"
elasticTranscoder
(Proxy :: Proxy ListPipelines) | 158 | false | true | 0 | 6 | 30 | 36 | 17 | 19 | null | null |
KommuSoft/dep-software | Dep.Ui.Utils.hs | gpl-3.0 | linR :: Int -- ^ The resulting integer specifying that the char should contain this box drawing line.
linR = 8 | 110 | linR :: Int
linR = 8 | 20 | linR = 8 | 8 | true | true | 0 | 4 | 20 | 12 | 7 | 5 | null | null |
arnizamani/OccamStar | Haskell.hs | gpl-2.0 | getSubExpStmt :: HsStmt -> [HsExp]
getSubExpStmt (HsGenerator _ _ e) = getSubExp e | 82 | getSubExpStmt :: HsStmt -> [HsExp]
getSubExpStmt (HsGenerator _ _ e) = getSubExp e | 82 | getSubExpStmt (HsGenerator _ _ e) = getSubExp e | 47 | false | true | 0 | 7 | 12 | 34 | 17 | 17 | null | null |
peterokagey/haskellOEIS | src/Walk/A300444.hs | apache-2.0 | nextSteps steps@(HorizontalStep y (x1, x2) : _) = (stepUp, stepDown, stepForward) where
stepUp = minimum $ map (truncateStep (VerticalStep x2 (y, y + 1))) steps
stepDown = minimum $ map (truncateStep (VerticalStep x2 (y, y - 1))) steps
stepForward = minimum $ map (truncateStep (HorizontalStep y (x2, x3))) steps w... | 368 | nextSteps steps@(HorizontalStep y (x1, x2) : _) = (stepUp, stepDown, stepForward) where
stepUp = minimum $ map (truncateStep (VerticalStep x2 (y, y + 1))) steps
stepDown = minimum $ map (truncateStep (VerticalStep x2 (y, y - 1))) steps
stepForward = minimum $ map (truncateStep (HorizontalStep y (x2, x3))) steps w... | 368 | nextSteps steps@(HorizontalStep y (x1, x2) : _) = (stepUp, stepDown, stepForward) where
stepUp = minimum $ map (truncateStep (VerticalStep x2 (y, y + 1))) steps
stepDown = minimum $ map (truncateStep (VerticalStep x2 (y, y - 1))) steps
stepForward = minimum $ map (truncateStep (HorizontalStep y (x2, x3))) steps w... | 368 | false | false | 0 | 14 | 73 | 178 | 96 | 82 | null | null |
damoxc/ganeti | src/Ganeti/HTools/CLI.hs | gpl-2.0 | oDiskMoves :: OptType
oDiskMoves =
(Option "" ["no-disk-moves"]
(NoArg (\ opts -> Ok opts { optDiskMoves = False}))
"disallow disk moves from the list of allowed instance changes,\
\ thus allowing only the 'cheap' failover/migrate operations",
OptComplNone) | 271 | oDiskMoves :: OptType
oDiskMoves =
(Option "" ["no-disk-moves"]
(NoArg (\ opts -> Ok opts { optDiskMoves = False}))
"disallow disk moves from the list of allowed instance changes,\
\ thus allowing only the 'cheap' failover/migrate operations",
OptComplNone) | 271 | oDiskMoves =
(Option "" ["no-disk-moves"]
(NoArg (\ opts -> Ok opts { optDiskMoves = False}))
"disallow disk moves from the list of allowed instance changes,\
\ thus allowing only the 'cheap' failover/migrate operations",
OptComplNone) | 249 | false | true | 0 | 13 | 50 | 54 | 30 | 24 | null | null |
jasonzoladz/persistent | persistent-sqlite/Database/Sqlite.hs | mit | columnBlob :: Statement -> Int -> IO BS.ByteString
columnBlob (Statement statement) columnIndex = do
size <- columnBytesC statement columnIndex
BSI.create size (\resultPtr -> do
dataPtr <- columnBlobC statement columnIndex
if dataPtr /= nullPtr
then ... | 418 | columnBlob :: Statement -> Int -> IO BS.ByteString
columnBlob (Statement statement) columnIndex = do
size <- columnBytesC statement columnIndex
BSI.create size (\resultPtr -> do
dataPtr <- columnBlobC statement columnIndex
if dataPtr /= nullPtr
then ... | 418 | columnBlob (Statement statement) columnIndex = do
size <- columnBytesC statement columnIndex
BSI.create size (\resultPtr -> do
dataPtr <- columnBlobC statement columnIndex
if dataPtr /= nullPtr
then BSI.memcpy resultPtr (castPtr dataPtr) (fromIntegra... | 367 | false | true | 0 | 15 | 136 | 118 | 56 | 62 | null | null |
kRITZCREEK/psc-ide | src/PureScript/Ide.hs | mit | findCompletions :: (PscIde m, MonadLogger m) =>
[Filter] -> Matcher -> m Success
findCompletions filters matcher =
CompletionResult . getCompletions filters matcher <$> getAllModulesWithReexports | 216 | findCompletions :: (PscIde m, MonadLogger m) =>
[Filter] -> Matcher -> m Success
findCompletions filters matcher =
CompletionResult . getCompletions filters matcher <$> getAllModulesWithReexports | 216 | findCompletions filters matcher =
CompletionResult . getCompletions filters matcher <$> getAllModulesWithReexports | 116 | false | true | 1 | 9 | 44 | 64 | 30 | 34 | null | null |
DavidAlphaFox/ghc | utils/haddock/html-test/src/QuasiQuote.hs | bsd-3-clause | val :: Integer
val = eval [expr|1 + 2|] | 39 | val :: Integer
val = eval [expr|1 + 2|] | 39 | val = eval [expr|1 + 2|] | 24 | false | true | 0 | 6 | 8 | 25 | 12 | 13 | null | null |
shlevy/ghc | compiler/nativeGen/X86/Ppr.hs | bsd-3-clause | pprData :: CmmStatic -> SDoc
pprData (CmmString str)
= ptext (sLit "\t.asciz ") <> doubleQuotes (pprASCII str) | 111 | pprData :: CmmStatic -> SDoc
pprData (CmmString str)
= ptext (sLit "\t.asciz ") <> doubleQuotes (pprASCII str) | 111 | pprData (CmmString str)
= ptext (sLit "\t.asciz ") <> doubleQuotes (pprASCII str) | 82 | false | true | 0 | 8 | 17 | 50 | 23 | 27 | null | null |
kawamuray/ganeti | src/Ganeti/Lens.hs | gpl-2.0 | makeCustomLenses :: Name -> Q [Dec]
makeCustomLenses = makeCustomLensesFiltered (const True) | 92 | makeCustomLenses :: Name -> Q [Dec]
makeCustomLenses = makeCustomLensesFiltered (const True) | 92 | makeCustomLenses = makeCustomLensesFiltered (const True) | 56 | false | true | 0 | 7 | 10 | 30 | 15 | 15 | null | null |
creichert/persistent | persistent-template/Database/Persist/TH.hs | mit | sumConstrName :: MkPersistSettings -> EntityDef -> FieldDef -> Name
sumConstrName mps t FieldDef {..} = mkName $ unpack $ concat
[ if mpsPrefixFields mps
then unHaskellName $ entityHaskell t
else ""
, upperFirst $ unHaskellName fieldHaskell
, "Sum"
] | 282 | sumConstrName :: MkPersistSettings -> EntityDef -> FieldDef -> Name
sumConstrName mps t FieldDef {..} = mkName $ unpack $ concat
[ if mpsPrefixFields mps
then unHaskellName $ entityHaskell t
else ""
, upperFirst $ unHaskellName fieldHaskell
, "Sum"
] | 282 | sumConstrName mps t FieldDef {..} = mkName $ unpack $ concat
[ if mpsPrefixFields mps
then unHaskellName $ entityHaskell t
else ""
, upperFirst $ unHaskellName fieldHaskell
, "Sum"
] | 214 | false | true | 0 | 8 | 70 | 81 | 41 | 40 | null | null |
qmuli/qmuli | library/Qi/AWS/Runtime.hs | mit | getUrl :: Text -> Text -> HandlerResponse -> Req.Url 'Req.Http
getUrl host reqId SuccessHandlerResponse {} =
Req.http host /: "2018-06-01" /: "runtime" /: "invocation" /: reqId /:
"response" | 194 | getUrl :: Text -> Text -> HandlerResponse -> Req.Url 'Req.Http
getUrl host reqId SuccessHandlerResponse {} =
Req.http host /: "2018-06-01" /: "runtime" /: "invocation" /: reqId /:
"response" | 194 | getUrl host reqId SuccessHandlerResponse {} =
Req.http host /: "2018-06-01" /: "runtime" /: "invocation" /: reqId /:
"response" | 131 | false | true | 12 | 7 | 31 | 61 | 32 | 29 | null | null |
brendanhay/gogol | gogol-script/gen/Network/Google/Script/Types/Product.hs | mpl-2.0 | -- | Who has permission to run the API executable.
gasteacAccess :: Lens' GoogleAppsScriptTypeExecutionAPIConfig (Maybe GoogleAppsScriptTypeExecutionAPIConfigAccess)
gasteacAccess
= lens _gasteacAccess
(\ s a -> s{_gasteacAccess = a}) | 242 | gasteacAccess :: Lens' GoogleAppsScriptTypeExecutionAPIConfig (Maybe GoogleAppsScriptTypeExecutionAPIConfigAccess)
gasteacAccess
= lens _gasteacAccess
(\ s a -> s{_gasteacAccess = a}) | 191 | gasteacAccess
= lens _gasteacAccess
(\ s a -> s{_gasteacAccess = a}) | 76 | true | true | 1 | 9 | 34 | 52 | 25 | 27 | null | null |
markuspf/Idris-dev | src/Idris/Docs.hs | bsd-3-clause | pprintTypeDoc :: IState -> Doc OutputAnnotation
pprintTypeDoc ist = prettyIst ist (PType emptyFC) <+> colon <+> type1Doc <+>
nest 4 (line <> text typeDescription) | 183 | pprintTypeDoc :: IState -> Doc OutputAnnotation
pprintTypeDoc ist = prettyIst ist (PType emptyFC) <+> colon <+> type1Doc <+>
nest 4 (line <> text typeDescription) | 183 | pprintTypeDoc ist = prettyIst ist (PType emptyFC) <+> colon <+> type1Doc <+>
nest 4 (line <> text typeDescription) | 135 | false | true | 0 | 10 | 44 | 59 | 28 | 31 | null | null |
olsner/ghc | compiler/nativeGen/PIC.hs | bsd-3-clause | -- all other platforms
howToAccessLabel dflags _ _ _ _ _
| not (gopt Opt_PIC dflags)
= AccessDirectly
| otherwise
= panic "howToAccessLabel: PIC not defined for this platform" | 208 | howToAccessLabel dflags _ _ _ _ _
| not (gopt Opt_PIC dflags)
= AccessDirectly
| otherwise
= panic "howToAccessLabel: PIC not defined for this platform" | 185 | howToAccessLabel dflags _ _ _ _ _
| not (gopt Opt_PIC dflags)
= AccessDirectly
| otherwise
= panic "howToAccessLabel: PIC not defined for this platform" | 185 | true | false | 0 | 10 | 61 | 51 | 23 | 28 | null | null |
jutaro/rdf4h | src/Data/RDF/Graph/MapSP.hs | bsd-3-clause | uniqTriplesOf' :: MapSP -> Triples
uniqTriplesOf' = nub . expandTriples | 71 | uniqTriplesOf' :: MapSP -> Triples
uniqTriplesOf' = nub . expandTriples | 71 | uniqTriplesOf' = nub . expandTriples | 36 | false | true | 0 | 5 | 9 | 19 | 10 | 9 | null | null |
mydaum/cabal | cabal-install/Distribution/Solver/Modular/Version.hs | bsd-3-clause | -- | Simplify a version range.
simplifyVR :: VR -> VR
simplifyVR = CV.simplifyVersionRange | 90 | simplifyVR :: VR -> VR
simplifyVR = CV.simplifyVersionRange | 59 | simplifyVR = CV.simplifyVersionRange | 36 | true | true | 0 | 7 | 13 | 25 | 11 | 14 | null | null |
GaloisInc/loi | LOI/LOI.hs | bsd-3-clause | mVehicle :: MemArea (Struct "StationStatus")
mVehicle = area "mVehicle" (Just (istruct [ authIdx .= ival (-1), nextValid .= ival false, overriden .= ival false ])) | 163 | mVehicle :: MemArea (Struct "StationStatus")
mVehicle = area "mVehicle" (Just (istruct [ authIdx .= ival (-1), nextValid .= ival false, overriden .= ival false ])) | 163 | mVehicle = area "mVehicle" (Just (istruct [ authIdx .= ival (-1), nextValid .= ival false, overriden .= ival false ])) | 118 | false | true | 0 | 14 | 24 | 79 | 37 | 42 | null | null |
graninas/Haskell-Algorithms | Materials/Back to the Future - Tech Talks NSU/Adapter.hs | gpl-3.0 | cycles' = adaptedTarjanAlg tableGraph | 37 | cycles' = adaptedTarjanAlg tableGraph | 37 | cycles' = adaptedTarjanAlg tableGraph | 37 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
paolino/dependencies-sm | Compiler/Manager.hs | bsd-3-clause | mkItem :: (Monad m , Ord b)
=> (b -> Depmask b (Compiler m k b)) -- ^ base compilers for new resources , from dsl
-> Resources m k b -- ^ resource manager
-> b -- ^ a new index
-> Depmask b (Item m b) -- ^ an item for the 'Dependency.Manager.mkManager'
mkItem cs s x = mkItem' (x,cs x) wh... | 693 | mkItem :: (Monad m , Ord b)
=> (b -> Depmask b (Compiler m k b)) -- ^ base compilers for new resources , from dsl
-> Resources m k b -- ^ resource manager
-> b -- ^ a new index
-> Depmask b (Item m b)
mkItem cs s x = mkItem' (x,cs x) where
mkItem' (z,y) = f z <$> y
f z co = Item (... | 640 | mkItem cs s x = mkItem' (x,cs x) where
mkItem' (z,y) = f z <$> y
f z co = Item (build' z co) (delete s z)
build' z co = case co of
Completed (y,cs) -> y >>= update s z >> return (map (fst &&& mkItem') cs)
Compile (Depmask ds f) -> select s ds >>= f >>= build' z
-- | Build a 'Manager' where eac... | 408 | true | true | 4 | 13 | 197 | 267 | 127 | 140 | null | null |
worksap-ate/aws-sdk-xml-unordered | src/Cloud/AWS/Lib/Parser/Unordered/Convert.hs | bsd-3-clause | getContentText (T c) = return c | 31 | getContentText (T c) = return c | 31 | getContentText (T c) = return c | 31 | false | false | 0 | 7 | 5 | 18 | 8 | 10 | null | null |
pparkkin/eta | compiler/ETA/Main/DriverPhases.hs | bsd-3-clause | phaseInputExt LlvmMangle = "lm_s" | 42 | phaseInputExt LlvmMangle = "lm_s" | 42 | phaseInputExt LlvmMangle = "lm_s" | 42 | false | false | 0 | 5 | 12 | 9 | 4 | 5 | null | null |
ben-schulz/Idris-dev | src/Idris/Reflection.hs | bsd-3-clause | rArgOpts _ = [] | 15 | rArgOpts _ = [] | 15 | rArgOpts _ = [] | 15 | false | false | 0 | 5 | 3 | 11 | 5 | 6 | null | null |
Bugfry/exercises | exercism/haskell/leap/src/LeapYear.hs | mit | divisibleBy :: Integer -> Integer -> Bool
divisibleBy x y = mod x y == 0 | 72 | divisibleBy :: Integer -> Integer -> Bool
divisibleBy x y = mod x y == 0 | 72 | divisibleBy x y = mod x y == 0 | 30 | false | true | 0 | 6 | 15 | 33 | 16 | 17 | null | null |
jasoncarr0/reddit-switcharoo-crawler | Main.hs | mit | runSwitcharooBuilder :: RedditT (StateT (GraphBuilder a) IO) b -> IO (Either (APIError RedditError) b)
runSwitcharooBuilder = flip evalStateT emptyGraphBuilder . runSwitcharoo | 175 | runSwitcharooBuilder :: RedditT (StateT (GraphBuilder a) IO) b -> IO (Either (APIError RedditError) b)
runSwitcharooBuilder = flip evalStateT emptyGraphBuilder . runSwitcharoo | 175 | runSwitcharooBuilder = flip evalStateT emptyGraphBuilder . runSwitcharoo | 72 | false | true | 0 | 11 | 20 | 66 | 30 | 36 | null | null |
entropia/tip-toi-reveng | src/GMEParser.hs | mit | jumpTo :: Offset -> SGet ()
jumpTo offset = SGet (put offset) | 61 | jumpTo :: Offset -> SGet ()
jumpTo offset = SGet (put offset) | 61 | jumpTo offset = SGet (put offset) | 33 | false | true | 0 | 7 | 11 | 35 | 16 | 19 | null | null |
robert-butts/haskell | mergesort.hs | mit | merge all@(x:xs) [] = all | 25 | merge all@(x:xs) [] = all | 25 | merge all@(x:xs) [] = all | 25 | false | false | 0 | 8 | 4 | 23 | 12 | 11 | null | null |
rocio/rethinkdb | scripts/adtproto/Compile.hs | agpl-3.0 | toTagName = map toUpper | 23 | toTagName = map toUpper | 23 | toTagName = map toUpper | 23 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
fmapfmapfmap/amazonka | amazonka-ec2/gen/Network/AWS/EC2/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'EBSInstanceBlockDevice' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'eibdStatus'
--
-- * 'eibdDeleteOnTermination'
--
-- * 'eibdVolumeId'
--
-- * 'eibdAttachTime'
ebsInstanceBlockDevice
:: EBSInstanceBl... | 519 | ebsInstanceBlockDevice
:: EBSInstanceBlockDevice
ebsInstanceBlockDevice =
EBSInstanceBlockDevice'
{ _eibdStatus = Nothing
, _eibdDeleteOnTermination = Nothing
, _eibdVolumeId = Nothing
, _eibdAttachTime = Nothing
} | 242 | ebsInstanceBlockDevice =
EBSInstanceBlockDevice'
{ _eibdStatus = Nothing
, _eibdDeleteOnTermination = Nothing
, _eibdVolumeId = Nothing
, _eibdAttachTime = Nothing
} | 189 | true | true | 0 | 6 | 96 | 48 | 34 | 14 | null | null |
TOSPIO/yi | src/library/Yi/Buffer/Misc.hs | gpl-2.0 | movingToPrefVisCol :: BufferM a -> BufferM a
movingToPrefVisCol f = do
prefCol <- use preferVisColA
targetCol <- maybe curVisCol return prefCol
r <- f
moveToVisColB targetCol
preferVisColA .= Just targetCol
return r | 227 | movingToPrefVisCol :: BufferM a -> BufferM a
movingToPrefVisCol f = do
prefCol <- use preferVisColA
targetCol <- maybe curVisCol return prefCol
r <- f
moveToVisColB targetCol
preferVisColA .= Just targetCol
return r | 227 | movingToPrefVisCol f = do
prefCol <- use preferVisColA
targetCol <- maybe curVisCol return prefCol
r <- f
moveToVisColB targetCol
preferVisColA .= Just targetCol
return r | 182 | false | true | 0 | 8 | 43 | 77 | 32 | 45 | null | null |
keera-studios/hsQt | Qtc/Enums/Gui/QPaintEngine.hs | bsd-2-clause | fDirtyCompositionMode :: DirtyFlags
fDirtyCompositionMode
= ifDirtyFlags $ 1024 | 81 | fDirtyCompositionMode :: DirtyFlags
fDirtyCompositionMode
= ifDirtyFlags $ 1024 | 81 | fDirtyCompositionMode
= ifDirtyFlags $ 1024 | 45 | false | true | 0 | 6 | 9 | 18 | 8 | 10 | null | null |
astro/haskell-torrent | src/BCode-binary.hs | bsd-2-clause | searchInt :: String -> BCode -> Maybe Integer
searchInt str b = case search [toPS str] b of
Just (BInt i) -> Just i
_ -> Nothing | 168 | searchInt :: String -> BCode -> Maybe Integer
searchInt str b = case search [toPS str] b of
Just (BInt i) -> Just i
_ -> Nothing | 168 | searchInt str b = case search [toPS str] b of
Just (BInt i) -> Just i
_ -> Nothing | 122 | false | true | 0 | 10 | 66 | 71 | 32 | 39 | null | null |
beni55/attoparsec | Data/Attoparsec/Zepto.hs | bsd-3-clause | takeWhile :: Monad m => (Word8 -> Bool) -> ZeptoT m ByteString
takeWhile p = do
(h,t) <- gets (B.span p . input)
put (S t)
return h
| 138 | takeWhile :: Monad m => (Word8 -> Bool) -> ZeptoT m ByteString
takeWhile p = do
(h,t) <- gets (B.span p . input)
put (S t)
return h
| 138 | takeWhile p = do
(h,t) <- gets (B.span p . input)
put (S t)
return h
| 75 | false | true | 0 | 12 | 34 | 87 | 40 | 47 | null | null |
WraithM/peertrader-backend | src/PeerTrader/Socket/Ops.hs | bsd-3-clause | processCommand :: Ops -> TChan Command -> IO ()
processCommand ops commandChan = forever $ do
command <- atomically (readTChan commandChan)
debugM "WebConnection" $ "Processed " ++ show command
void . forkIO $
runOpsDbReader (executeCommand command)
where
runOpsDbReader = runNoLoggingT . flip ... | 334 | processCommand :: Ops -> TChan Command -> IO ()
processCommand ops commandChan = forever $ do
command <- atomically (readTChan commandChan)
debugM "WebConnection" $ "Processed " ++ show command
void . forkIO $
runOpsDbReader (executeCommand command)
where
runOpsDbReader = runNoLoggingT . flip ... | 334 | processCommand ops commandChan = forever $ do
command <- atomically (readTChan commandChan)
debugM "WebConnection" $ "Processed " ++ show command
void . forkIO $
runOpsDbReader (executeCommand command)
where
runOpsDbReader = runNoLoggingT . flip runReaderT ops | 286 | false | true | 0 | 11 | 69 | 106 | 48 | 58 | null | null |
mariefarrell/Hets | Maude/Maude2DG.hs | gpl-2.0 | morphismView name p ss (n, th, morph, rnms, False) morph1 =
(name, morph4, vmorph', n, [(p, th, translateSorts morph ss)])
where rnms' = qualifyRenamings2 p rnms
morph2 = applyRenamings morph1 rnms'
rnms'' = createQualificationTh2Mod p ss
morph3 = applyRenamings morph... | 862 | morphismView name p ss (n, th, morph, rnms, False) morph1 =
(name, morph4, vmorph', n, [(p, th, translateSorts morph ss)])
where rnms' = qualifyRenamings2 p rnms
morph2 = applyRenamings morph1 rnms'
rnms'' = createQualificationTh2Mod p ss
morph3 = applyRenamings morph... | 862 | morphismView name p ss (n, th, morph, rnms, False) morph1 =
(name, morph4, vmorph', n, [(p, th, translateSorts morph ss)])
where rnms' = qualifyRenamings2 p rnms
morph2 = applyRenamings morph1 rnms'
rnms'' = createQualificationTh2Mod p ss
morph3 = applyRenamings morph... | 862 | false | false | 0 | 8 | 261 | 177 | 96 | 81 | null | null |
frantisekfarka/ghc-dsi | compiler/codeGen/StgCmmUtils.hs | bsd-3-clause | -------------------------------------------------------------------------
--
-- Converting a closure tag to a closure for enumeration types
-- (this is the implementation of tagToEnum#).
--
-------------------------------------------------------------------------
tagToClosure :: DynFlags -> TyCon -> CmmExpr ... | 723 | tagToClosure :: DynFlags -> TyCon -> CmmExpr -> CmmExpr
tagToClosure dflags tycon tag
= CmmLoad (cmmOffsetExprW dflags closure_tbl tag) (bWord dflags)
where closure_tbl = CmmLit (CmmLabel lbl)
lbl = mkClosureTableLabel (tyConName tycon) NoCafRefs
------------------------------------------------------------... | 448 | tagToClosure dflags tycon tag
= CmmLoad (cmmOffsetExprW dflags closure_tbl tag) (bWord dflags)
where closure_tbl = CmmLit (CmmLabel lbl)
lbl = mkClosureTableLabel (tyConName tycon) NoCafRefs
-------------------------------------------------------------------------
--
-- Conditionals and rts calls
--
-... | 392 | true | true | 1 | 7 | 92 | 95 | 52 | 43 | null | null |
brendanhay/gogol | gogol-mirror/gen/Network/Google/Resource/Mirror/Accounts/Insert.hs | mpl-2.0 | -- | Creates a value of 'AccountsInsert' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'aiAccountName'
--
-- * 'aiPayload'
--
-- * 'aiUserToken'
--
-- * 'aiAccountType'
accountsInsert
:: Text -- ^ 'aiAccountName'
-> Account -... | 664 | accountsInsert
:: Text -- ^ 'aiAccountName'
-> Account -- ^ 'aiPayload'
-> Text -- ^ 'aiUserToken'
-> Text -- ^ 'aiAccountType'
-> AccountsInsert
accountsInsert pAiAccountName_ pAiPayload_ pAiUserToken_ pAiAccountType_ =
AccountsInsert'
{ _aiAccountName = pAiAccountName_
, _aiPayload = pAi... | 408 | accountsInsert pAiAccountName_ pAiPayload_ pAiUserToken_ pAiAccountType_ =
AccountsInsert'
{ _aiAccountName = pAiAccountName_
, _aiPayload = pAiPayload_
, _aiUserToken = pAiUserToken_
, _aiAccountType = pAiAccountType_
} | 242 | true | true | 0 | 10 | 134 | 86 | 52 | 34 | null | null |
AlexanderPankiv/ghc | compiler/simplCore/CoreMonad.hs | bsd-3-clause | cmpEqTick (CaseOfCase a) (CaseOfCase b) = a `compare` b | 87 | cmpEqTick (CaseOfCase a) (CaseOfCase b) = a `compare` b | 87 | cmpEqTick (CaseOfCase a) (CaseOfCase b) = a `compare` b | 87 | false | false | 1 | 8 | 40 | 33 | 15 | 18 | null | null |
farnoy/torrent | src/Network/BitTorrent/PeerMonad.hs | bsd-3-clause | handlePWP Interested = handleInterested | 39 | handlePWP Interested = handleInterested | 39 | handlePWP Interested = handleInterested | 39 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
codemac/yi-editor | src/Yi/KillRing.hs | gpl-2.0 | -- | Push a string in the killring.
push :: String -> [String] -> [String]
push s [] = [s] | 90 | push :: String -> [String] -> [String]
push s [] = [s] | 54 | push s [] = [s] | 15 | true | true | 0 | 7 | 19 | 36 | 20 | 16 | null | null |
FranklinChen/IHaskell | ipython-kernel/src/IHaskell/IPython/ZeroMQ.hs | mit | -- | Attempt to send a message along the socket, returning true if successful.
trySendMessage :: Sender a => String -> Bool -> ByteString -> Socket a -> Message -> IO Bool
trySendMessage nm debug hmacKey socket message = do
let zmqErrorHandler :: ZMQError -> IO Bool
zmqErrorHandler e
-- Ignore errors if... | 821 | trySendMessage :: Sender a => String -> Bool -> ByteString -> Socket a -> Message -> IO Bool
trySendMessage nm debug hmacKey socket message = do
let zmqErrorHandler :: ZMQError -> IO Bool
zmqErrorHandler e
-- Ignore errors if we cannot send. We may want to forward this to the thread that tried put the
... | 742 | trySendMessage nm debug hmacKey socket message = do
let zmqErrorHandler :: ZMQError -> IO Bool
zmqErrorHandler e
-- Ignore errors if we cannot send. We may want to forward this to the thread that tried put the
-- message in the Chan initially.
| errno e == 38 = return False
| oth... | 649 | true | true | 0 | 14 | 180 | 141 | 68 | 73 | null | null |
antalsz/urn-random | src/Data/Urn/Common.hs | mit | totalWeight :: Urn a -> Weight
totalWeight = weight . wtree | 59 | totalWeight :: Urn a -> Weight
totalWeight = weight . wtree | 59 | totalWeight = weight . wtree | 28 | false | true | 0 | 6 | 10 | 22 | 11 | 11 | null | null |
geophf/1HaskellADay | exercises/HAD/Y2017/M10/D24/Solution.hs | mit | seed :: Subcategory Int
seed = [0,0,0,0] | 40 | seed :: Subcategory Int
seed = [0,0,0,0] | 40 | seed = [0,0,0,0] | 16 | false | true | 0 | 5 | 6 | 26 | 15 | 11 | null | null |
zsol/hlogster | Logster.hs | bsd-3-clause | children :: MVar [a]
children = unsafePerformIO $ newMVar [] | 60 | children :: MVar [a]
children = unsafePerformIO $ newMVar [] | 60 | children = unsafePerformIO $ newMVar [] | 39 | false | true | 0 | 7 | 9 | 31 | 14 | 17 | null | null |
rgllm/uminho | 02/CP/cp/Graph.hs | mit | -- | A função 'isForest' testa se um DAG válido é uma floresta (um conjunto de árvores), ou seja,
-- se cada vértice tem no máximo um adjacente.
isForest :: Ord v => DAG v -> Bool
isForest g = isDAG g && all (\v -> length (adj g v) <= 1) (nodes g) | 247 | isForest :: Ord v => DAG v -> Bool
isForest g = isDAG g && all (\v -> length (adj g v) <= 1) (nodes g) | 102 | isForest g = isDAG g && all (\v -> length (adj g v) <= 1) (nodes g) | 67 | true | true | 0 | 12 | 53 | 71 | 35 | 36 | null | null |
brendanhay/gogol | gogol-games/gen/Network/Google/Games/Types/Product.hs | mpl-2.0 | -- | The url to the portrait mode player banner image.
pBannerURLPortrait :: Lens' Player (Maybe Text)
pBannerURLPortrait
= lens _pBannerURLPortrait
(\ s a -> s{_pBannerURLPortrait = a}) | 194 | pBannerURLPortrait :: Lens' Player (Maybe Text)
pBannerURLPortrait
= lens _pBannerURLPortrait
(\ s a -> s{_pBannerURLPortrait = a}) | 139 | pBannerURLPortrait
= lens _pBannerURLPortrait
(\ s a -> s{_pBannerURLPortrait = a}) | 91 | true | true | 0 | 9 | 35 | 48 | 25 | 23 | null | null |
SteffenMichels/IHPMC | src/Util.hs | mit | toTextLst (a:as) toTxt = toTxt a <> ", " <> toTextLst as toTxt | 62 | toTextLst (a:as) toTxt = toTxt a <> ", " <> toTextLst as toTxt | 62 | toTextLst (a:as) toTxt = toTxt a <> ", " <> toTextLst as toTxt | 62 | false | false | 0 | 7 | 12 | 35 | 16 | 19 | null | null |
kim/amazonka | amazonka-elasticache/gen/Network/AWS/ElastiCache/Types.hs | mpl-2.0 | -- | 'CacheEngineVersion' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'cevCacheEngineDescription' @::@ 'Maybe' 'Text'
--
-- * 'cevCacheEngineVersionDescription' @::@ 'Maybe' 'Text'
--
-- * 'cevCacheParameterGroupFamily' @::@ 'Maybe' 'Text'
--
-- * 'cevEngine' @::@ 'Maybe' 'Text'
-... | 705 | cacheEngineVersion :: CacheEngineVersion
cacheEngineVersion = CacheEngineVersion
{ _cevEngine = Nothing
, _cevEngineVersion = Nothing
, _cevCacheParameterGroupFamily = Nothing
, _cevCacheEngineDescription = Nothing
, _cevCacheEngineVersionDescription... | 336 | cacheEngineVersion = CacheEngineVersion
{ _cevEngine = Nothing
, _cevEngineVersion = Nothing
, _cevCacheParameterGroupFamily = Nothing
, _cevCacheEngineDescription = Nothing
, _cevCacheEngineVersionDescription = Nothing
} | 295 | true | true | 0 | 7 | 149 | 67 | 43 | 24 | null | null |
plumlife/cabal | Cabal/Distribution/Simple/Setup.hs | bsd-3-clause | readPackageDbList :: String -> [Maybe PackageDB]
readPackageDbList "clear" = [Nothing] | 87 | readPackageDbList :: String -> [Maybe PackageDB]
readPackageDbList "clear" = [Nothing] | 87 | readPackageDbList "clear" = [Nothing] | 38 | false | true | 0 | 7 | 10 | 27 | 14 | 13 | null | null |
zachsully/hakaru | haskell/Language/Hakaru/Parser/Maple.hs | bsd-3-clause | maple2AST (InertArgs Func
[InertName "Msum", InertArgs ExpSeq []]) =
Var "reject" | 93 | maple2AST (InertArgs Func
[InertName "Msum", InertArgs ExpSeq []]) =
Var "reject" | 93 | maple2AST (InertArgs Func
[InertName "Msum", InertArgs ExpSeq []]) =
Var "reject" | 93 | false | false | 0 | 10 | 22 | 36 | 17 | 19 | null | null |
spechub/Hets | RDF/StaticAnalysis.hs | gpl-2.0 | anaAxiom :: Axiom -> Named Axiom
anaAxiom = makeNamed "" | 56 | anaAxiom :: Axiom -> Named Axiom
anaAxiom = makeNamed "" | 56 | anaAxiom = makeNamed "" | 23 | false | true | 0 | 6 | 9 | 21 | 10 | 11 | null | null |
geophf/1HaskellADay | exercises/HAD/Y2017/M11/D30/Exercise.hs | mit | -- with that we can use Y2017.M11.D24.Exercise.articleData to get our briefs
-- (we have to load the special character table along the way ...)
briefs :: SpecialCharTable -> Connection -> [Publish] -> IO [Brief]
briefs pubs = undefined | 236 | briefs :: SpecialCharTable -> Connection -> [Publish] -> IO [Brief]
briefs pubs = undefined | 91 | briefs pubs = undefined | 23 | true | true | 0 | 9 | 38 | 37 | 20 | 17 | null | null |
silky/csound-expression | src/Csound/Air/Wave.hs | bsd-3-clause | rndPw a = rndPhs (pw' a) | 24 | rndPw a = rndPhs (pw' a) | 24 | rndPw a = rndPhs (pw' a) | 24 | false | false | 0 | 7 | 5 | 18 | 8 | 10 | null | null |
keithodulaigh/Hets | CspCASL/Symbol.hs | gpl-2.0 | -- | try to convert a csp raw symbol to a CASL raw symbol
toRawSymbol :: CspRawSymbol -> Maybe RawSymbol
toRawSymbol r = case r of
ACspSymbol (CspSymbol i (CaslSymbType t)) -> Just (ASymbol $ Symbol i t)
CspKindedSymb (CaslKind k) i -> Just (AKindedSymb k i)
_ -> Nothing | 277 | toRawSymbol :: CspRawSymbol -> Maybe RawSymbol
toRawSymbol r = case r of
ACspSymbol (CspSymbol i (CaslSymbType t)) -> Just (ASymbol $ Symbol i t)
CspKindedSymb (CaslKind k) i -> Just (AKindedSymb k i)
_ -> Nothing | 219 | toRawSymbol r = case r of
ACspSymbol (CspSymbol i (CaslSymbType t)) -> Just (ASymbol $ Symbol i t)
CspKindedSymb (CaslKind k) i -> Just (AKindedSymb k i)
_ -> Nothing | 172 | true | true | 5 | 9 | 55 | 95 | 47 | 48 | null | null |
wereHamster/nauva | product/template/app/dev/Main.hs | mit | main :: IO ()
main = devServer app | 34 | main :: IO ()
main = devServer app | 34 | main = devServer app | 20 | false | true | 1 | 6 | 7 | 22 | 9 | 13 | null | null |
tomahawkins/trs | attic/PIC/Assemble.hs | bsd-3-clause | -- Converts a 'ProgramRel' to a 'ProgramAbs'.
absolute :: ProgramRel -> ProgramAbs
absolute (ProgramRel a) = ProgramAbs $ swap (\ a g -> g + a) 0 a | 147 | absolute :: ProgramRel -> ProgramAbs
absolute (ProgramRel a) = ProgramAbs $ swap (\ a g -> g + a) 0 a | 101 | absolute (ProgramRel a) = ProgramAbs $ swap (\ a g -> g + a) 0 a | 64 | true | true | 0 | 9 | 27 | 54 | 27 | 27 | null | null |
ambiata/tinfoil | src/Tinfoil/Signing/Ed25519/Internal.hs | bsd-3-clause | -- | 64 with versions of libsodium up to 1.0.10-1.
maxSigLen :: Int
maxSigLen = fromIntegral tinfoil_sodium_sig_len | 115 | maxSigLen :: Int
maxSigLen = fromIntegral tinfoil_sodium_sig_len | 64 | maxSigLen = fromIntegral tinfoil_sodium_sig_len | 47 | true | true | 0 | 6 | 16 | 22 | 9 | 13 | null | null |
pixbi/duplo | src/Development/Duplo/Utilities.hs | mit | expandDeps :: [String] -> (String -> [FilePath]) -> [FilePath]
expandDeps deps expander = concat $ fmap expander deps | 117 | expandDeps :: [String] -> (String -> [FilePath]) -> [FilePath]
expandDeps deps expander = concat $ fmap expander deps | 117 | expandDeps deps expander = concat $ fmap expander deps | 54 | false | true | 0 | 9 | 17 | 49 | 26 | 23 | null | null |
mavenraven/validations-checkers | src/Validations/Types/PhoneNumber.hs | bsd-3-clause | phoneNumberState :: PhoneNumber -> PhoneNumberState
phoneNumberState ph = state (countryCodeEmpty, areaCodeEmpty, exchangeEmpty, suffixEmpty, extensionEmpty)
where state (True,True,False,True,True) = Exchange ph
state (True,True,False,False,True) = ExchangeSuffix ph
state (True,True,False,Fals... | 1,317 | phoneNumberState :: PhoneNumber -> PhoneNumberState
phoneNumberState ph = state (countryCodeEmpty, areaCodeEmpty, exchangeEmpty, suffixEmpty, extensionEmpty)
where state (True,True,False,True,True) = Exchange ph
state (True,True,False,False,True) = ExchangeSuffix ph
state (True,True,False,False... | 1,316 | phoneNumberState ph = state (countryCodeEmpty, areaCodeEmpty, exchangeEmpty, suffixEmpty, extensionEmpty)
where state (True,True,False,True,True) = Exchange ph
state (True,True,False,False,True) = ExchangeSuffix ph
state (True,True,False,False,False) = ExchangeSuffixExtension ph
state... | 1,264 | false | true | 0 | 6 | 285 | 427 | 241 | 186 | null | null |
ian-ross/cabal | cabal-install/Main.hs | bsd-3-clause | -- | Used as an entry point when cabal-install needs to invoke itself
-- as a setup script. This can happen e.g. when doing parallel builds.
--
actAsSetupAction :: ActAsSetupFlags -> [String] -> GlobalFlags -> IO ()
actAsSetupAction actAsSetupFlags args _globalFlags =
let bt = fromFlag (actAsSetupBuildType actAsSetup... | 657 | actAsSetupAction :: ActAsSetupFlags -> [String] -> GlobalFlags -> IO ()
actAsSetupAction actAsSetupFlags args _globalFlags =
let bt = fromFlag (actAsSetupBuildType actAsSetupFlags)
in case bt of
Simple -> Simple.defaultMainArgs args
Configure -> Simple.defaultMainWithHooksArgs
Simple.au... | 513 | actAsSetupAction actAsSetupFlags args _globalFlags =
let bt = fromFlag (actAsSetupBuildType actAsSetupFlags)
in case bt of
Simple -> Simple.defaultMainArgs args
Configure -> Simple.defaultMainWithHooksArgs
Simple.autoconfUserHooks args
Make -> Make.defaultMainArgs args
Cust... | 441 | true | true | 0 | 11 | 139 | 126 | 61 | 65 | null | null |
atsukotakahashi/wi | src/library/Yi/Mode/Haskell.hs | gpl-2.0 | contiguous :: Tok t -> Tok t -> Bool
contiguous a b = lb - la <= 1
where [la,lb] = fmap (posnLine . tokPosn) [a,b] | 118 | contiguous :: Tok t -> Tok t -> Bool
contiguous a b = lb - la <= 1
where [la,lb] = fmap (posnLine . tokPosn) [a,b] | 118 | contiguous a b = lb - la <= 1
where [la,lb] = fmap (posnLine . tokPosn) [a,b] | 81 | false | true | 0 | 9 | 29 | 70 | 36 | 34 | null | null |
HJvT/hdirect | src/Parser.hs | bsd-3-clause | happyReduce_131 = happySpecReduce_3 39# happyReduction_131 | 58 | happyReduce_131 = happySpecReduce_3 39# happyReduction_131 | 58 | happyReduce_131 = happySpecReduce_3 39# happyReduction_131 | 58 | false | false | 0 | 5 | 4 | 11 | 5 | 6 | null | null |
DavidAlphaFox/darcs | src/Darcs/Util/Printer.hs | gpl-2.0 | plus = unsafeBoth "+" (BC.singleton '+') | 46 | plus = unsafeBoth "+" (BC.singleton '+') | 46 | plus = unsafeBoth "+" (BC.singleton '+') | 46 | false | false | 0 | 8 | 11 | 19 | 9 | 10 | null | null |
codeboardio/kali | test/src_examples/haskell/several_files_folders2/Root/Test/Test2.hs | mit | spec::Spec
spec = do
describe "Prelude.head" $ do
it "returns the first element of a list" $ do
bar
head [233 ..] `shouldBe` (233 :: Int) | 146 | spec::Spec
spec = do
describe "Prelude.head" $ do
it "returns the first element of a list" $ do
bar
head [233 ..] `shouldBe` (233 :: Int) | 146 | spec = do
describe "Prelude.head" $ do
it "returns the first element of a list" $ do
bar
head [233 ..] `shouldBe` (233 :: Int) | 135 | false | true | 0 | 15 | 34 | 56 | 28 | 28 | null | null |
keithodulaigh/Hets | Propositional/Prop2CASLHelpers.hs | gpl-2.0 | -- | Mapping of a theory
mapTheory :: (PSign.Sign, [AS_Anno.Named PBasic.FORMULA])
-> Result.Result (CSign.CASLSign, [AS_Anno.Named CBasic.CASLFORMULA])
mapTheory (sig, form) = Result.Result [] $
Just (mapSig sig, map trNamedForm form) | 241 | mapTheory :: (PSign.Sign, [AS_Anno.Named PBasic.FORMULA])
-> Result.Result (CSign.CASLSign, [AS_Anno.Named CBasic.CASLFORMULA])
mapTheory (sig, form) = Result.Result [] $
Just (mapSig sig, map trNamedForm form) | 216 | mapTheory (sig, form) = Result.Result [] $
Just (mapSig sig, map trNamedForm form) | 86 | true | true | 0 | 11 | 34 | 95 | 49 | 46 | null | null |
bkoropoff/Idris-dev | src/Idris/Reflection.hs | bsd-3-clause | reifyTTApp t args = fail ("Unknown reflection term: " ++ show (t, args)) | 72 | reifyTTApp t args = fail ("Unknown reflection term: " ++ show (t, args)) | 72 | reifyTTApp t args = fail ("Unknown reflection term: " ++ show (t, args)) | 72 | false | false | 0 | 9 | 12 | 30 | 15 | 15 | null | null |
andrewthad/persistent | persistent-mysql/Database/Persist/MySQL.hs | mit | showAlter table (_, AddReference reftable fkeyname t2 id2) = concat
[ "ALTER TABLE "
, escapeDBName table
, " ADD CONSTRAINT "
, escapeDBName fkeyname
, " FOREIGN KEY("
, intercalate "," $ map escapeDBName t2
, ") REFERENCES "
, escapeDBName reftable
, "("
, intercalate "," $ map... | 353 | showAlter table (_, AddReference reftable fkeyname t2 id2) = concat
[ "ALTER TABLE "
, escapeDBName table
, " ADD CONSTRAINT "
, escapeDBName fkeyname
, " FOREIGN KEY("
, intercalate "," $ map escapeDBName t2
, ") REFERENCES "
, escapeDBName reftable
, "("
, intercalate "," $ map... | 353 | showAlter table (_, AddReference reftable fkeyname t2 id2) = concat
[ "ALTER TABLE "
, escapeDBName table
, " ADD CONSTRAINT "
, escapeDBName fkeyname
, " FOREIGN KEY("
, intercalate "," $ map escapeDBName t2
, ") REFERENCES "
, escapeDBName reftable
, "("
, intercalate "," $ map... | 353 | false | false | 0 | 7 | 102 | 95 | 49 | 46 | null | null |
beni55/attoparsec | Data/Attoparsec/Text/Internal.hs | bsd-3-clause | substring :: Pos -> Pos -> Buffer -> Text
substring (Pos pos) (Pos n) = Buf.substring pos n | 91 | substring :: Pos -> Pos -> Buffer -> Text
substring (Pos pos) (Pos n) = Buf.substring pos n | 91 | substring (Pos pos) (Pos n) = Buf.substring pos n | 49 | false | true | 0 | 7 | 17 | 47 | 23 | 24 | null | null |
SneakingCat/distributed-nonsense | src/Main.hs | apache-2.0 | main :: IO ()
main = do
args <- getArgs
let remoteTable = (Slave.remoteTable . Master.remoteTable) initRemoteTable
case args of
["master", host, port] -> do
backend <- initializeBackend host port remoteTable
startMaster backend (Master.run backend)
["slave", host, port] -> do
... | 459 | main :: IO ()
main = do
args <- getArgs
let remoteTable = (Slave.remoteTable . Master.remoteTable) initRemoteTable
case args of
["master", host, port] -> do
backend <- initializeBackend host port remoteTable
startMaster backend (Master.run backend)
["slave", host, port] -> do
... | 459 | main = do
args <- getArgs
let remoteTable = (Slave.remoteTable . Master.remoteTable) initRemoteTable
case args of
["master", host, port] -> do
backend <- initializeBackend host port remoteTable
startMaster backend (Master.run backend)
["slave", host, port] -> do
backend <- ini... | 445 | false | true | 0 | 15 | 133 | 142 | 68 | 74 | null | null |
phaazon/linear | src/Linear/V.hs | bsd-3-clause | reifyVectorNat :: forall a r. Vector a -> (forall (n :: Nat). KnownNat n => V n a -> r) -> r
reifyVectorNat v f = reifyNat (fromIntegral $ V.length v) $ \(Proxy :: Proxy n) -> f (V v :: V n a) | 192 | reifyVectorNat :: forall a r. Vector a -> (forall (n :: Nat). KnownNat n => V n a -> r) -> r
reifyVectorNat v f = reifyNat (fromIntegral $ V.length v) $ \(Proxy :: Proxy n) -> f (V v :: V n a) | 192 | reifyVectorNat v f = reifyNat (fromIntegral $ V.length v) $ \(Proxy :: Proxy n) -> f (V v :: V n a) | 99 | false | true | 0 | 12 | 43 | 114 | 58 | 56 | null | null |
brendanhay/gogol | gogol-serviceusage/gen/Network/Google/ServiceUsage/Types/Product.hs | mpl-2.0 | -- | If true, the selected method should skip service control and the control
-- plane features, such as quota and billing, will not be available. This
-- flag is used by Google Cloud Endpoints to bypass checks for internal
-- methods, such as service health check methods.
urSkipServiceControl :: Lens' UsageRule (Maybe... | 424 | urSkipServiceControl :: Lens' UsageRule (Maybe Bool)
urSkipServiceControl
= lens _urSkipServiceControl
(\ s a -> s{_urSkipServiceControl = a}) | 150 | urSkipServiceControl
= lens _urSkipServiceControl
(\ s a -> s{_urSkipServiceControl = a}) | 97 | true | true | 0 | 9 | 72 | 51 | 28 | 23 | null | null |
xmonad/xmonad-contrib | XMonad/Layout/DecorationMadness.hs | bsd-3-clause | -- | An 'Accordion' layout with the xmonad default decoration, default
-- theme and default shrinker, but with the possibility of moving
-- windows with the mouse, and resize\/move them with the keyboard.
accordionSimpleDefaultResizable :: ModifiedLayout (Decoration DefaultDecoration DefaultShrinker)
... | 532 | accordionSimpleDefaultResizable :: ModifiedLayout (Decoration DefaultDecoration DefaultShrinker)
(ModifiedLayout MouseResize (ModifiedLayout WindowArranger Accordion)) Window
accordionSimpleDefaultResizable = decoration shrinkText def DefaultDecoration (mouseResize $ windowArrange Acc... | 327 | accordionSimpleDefaultResizable = decoration shrinkText def DefaultDecoration (mouseResize $ windowArrange Accordion) | 117 | true | true | 0 | 9 | 89 | 64 | 33 | 31 | null | null |
brendanhay/gogol | gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'VariableSet' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'vsUserValue'
--
-- * 'vsPlaceholder'
variableSet
:: VariableSet
variableSet = VariableSet' {_vsUserValue = Nothing, _vsPlaceholder = Nothing} | 317 | variableSet
:: VariableSet
variableSet = VariableSet' {_vsUserValue = Nothing, _vsPlaceholder = Nothing} | 108 | variableSet = VariableSet' {_vsUserValue = Nothing, _vsPlaceholder = Nothing} | 77 | true | true | 1 | 7 | 53 | 36 | 22 | 14 | null | null |
xpika/mohws | src/Network/MoHWS/Logger/Access.hs | bsd-3-clause | mkLine (c:rest) r = c ^: mkLine rest r | 38 | mkLine (c:rest) r = c ^: mkLine rest r | 38 | mkLine (c:rest) r = c ^: mkLine rest r | 38 | false | false | 0 | 7 | 8 | 27 | 13 | 14 | null | null |
chreekat/fast-tags | src/Main_test.hs | bsd-3-clause | test_gadt = do
let f = process
equal assert (f "data X where A :: X\n") ["X", "A"]
equal assert (f "data X where\n\tA :: X\n") ["X", "A"]
equal assert (f "data X where\n\tA :: X\n\tB :: X\n") ["X", "A", "B"]
equal assert (f "data X where\n\tA, B :: X\n") ["X", "A", "B"] | 290 | test_gadt = do
let f = process
equal assert (f "data X where A :: X\n") ["X", "A"]
equal assert (f "data X where\n\tA :: X\n") ["X", "A"]
equal assert (f "data X where\n\tA :: X\n\tB :: X\n") ["X", "A", "B"]
equal assert (f "data X where\n\tA, B :: X\n") ["X", "A", "B"] | 290 | test_gadt = do
let f = process
equal assert (f "data X where A :: X\n") ["X", "A"]
equal assert (f "data X where\n\tA :: X\n") ["X", "A"]
equal assert (f "data X where\n\tA :: X\n\tB :: X\n") ["X", "A", "B"]
equal assert (f "data X where\n\tA, B :: X\n") ["X", "A", "B"] | 290 | false | false | 0 | 9 | 72 | 109 | 55 | 54 | null | null |
Helkafen/cabal | Cabal/Distribution/Simple/Command.hs | bsd-3-clause | -- | (String -> a) variant of "reqArg"
reqArg' :: Monoid b => ArgPlaceHolder -> (String -> b) -> (b -> [String])
-> MkOptDescr (a -> b) (b -> a -> a) a
reqArg' ad mkflag showflag =
reqArg ad (succeedReadE mkflag) showflag | 245 | reqArg' :: Monoid b => ArgPlaceHolder -> (String -> b) -> (b -> [String])
-> MkOptDescr (a -> b) (b -> a -> a) a
reqArg' ad mkflag showflag =
reqArg ad (succeedReadE mkflag) showflag | 206 | reqArg' ad mkflag showflag =
reqArg ad (succeedReadE mkflag) showflag | 73 | true | true | 0 | 12 | 66 | 93 | 48 | 45 | null | null |
GaloisInc/ivory | ivory/src/Ivory/Language/Monad.hs | bsd-3-clause | withLocation :: SrcLoc -> Ivory eff a -> Ivory eff a
withLocation src act = setLocation src >> act | 98 | withLocation :: SrcLoc -> Ivory eff a -> Ivory eff a
withLocation src act = setLocation src >> act | 98 | withLocation src act = setLocation src >> act | 45 | false | true | 0 | 7 | 18 | 41 | 19 | 22 | null | null |
koengit/modalox | Main.hs | bsd-2-clause | -- crashes
--------------------------------------------------------------------------------
a = Atom "a" | 106 | a = Atom "a" | 12 | a = Atom "a" | 12 | true | false | 1 | 5 | 8 | 15 | 6 | 9 | null | null |
binesiyu/ifl | examples/ch07/toupper-lazy6.hs | mit | main = interact ((++) "Your data, in uppercase, is:\n\n" .
map toUpper) | 89 | main = interact ((++) "Your data, in uppercase, is:\n\n" .
map toUpper) | 89 | main = interact ((++) "Your data, in uppercase, is:\n\n" .
map toUpper) | 89 | false | false | 0 | 8 | 29 | 24 | 12 | 12 | null | null |
cdepillabout/HLearn | src/HLearn/Data/SpaceTree/CoverTree_Specialized.hs | bsd-3-clause | insertCTOrig ::
( ValidCT exprat childC leafC dp
) => dp
-> CoverTree_ exprat childC leafC dp
-> CoverTree_ exprat childC leafC dp
insertCTOrig dp ct = insertCTOrig_ dp ct (distance dp (nodedp ct)) | 217 | insertCTOrig ::
( ValidCT exprat childC leafC dp
) => dp
-> CoverTree_ exprat childC leafC dp
-> CoverTree_ exprat childC leafC dp
insertCTOrig dp ct = insertCTOrig_ dp ct (distance dp (nodedp ct)) | 217 | insertCTOrig dp ct = insertCTOrig_ dp ct (distance dp (nodedp ct)) | 66 | false | true | 0 | 9 | 53 | 78 | 38 | 40 | null | null |
urbanslug/ghc | testsuite/tests/simplCore/prog001/simpl006.hs | bsd-3-clause | every :: Int -> IO a -> IO ()
every d c = forever (after d c) | 61 | every :: Int -> IO a -> IO ()
every d c = forever (after d c) | 61 | every d c = forever (after d c) | 31 | false | true | 0 | 9 | 16 | 48 | 21 | 27 | null | null |
kazu-yamamoto/wai | wai-extra/Network/Wai/Middleware/RequestLogger/JSON.hs | mit | -- | Get the JSON representation for a request
--
-- This representation is identical to that used in 'formatAsJSON' for the
-- request. It includes:
--
-- [@method@]:
-- [@path@]:
-- [@queryString@]:
-- [@size@]: The size of the body, as defined in the request. This may differ
-- from the size of the data pa... | 1,746 | requestToJSON :: Request -- ^ The WAI request
-> [S8.ByteString] -- ^ Chunked request body
-> Maybe NominalDiffTime -- ^ Optional request duration
-> Value
requestToJSON req reqBody duration =
object $
[ "method" .= decodeUtf8With lenientDecode (requestMethod req)
, "... | 958 | requestToJSON req reqBody duration =
object $
[ "method" .= decodeUtf8With lenientDecode (requestMethod req)
, "path" .= decodeUtf8With lenientDecode (rawPathInfo req)
, "queryString" .= map queryItemToJSON (queryString req)
, "size" .= requestBodyLengthToJSON (requestBodyLength req)
, "body" .= d... | 760 | true | true | 2 | 13 | 361 | 271 | 150 | 121 | null | null |
wjlroe/Fafnir | mandlebrot.hs | bsd-3-clause | im :: Complex -> GLfloat
im (C (x,y)) = y | 44 | im :: Complex -> GLfloat
im (C (x,y)) = y | 44 | im (C (x,y)) = y | 19 | false | true | 0 | 7 | 12 | 34 | 17 | 17 | null | null |
bacher09/darkplaces-demo | src/DarkPlaces/ProtocolConstants.hs | gpl-2.0 | e_frame2_bit :: Int
e_frame2_bit = 16 | 37 | e_frame2_bit :: Int
e_frame2_bit = 16 | 37 | e_frame2_bit = 16 | 17 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
ghc-android/ghc | testsuite/tests/programs/andy_cherry/PrintTEX.hs | bsd-3-clause | parseSquiggle ('<':'w':'a':'w':'>':r) = "\\wdecisive{}" ++ r | 60 | parseSquiggle ('<':'w':'a':'w':'>':r) = "\\wdecisive{}" ++ r | 60 | parseSquiggle ('<':'w':'a':'w':'>':r) = "\\wdecisive{}" ++ r | 60 | false | false | 0 | 11 | 5 | 36 | 18 | 18 | null | null |
mattias-lundell/timber-llvm | src/Desugar2.hs | bsd-3-clause | dsExp (ESel s) = do x <- newNamePos paramSym s
return (ELam [PVar x] (ESelect (EVar x) s)) | 144 | dsExp (ESel s) = do x <- newNamePos paramSym s
return (ELam [PVar x] (ESelect (EVar x) s)) | 144 | dsExp (ESel s) = do x <- newNamePos paramSym s
return (ELam [PVar x] (ESelect (EVar x) s)) | 144 | false | false | 0 | 13 | 71 | 61 | 28 | 33 | null | null |
josefs/autosar | ARSim/arsim/AUTOSAR/ARSim.hs | bsd-3-clause | hear conn (RET a v) (Op b vs) | a==b = Update $ Op b (vs++[v]) | 83 | hear conn (RET a v) (Op b vs) | a==b = Update $ Op b (vs++[v]) | 83 | hear conn (RET a v) (Op b vs) | a==b = Update $ Op b (vs++[v]) | 83 | false | false | 2 | 9 | 36 | 61 | 28 | 33 | null | null |
santolucito/ives | tests/benchmarks/custom_tree_max.hs | mit | exs :: [(BTree Int, Int)]
exs = [ (Branch (Branch (Leaf 3) (Leaf 1)) (Leaf 2), 3),
(Branch (Branch (Leaf 1) (Leaf 10)) (Leaf 5), 10),
(Branch (Branch (Leaf 1) (Leaf 1)) (Leaf 1), 1) ] | 199 | exs :: [(BTree Int, Int)]
exs = [ (Branch (Branch (Leaf 3) (Leaf 1)) (Leaf 2), 3),
(Branch (Branch (Leaf 1) (Leaf 10)) (Leaf 5), 10),
(Branch (Branch (Leaf 1) (Leaf 1)) (Leaf 1), 1) ] | 199 | exs = [ (Branch (Branch (Leaf 3) (Leaf 1)) (Leaf 2), 3),
(Branch (Branch (Leaf 1) (Leaf 10)) (Leaf 5), 10),
(Branch (Branch (Leaf 1) (Leaf 1)) (Leaf 1), 1) ] | 173 | false | true | 0 | 12 | 51 | 150 | 77 | 73 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F19.hs | bsd-3-clause | -- glPNTrianglesfATI -----------------------------------------------------------
glPNTrianglesfATI
:: MonadIO m
=> GLenum -- ^ @pname@ of type [PNTrianglesPNameATI](Graphics-GL-Groups.html#PNTrianglesPNameATI).
-> GLfloat -- ^ @param@.
-> m ()
glPNTrianglesfATI v1 v2 = liftIO $ dyn0 ptr_glPNTrianglesfATI v1 v2 | 320 | glPNTrianglesfATI
:: MonadIO m
=> GLenum -- ^ @pname@ of type [PNTrianglesPNameATI](Graphics-GL-Groups.html#PNTrianglesPNameATI).
-> GLfloat -- ^ @param@.
-> m ()
glPNTrianglesfATI v1 v2 = liftIO $ dyn0 ptr_glPNTrianglesfATI v1 v2 | 238 | glPNTrianglesfATI v1 v2 = liftIO $ dyn0 ptr_glPNTrianglesfATI v1 v2 | 67 | true | true | 0 | 10 | 41 | 54 | 26 | 28 | null | null |
mightymoose/liquidhaskell | benchmarks/bytestring-0.9.2.1/Data/ByteString/Char8.hs | bsd-3-clause | -- | Applied to a predicate and a 'ByteString', 'all' determines if
-- all elements of the 'ByteString' satisfy the predicate.
all :: (Char -> Bool) -> ByteString -> Bool
all f = B.all (f . w2c) | 194 | all :: (Char -> Bool) -> ByteString -> Bool
all f = B.all (f . w2c) | 67 | all f = B.all (f . w2c) | 23 | true | true | 0 | 7 | 36 | 46 | 24 | 22 | null | null |
fredefox/anagrams | test/Test.hs | gpl-3.0 | -- Consider using Hspec [http://hspec.github.io/]
main :: IO ()
main = runTestTT unitTests >> runTests >> return () | 115 | main :: IO ()
main = runTestTT unitTests >> runTests >> return () | 65 | main = runTestTT unitTests >> runTests >> return () | 51 | true | true | 1 | 7 | 17 | 36 | 16 | 20 | null | null |
brunjlar/heap | src/HAL/Peano.hs | mit | rank (Node _ r _ _ _) = r | 25 | rank (Node _ r _ _ _) = r | 25 | rank (Node _ r _ _ _) = r | 25 | false | false | 0 | 7 | 8 | 23 | 11 | 12 | null | null |
Axure/elm-compiler | src/Docs/Check.hs | bsd-3-clause | commentedNames :: R.Region -> String -> [A.Located String]
commentedNames (R.Region start _) comment =
let
nameParser =
choice
[ do string "@docs"
whitespace
commaSep1 (addLocation (var <|> parens symOp))
, do anyUntil simpleNewline
return []
... | 575 | commentedNames :: R.Region -> String -> [A.Located String]
commentedNames (R.Region start _) comment =
let
nameParser =
choice
[ do string "@docs"
whitespace
commaSep1 (addLocation (var <|> parens symOp))
, do anyUntil simpleNewline
return []
... | 575 | commentedNames (R.Region start _) comment =
let
nameParser =
choice
[ do string "@docs"
whitespace
commaSep1 (addLocation (var <|> parens symOp))
, do anyUntil simpleNewline
return []
]
docCommentParser =
do setPosition (newPos ... | 516 | false | true | 3 | 18 | 206 | 188 | 87 | 101 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/Element.hs | mit | -- | <https://developer.mozilla.org/en-US/docs/Web/API/Element.getBoundingClientRect Mozilla Element.getBoundingClientRect documentation>
getBoundingClientRect_ ::
(MonadDOM m, IsElement self) => self -> m ()
getBoundingClientRect_ self
= liftDOM
(void ((toElement self) ^. jsf "getBoundi... | 338 | getBoundingClientRect_ ::
(MonadDOM m, IsElement self) => self -> m ()
getBoundingClientRect_ self
= liftDOM
(void ((toElement self) ^. jsf "getBoundingClientRect" ())) | 199 | getBoundingClientRect_ self
= liftDOM
(void ((toElement self) ^. jsf "getBoundingClientRect" ())) | 105 | true | true | 0 | 11 | 59 | 73 | 35 | 38 | null | null |
spechub/Hets | PGIP/XMLparsing.hs | gpl-2.0 | cmdlStartLoop :: Bool -> Handle -> Handle -> Int -> CmdlState
-> IO CmdlState
cmdlStartLoop swXML h_in h_out timeOut state = do
pgData <- genCMDLPgipState swXML h_in h_out timeOut
let pgD = addPGIPReady $ addPGIPHandshake $ resetPGIPData pgData
pgD' <- sendPGIPData (hetsOpts state) pgD
wai... | 336 | cmdlStartLoop :: Bool -> Handle -> Handle -> Int -> CmdlState
-> IO CmdlState
cmdlStartLoop swXML h_in h_out timeOut state = do
pgData <- genCMDLPgipState swXML h_in h_out timeOut
let pgD = addPGIPReady $ addPGIPHandshake $ resetPGIPData pgData
pgD' <- sendPGIPData (hetsOpts state) pgD
wai... | 336 | cmdlStartLoop swXML h_in h_out timeOut state = do
pgData <- genCMDLPgipState swXML h_in h_out timeOut
let pgD = addPGIPReady $ addPGIPHandshake $ resetPGIPData pgData
pgD' <- sendPGIPData (hetsOpts state) pgD
waitLoop pgD' state | 244 | false | true | 0 | 11 | 76 | 107 | 49 | 58 | null | null |
fmapfmapfmap/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/Types/Product.hs | mpl-2.0 | -- | The user\'s IAM ARN.
upIAMUserARN :: Lens' UserProfile (Maybe Text)
upIAMUserARN = lens _upIAMUserARN (\ s a -> s{_upIAMUserARN = a}) | 138 | upIAMUserARN :: Lens' UserProfile (Maybe Text)
upIAMUserARN = lens _upIAMUserARN (\ s a -> s{_upIAMUserARN = a}) | 112 | upIAMUserARN = lens _upIAMUserARN (\ s a -> s{_upIAMUserARN = a}) | 65 | true | true | 0 | 9 | 22 | 46 | 25 | 21 | null | null |
eightyeight/atom-msp430 | Language/Atom/MSP430/TimerA.hs | mit | -- Source Timer A from SMCLK.
taSourceINCLK = 0x0300 :: Word16 | 67 | taSourceINCLK = 0x0300 :: Word16 | 37 | taSourceINCLK = 0x0300 :: Word16 | 37 | true | false | 0 | 4 | 15 | 10 | 6 | 4 | null | null |
rodrigogribeiro/mptc | src/Utils/FileNameUtils.hs | bsd-3-clause | toPath :: String -> String
toPath
= foldr step []
where
step c ac = if c == '.' then pathSeparator : ac else c : ac | 135 | toPath :: String -> String
toPath
= foldr step []
where
step c ac = if c == '.' then pathSeparator : ac else c : ac | 135 | toPath
= foldr step []
where
step c ac = if c == '.' then pathSeparator : ac else c : ac | 108 | false | true | 0 | 7 | 46 | 61 | 29 | 32 | null | null |
Zigazou/containers | Data/Sequence.hs | bsd-3-clause | node3 :: Sized a => a -> a -> a -> Node a
node3 a b c = Node3 (size a + size b + size c) a b c | 109 | node3 :: Sized a => a -> a -> a -> Node a
node3 a b c = Node3 (size a + size b + size c) a b c | 109 | node3 a b c = Node3 (size a + size b + size c) a b c | 57 | false | true | 0 | 9 | 44 | 69 | 32 | 37 | null | null |
christiaanb/ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | pprNonVarNameSpace :: NameSpace -> SDoc
pprNonVarNameSpace VarName = empty | 74 | pprNonVarNameSpace :: NameSpace -> SDoc
pprNonVarNameSpace VarName = empty | 74 | pprNonVarNameSpace VarName = empty | 34 | false | true | 0 | 5 | 8 | 18 | 9 | 9 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.