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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TomMD/ghc | compiler/cmm/PprC.hs | bsd-3-clause | signedOp (MO_SF_Conv _ _) = True | 32 | signedOp (MO_SF_Conv _ _) = True | 32 | signedOp (MO_SF_Conv _ _) = True | 32 | false | false | 0 | 7 | 5 | 17 | 8 | 9 | null | null |
pparkkin/eta | compiler/ETA/Utils/UniqSet.hs | bsd-3-clause | nonDetFoldUniqSet c n (UniqSet s) = nonDetFoldUFM c n s | 55 | nonDetFoldUniqSet c n (UniqSet s) = nonDetFoldUFM c n s | 55 | nonDetFoldUniqSet c n (UniqSet s) = nonDetFoldUFM c n s | 55 | false | false | 0 | 7 | 9 | 26 | 12 | 14 | null | null |
urbanslug/ghc | testsuite/tests/perf/should_run/T4474a.hs | bsd-3-clause | main = print $ sumList $ flatListCons $ fullTree 26 | 53 | main = print $ sumList $ flatListCons $ fullTree 26 | 53 | main = print $ sumList $ flatListCons $ fullTree 26 | 53 | false | false | 0 | 7 | 11 | 21 | 10 | 11 | null | null |
Frefreak/solitaire-solver | src/Solver.hs | bsd-3-clause | rankOp (Move (PTL _) (PMain _ _)) = 1 | 37 | rankOp (Move (PTL _) (PMain _ _)) = 1 | 37 | rankOp (Move (PTL _) (PMain _ _)) = 1 | 37 | false | false | 0 | 8 | 8 | 32 | 15 | 17 | null | null |
tavisrudd/ghcjs-base | JavaScript/TypedArray/DataView.hs | mit | writeFloat64LE, writeFloat64BE, unsafeWriteFloat64LE, unsafeWriteFloat64BE
:: Int -> Double -> MutableDataView -> IO ()
writeFloat64LE idx x dv = IO (I.js_setFloat64LE idx x dv) | 191 | writeFloat64LE, writeFloat64BE, unsafeWriteFloat64LE, unsafeWriteFloat64BE
:: Int -> Double -> MutableDataView -> IO ()
writeFloat64LE idx x dv = IO (I.js_setFloat64LE idx x dv) | 191 | writeFloat64LE idx x dv = IO (I.js_setFloat64LE idx x dv) | 69 | false | true | 5 | 8 | 36 | 60 | 30 | 30 | null | null |
mjhopkins/StopPayingForFreeMonads | Expressions.hs | mit | projL :: (f :+: g) a -> Maybe (f a)
projL s = case s of
Inl fa -> Just fa
Inr _ -> Nothing | 95 | projL :: (f :+: g) a -> Maybe (f a)
projL s = case s of
Inl fa -> Just fa
Inr _ -> Nothing | 95 | projL s = case s of
Inl fa -> Just fa
Inr _ -> Nothing | 59 | false | true | 0 | 8 | 29 | 62 | 29 | 33 | null | null |
vTurbine/ghc | compiler/cmm/CLabel.hs | bsd-3-clause | mkCmmClosureLabel pkg str = CmmLabel pkg str CmmClosure | 61 | mkCmmClosureLabel pkg str = CmmLabel pkg str CmmClosure | 61 | mkCmmClosureLabel pkg str = CmmLabel pkg str CmmClosure | 61 | false | false | 0 | 5 | 13 | 18 | 8 | 10 | null | null |
debug-ito/wild-bind | wild-bind/src/WildBind/Seq.hs | bsd-3-clause | -- | A 'SeqBinding' that binds the given key for canceling the key
-- sequence.
cancelOn :: Ord i
=> i -- ^ cancel key
-> SeqBinding fs i
cancelOn c = SeqBinding $ const $ whenBack (not . null) $ binds' $ on c `as` "cancel" `run` State.put [] | 260 | cancelOn :: Ord i
=> i -- ^ cancel key
-> SeqBinding fs i
cancelOn c = SeqBinding $ const $ whenBack (not . null) $ binds' $ on c `as` "cancel" `run` State.put [] | 180 | cancelOn c = SeqBinding $ const $ whenBack (not . null) $ binds' $ on c `as` "cancel" `run` State.put [] | 104 | true | true | 0 | 12 | 67 | 85 | 43 | 42 | null | null |
farnoy/torrent | src/Network/BitTorrent/MemoryMonad.hs | bsd-3-clause | evalMemoryMonad :: TorrentState -> MemoryMonad (STM a) -> STM a
evalMemoryMonad state (GetDownloadProgress piece next) = do
cf <- DP.lookup piece (torrentStateDownloadProgress state)
next cf | 194 | evalMemoryMonad :: TorrentState -> MemoryMonad (STM a) -> STM a
evalMemoryMonad state (GetDownloadProgress piece next) = do
cf <- DP.lookup piece (torrentStateDownloadProgress state)
next cf | 194 | evalMemoryMonad state (GetDownloadProgress piece next) = do
cf <- DP.lookup piece (torrentStateDownloadProgress state)
next cf | 130 | false | true | 0 | 11 | 28 | 75 | 33 | 42 | null | null |
f1u77y/xmonad-contrib | XMonad/Config/Dmwit.hs | bsd-3-clause | statusBarMouse = warpToScreen 0 (5/1600) (5/1200) | 49 | statusBarMouse = warpToScreen 0 (5/1600) (5/1200) | 49 | statusBarMouse = warpToScreen 0 (5/1600) (5/1200) | 49 | false | false | 0 | 7 | 5 | 27 | 14 | 13 | null | null |
cchens/courseography | hs/Css/Constants.hs | gpl-3.0 | {- Timetable border -}
borderPink :: (Stroke -> Size Abs -> Color -> Css) -> Css
borderPink border = border solid (px 2) pink1 | 126 | borderPink :: (Stroke -> Size Abs -> Color -> Css) -> Css
borderPink border = border solid (px 2) pink1 | 103 | borderPink border = border solid (px 2) pink1 | 45 | true | true | 0 | 9 | 23 | 50 | 25 | 25 | null | null |
alexvong1995/pandoc | src/Text/Pandoc/Readers/Docx.hs | gpl-2.0 | bodyPartsToMeta' (_ : bps) = bodyPartsToMeta' bps | 49 | bodyPartsToMeta' (_ : bps) = bodyPartsToMeta' bps | 49 | bodyPartsToMeta' (_ : bps) = bodyPartsToMeta' bps | 49 | false | false | 0 | 7 | 6 | 19 | 9 | 10 | null | null |
spacekitteh/smcghc | libraries/base/Data/Typeable/Internal.hs | bsd-3-clause | mkTyCon high# low# pkg modl name
= TyCon (Fingerprint (W64# high#) (W64# low#)) pkg modl name | 95 | mkTyCon high# low# pkg modl name
= TyCon (Fingerprint (W64# high#) (W64# low#)) pkg modl name | 95 | mkTyCon high# low# pkg modl name
= TyCon (Fingerprint (W64# high#) (W64# low#)) pkg modl name | 95 | false | false | 0 | 9 | 17 | 46 | 22 | 24 | null | null |
anton-dessiatov/ghc | compiler/iface/IfaceEnv.hs | bsd-3-clause | initOrigNames :: [Name] -> OrigNameCache
initOrigNames names = foldl extendOrigNameCache emptyModuleEnv names | 109 | initOrigNames :: [Name] -> OrigNameCache
initOrigNames names = foldl extendOrigNameCache emptyModuleEnv names | 109 | initOrigNames names = foldl extendOrigNameCache emptyModuleEnv names | 68 | false | true | 0 | 6 | 11 | 28 | 14 | 14 | null | null |
xmonad/xmonad-contrib | XMonad/Actions/MessageFeedback.hs | bsd-3-clause | -- | Variant of 'sendSomeMessageWithNoRefreshToCurrentB' that discards the
-- result.
sendSomeMessageWithNoRefreshToCurrent :: SomeMessage -> X ()
sendSomeMessageWithNoRefreshToCurrent = void . sendSomeMessageWithNoRefreshToCurrentB | 232 | sendSomeMessageWithNoRefreshToCurrent :: SomeMessage -> X ()
sendSomeMessageWithNoRefreshToCurrent = void . sendSomeMessageWithNoRefreshToCurrentB | 146 | sendSomeMessageWithNoRefreshToCurrent = void . sendSomeMessageWithNoRefreshToCurrentB | 85 | true | true | 0 | 7 | 20 | 26 | 14 | 12 | null | null |
lukexi/ghc-7.8-arm64 | compiler/cmm/CmmMachOp.hs | bsd-3-clause | mo_u_8To32 = MO_UU_Conv W8 W32 | 42 | mo_u_8To32 = MO_UU_Conv W8 W32 | 42 | mo_u_8To32 = MO_UU_Conv W8 W32 | 42 | false | false | 0 | 5 | 16 | 11 | 5 | 6 | null | null |
nablaa/hquarto | src/Board.hs | gpl-2.0 | printBoard :: Board -> String
printBoard board = header ++ intercalate header (map printRow rows) ++ header
where rows = toLines $ elems board :: [[Cell]]
toLines [] = []
toLines xs = take 4 xs : toLines (drop 4 xs)
header = "+----+----+----+----+\n" | 300 | printBoard :: Board -> String
printBoard board = header ++ intercalate header (map printRow rows) ++ header
where rows = toLines $ elems board :: [[Cell]]
toLines [] = []
toLines xs = take 4 xs : toLines (drop 4 xs)
header = "+----+----+----+----+\n" | 300 | printBoard board = header ++ intercalate header (map printRow rows) ++ header
where rows = toLines $ elems board :: [[Cell]]
toLines [] = []
toLines xs = take 4 xs : toLines (drop 4 xs)
header = "+----+----+----+----+\n" | 270 | false | true | 0 | 10 | 93 | 107 | 54 | 53 | null | null |
CGenie/platform | shared/src/Unison/Dimensions.hs | mit | within :: (X,Y) -> (X,Y,Width,Height) -> Bool
within (X x0, Y y0) (X x,Y y,Width w,Height h) =
x0 >= x && x0 <= x+w && y0 >= y && y0 <= y+h | 141 | within :: (X,Y) -> (X,Y,Width,Height) -> Bool
within (X x0, Y y0) (X x,Y y,Width w,Height h) =
x0 >= x && x0 <= x+w && y0 >= y && y0 <= y+h | 141 | within (X x0, Y y0) (X x,Y y,Width w,Height h) =
x0 >= x && x0 <= x+w && y0 >= y && y0 <= y+h | 95 | false | true | 6 | 10 | 34 | 125 | 63 | 62 | null | null |
eddywestbrook/hobbits | archival/Term.hs | bsd-3-clause | swapNames :: [NamePair] -> Name a -> Name a
swapNames [] n = n | 62 | swapNames :: [NamePair] -> Name a -> Name a
swapNames [] n = n | 62 | swapNames [] n = n | 18 | false | true | 0 | 9 | 13 | 40 | 18 | 22 | null | null |
mydaum/cabal | Cabal/Distribution/Simple/Compiler.hs | bsd-3-clause | flagToOptimisationLevel :: Maybe String -> OptimisationLevel
flagToOptimisationLevel Nothing = NormalOptimisation | 114 | flagToOptimisationLevel :: Maybe String -> OptimisationLevel
flagToOptimisationLevel Nothing = NormalOptimisation | 114 | flagToOptimisationLevel Nothing = NormalOptimisation | 53 | false | true | 0 | 6 | 10 | 21 | 10 | 11 | null | null |
Noeda/userinterface | src/Graphics/UI/Layout.hs | mit | fromConstantSC 2 = MinimumSize | 30 | fromConstantSC 2 = MinimumSize | 30 | fromConstantSC 2 = MinimumSize | 30 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
whitehead1415/cql | src/Database/CQL/Protocol/Codec.hs | mpl-2.0 | putValue v (CqlMaybe (Just x)) = putValue v x | 45 | putValue v (CqlMaybe (Just x)) = putValue v x | 45 | putValue v (CqlMaybe (Just x)) = putValue v x | 45 | false | false | 0 | 8 | 8 | 30 | 13 | 17 | null | null |
kumasento/accelerate | Data/Array/Accelerate/Analysis/Match.hs | bsd-3-clause | -- Tuples
--
matchTuple
:: MatchAcc acc
-> HashAcc acc
-> Tuple.Tuple (PreOpenExp acc env aenv) s
-> Tuple.Tuple (PreOpenExp acc env aenv) t
-> Maybe (s :=: t)
matchTuple _ _ NilTup NilTup = Just REFL | 240 | matchTuple
:: MatchAcc acc
-> HashAcc acc
-> Tuple.Tuple (PreOpenExp acc env aenv) s
-> Tuple.Tuple (PreOpenExp acc env aenv) t
-> Maybe (s :=: t)
matchTuple _ _ NilTup NilTup = Just REFL | 227 | matchTuple _ _ NilTup NilTup = Just REFL | 59 | true | true | 0 | 12 | 76 | 95 | 45 | 50 | null | null |
rueshyna/gogol | gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/Listings/Deleteall.hs | mpl-2.0 | -- | Unique identifier for the Android app that is being updated; for
-- example, \"com.spiffygame\".
eldlPackageName :: Lens' EditsListingsDeleteall Text
eldlPackageName
= lens _eldlPackageName
(\ s a -> s{_eldlPackageName = a}) | 237 | eldlPackageName :: Lens' EditsListingsDeleteall Text
eldlPackageName
= lens _eldlPackageName
(\ s a -> s{_eldlPackageName = a}) | 135 | eldlPackageName
= lens _eldlPackageName
(\ s a -> s{_eldlPackageName = a}) | 82 | true | true | 0 | 9 | 39 | 48 | 24 | 24 | null | null |
NickAger/LearningHaskell | HaskellProgrammingFromFirstPrinciples/Chapter24/PhoneNumbers/src/PhoneNumberParsing.hs | mit | parseBracketAndDash :: Parser PhoneNumber
parseBracketAndDash = liftA3 PhoneNumber parseBracketedAreaCode (whiteSpace *> parseInt) (char '-' *> parseInt) | 153 | parseBracketAndDash :: Parser PhoneNumber
parseBracketAndDash = liftA3 PhoneNumber parseBracketedAreaCode (whiteSpace *> parseInt) (char '-' *> parseInt) | 153 | parseBracketAndDash = liftA3 PhoneNumber parseBracketedAreaCode (whiteSpace *> parseInt) (char '-' *> parseInt) | 111 | false | true | 0 | 8 | 15 | 40 | 20 | 20 | null | null |
semaj/hademlia | src/Message.hs | bsd-3-clause | -- TODO: This currently uses the same message ID for a batch of stores
bulkStores :: ID
-> IPInfo
-> UTCTime
-> Text
-> [(ID, Text, [ID])]
-> [Message]
bulkStores src srcInfo now mID =
L.concat . fmap (\(k, v, locs) -> fmap (store src srcInfo now mID k v) locs) | 318 | bulkStores :: ID
-> IPInfo
-> UTCTime
-> Text
-> [(ID, Text, [ID])]
-> [Message]
bulkStores src srcInfo now mID =
L.concat . fmap (\(k, v, locs) -> fmap (store src srcInfo now mID k v) locs) | 247 | bulkStores src srcInfo now mID =
L.concat . fmap (\(k, v, locs) -> fmap (store src srcInfo now mID k v) locs) | 111 | true | true | 1 | 13 | 107 | 112 | 59 | 53 | null | null |
jstolarek/primitive | Data/Primitive/ByteArray.hs | bsd-3-clause | writeByteArray (MutableByteArray arr#) (I# i#) x
= primitive_ (writeByteArray# arr# i# x) | 91 | writeByteArray (MutableByteArray arr#) (I# i#) x
= primitive_ (writeByteArray# arr# i# x) | 91 | writeByteArray (MutableByteArray arr#) (I# i#) x
= primitive_ (writeByteArray# arr# i# x) | 91 | false | false | 1 | 7 | 13 | 43 | 18 | 25 | null | null |
blamario/grampa | grammatical-parsers/src/Text/Grampa/ContextFree/SortedMemoizing/Transformer.hs | bsd-2-clause | -- | Transform the computation carried by the parser using the monadic bind ('>>=').
tbind :: Monad m => ParserT m g s a -> (a -> m b) -> ParserT m g s b
tbind (Parser p) f = Parser (bindResultList f . p) | 204 | tbind :: Monad m => ParserT m g s a -> (a -> m b) -> ParserT m g s b
tbind (Parser p) f = Parser (bindResultList f . p) | 119 | tbind (Parser p) f = Parser (bindResultList f . p) | 50 | true | true | 0 | 10 | 44 | 79 | 38 | 41 | null | null |
jchmrt/btjchm | Beschrijver.hs | mit | beschrijf '}' = "een accolade sluiten" | 38 | beschrijf '}' = "een accolade sluiten" | 38 | beschrijf '}' = "een accolade sluiten" | 38 | false | false | 0 | 5 | 5 | 9 | 4 | 5 | null | null |
sanjoy/DietLISP | src/Tokenizer.hs | gpl-2.0 | tokenize all@(x:rest)
| x == '(' = liftM (LParT:) $ tokenize rest
| x == ')' = liftM (RParT:) $ tokenize rest
-- Comments
| x == ';' = tokenize $ dropWhile (/= '\n') rest
-- Symbols and integers.
| isSpace x = tokenize $ dropWhile isSpace rest
| isDigit x =
let (integer, leftOvers) = span delimited all
... | 731 | tokenize all@(x:rest)
| x == '(' = liftM (LParT:) $ tokenize rest
| x == ')' = liftM (RParT:) $ tokenize rest
-- Comments
| x == ';' = tokenize $ dropWhile (/= '\n') rest
-- Symbols and integers.
| isSpace x = tokenize $ dropWhile isSpace rest
| isDigit x =
let (integer, leftOvers) = span delimited all
... | 731 | tokenize all@(x:rest)
| x == '(' = liftM (LParT:) $ tokenize rest
| x == ')' = liftM (RParT:) $ tokenize rest
-- Comments
| x == ';' = tokenize $ dropWhile (/= '\n') rest
-- Symbols and integers.
| isSpace x = tokenize $ dropWhile isSpace rest
| isDigit x =
let (integer, leftOvers) = span delimited all
... | 731 | false | false | 9 | 16 | 173 | 317 | 150 | 167 | null | null |
rahulmutt/ghcvm | compiler/Eta/Utils/Platform.hs | bsd-3-clause | sUsesFrameworks _ = False
| 33 | osUsesFrameworks _ = False | 33 | osUsesFrameworks _ = False | 33 | false | false | 0 | 5 | 11 | 9 | 4 | 5 | null | null |
mrakgr/futhark | src/Futhark/Optimise/Fusion/LoopKernel.hs | bsd-3-clause | outputTransformPullers :: [SOAC -> SOAC.ArrayTransforms -> TryFusion (SOAC, SOAC.ArrayTransforms)]
outputTransformPullers = [pullRearrange, pullReshape, pullReplicate] | 167 | outputTransformPullers :: [SOAC -> SOAC.ArrayTransforms -> TryFusion (SOAC, SOAC.ArrayTransforms)]
outputTransformPullers = [pullRearrange, pullReshape, pullReplicate] | 167 | outputTransformPullers = [pullRearrange, pullReshape, pullReplicate] | 68 | false | true | 0 | 10 | 13 | 44 | 25 | 19 | null | null |
alexandersjosten/AI-shrdlite | haskell/TalkingBastard.hs | gpl-3.0 | startTB :: [Move] -> PDDLWorld -> Plan
startTB [] _ = ["Not possible!"] | 79 | startTB :: [Move] -> PDDLWorld -> Plan
startTB [] _ = ["Not possible!"] | 79 | startTB [] _ = ["Not possible!"] | 40 | false | true | 0 | 6 | 20 | 37 | 18 | 19 | null | null |
YtGz/Analyzing-the-Complexity-of-Monotone-Prolog | src/TRS/Encoding.hs | lgpl-3.0 | encodeIn (BNode (_,("noChildInstance",_)) l@(BNode (([(_,mu,_)],(_,_)),("noChildInstanceChild",_)) Empty Empty) _) =
apply mu (encodeIn l) | 142 | encodeIn (BNode (_,("noChildInstance",_)) l@(BNode (([(_,mu,_)],(_,_)),("noChildInstanceChild",_)) Empty Empty) _) =
apply mu (encodeIn l) | 142 | encodeIn (BNode (_,("noChildInstance",_)) l@(BNode (([(_,mu,_)],(_,_)),("noChildInstanceChild",_)) Empty Empty) _) =
apply mu (encodeIn l) | 142 | false | false | 0 | 14 | 16 | 91 | 53 | 38 | null | null |
rodrigogribeiro/mptc | test/Data/Full/PreludeList.hs | bsd-3-clause | scanl1 _ [] = [] | 16 | scanl1 _ [] = [] | 16 | scanl1 _ [] = [] | 16 | false | false | 0 | 6 | 4 | 15 | 7 | 8 | null | null |
ssaavedra/liquidhaskell | src/Language/Haskell/Liquid/Desugar710/Coverage.hs | bsd-3-clause | -- For the hash value, we hash everything: the file name,
-- the timestamp of the original source file, the tab stop,
-- and the mix entries. We cheat, and hash the show'd string.
-- This hash only has to be hashed at Mix creation time,
-- and is for sanity checking only.
mixHash :: FilePath -> UTCTime -> Int -> [Mi... | 441 | mixHash :: FilePath -> UTCTime -> Int -> [MixEntry] -> Int
mixHash file tm tabstop entries = fromIntegral $ hashString
(show $ Mix file tm 0 tabstop entries) | 165 | mixHash file tm tabstop entries = fromIntegral $ hashString
(show $ Mix file tm 0 tabstop entries) | 106 | true | true | 0 | 9 | 91 | 69 | 37 | 32 | null | null |
rahulmutt/ghcvm | compiler/Eta/CodeGen/Main.hs | bsd-3-clause | cgTyCon :: TyCon -> CodeGen ()
cgTyCon tyCon = unless (null dataCons) $ do
dflags <- getDynFlags
(_, CgState {..}) <- newTypeClosure (tyConClass dflags tyCon) stgConstr
mapM_ (cgDataCon cgClassName) dataCons
when (isEnumerationTyCon tyCon) $
cgEnumerationTyCon cgClassName tyCon
where dataCons = ... | 339 | cgTyCon :: TyCon -> CodeGen ()
cgTyCon tyCon = unless (null dataCons) $ do
dflags <- getDynFlags
(_, CgState {..}) <- newTypeClosure (tyConClass dflags tyCon) stgConstr
mapM_ (cgDataCon cgClassName) dataCons
when (isEnumerationTyCon tyCon) $
cgEnumerationTyCon cgClassName tyCon
where dataCons = ... | 339 | cgTyCon tyCon = unless (null dataCons) $ do
dflags <- getDynFlags
(_, CgState {..}) <- newTypeClosure (tyConClass dflags tyCon) stgConstr
mapM_ (cgDataCon cgClassName) dataCons
when (isEnumerationTyCon tyCon) $
cgEnumerationTyCon cgClassName tyCon
where dataCons = tyConDataCons tyCon | 308 | false | true | 0 | 11 | 65 | 121 | 56 | 65 | null | null |
ian-mi/hTorrent | Peer/Request.hs | gpl-3.0 | needRequests :: ReaderT PeerEnv IO Int
needRequests = hoist atomically $ do
r <- olength <$> viewTVar (peerState . peerPendingRequests)
if r < numPipeline then return (numPipeline - r) else lift retry | 208 | needRequests :: ReaderT PeerEnv IO Int
needRequests = hoist atomically $ do
r <- olength <$> viewTVar (peerState . peerPendingRequests)
if r < numPipeline then return (numPipeline - r) else lift retry | 208 | needRequests = hoist atomically $ do
r <- olength <$> viewTVar (peerState . peerPendingRequests)
if r < numPipeline then return (numPipeline - r) else lift retry | 169 | false | true | 1 | 13 | 39 | 78 | 36 | 42 | null | null |
oldmanmike/ghc | libraries/base/Text/ParserCombinators/ReadPrec.hs | bsd-3-clause | lift :: ReadP a -> ReadPrec a
-- ^ Lift a precedence-insensitive 'ReadP' to a 'ReadPrec'.
lift m = P (\_ -> m) | 110 | lift :: ReadP a -> ReadPrec a
lift m = P (\_ -> m) | 50 | lift m = P (\_ -> m) | 20 | true | true | 0 | 7 | 22 | 41 | 19 | 22 | null | null |
dgvncsz0f/nws | test/Jerimum/Tests/Integration/PostgreSQL/SnapshotTests.hs | bsd-3-clause | testSnapshot :: TestTree
testSnapshot = testWithResourcesSteps "snapshot" testCase
where
testCase :: (String -> ResIO ()) -> ResIO ()
testCase step = do
step "initializig"
(_, nConn) <- allocConnection
allocate
(do PQ.execute_
nConn
("CREATE TABLE IF NOT E... | 2,398 | testSnapshot :: TestTree
testSnapshot = testWithResourcesSteps "snapshot" testCase
where
testCase :: (String -> ResIO ()) -> ResIO ()
testCase step = do
step "initializig"
(_, nConn) <- allocConnection
allocate
(do PQ.execute_
nConn
("CREATE TABLE IF NOT E... | 2,398 | testSnapshot = testWithResourcesSteps "snapshot" testCase
where
testCase :: (String -> ResIO ()) -> ResIO ()
testCase step = do
step "initializig"
(_, nConn) <- allocConnection
allocate
(do PQ.execute_
nConn
("CREATE TABLE IF NOT EXISTS test_snapshot " <>
... | 2,373 | false | true | 0 | 20 | 875 | 568 | 274 | 294 | null | null |
edahlgren/protocol-buffers | hprotoc/Text/ProtocolBuffers/ProtoCompile/Resolve.hs | apache-2.0 | checkFI :: [(FieldId,FieldId)] -> FieldId -> Bool
checkFI ers fid = any (`inRange` fid) ers | 91 | checkFI :: [(FieldId,FieldId)] -> FieldId -> Bool
checkFI ers fid = any (`inRange` fid) ers | 91 | checkFI ers fid = any (`inRange` fid) ers | 41 | false | true | 0 | 7 | 14 | 44 | 25 | 19 | null | null |
chris-taylor/hs-probability-examples | Cards.hs | mit | finished deck = (deck ! Red == 0) && (deck ! Black == 0) | 56 | finished deck = (deck ! Red == 0) && (deck ! Black == 0) | 56 | finished deck = (deck ! Red == 0) && (deck ! Black == 0) | 56 | false | false | 0 | 8 | 13 | 35 | 18 | 17 | null | null |
ganeti-github-testing/ganeti-test-1 | src/Ganeti/OpParams.hs | bsd-2-clause | pForceFailover :: Field
pForceFailover =
withDoc "Disallow migration moves and always use failovers" $
defaultFalse "force_failover" | 136 | pForceFailover :: Field
pForceFailover =
withDoc "Disallow migration moves and always use failovers" $
defaultFalse "force_failover" | 136 | pForceFailover =
withDoc "Disallow migration moves and always use failovers" $
defaultFalse "force_failover" | 112 | false | true | 0 | 6 | 19 | 28 | 11 | 17 | null | null |
ocharles/virtual-dom | src/VirtualDom/HTML.hs | bsd-3-clause | sub_ :: (Term arg result) => arg -> result
sub_ = term "sub" | 60 | sub_ :: (Term arg result) => arg -> result
sub_ = term "sub" | 60 | sub_ = term "sub" | 17 | false | true | 0 | 8 | 12 | 36 | 16 | 20 | null | null |
gcampax/ghc | compiler/simplCore/SetLevels.hs | bsd-3-clause | lvlLamBndrs :: LevelEnv -> Level -> [OutVar] -> (LevelEnv, [LevelledBndr])
-- Compute the levels for the binders of a lambda group
lvlLamBndrs env lvl bndrs
= lvlBndrs env new_lvl bndrs
where
new_lvl | any is_major bndrs = incMajorLvl lvl
| otherwise = incMinorLvl lvl
is_major bndr = i... | 524 | lvlLamBndrs :: LevelEnv -> Level -> [OutVar] -> (LevelEnv, [LevelledBndr])
lvlLamBndrs env lvl bndrs
= lvlBndrs env new_lvl bndrs
where
new_lvl | any is_major bndrs = incMajorLvl lvl
| otherwise = incMinorLvl lvl
is_major bndr = isId bndr && not (isProbablyOneShotLambda bndr)
--... | 468 | lvlLamBndrs env lvl bndrs
= lvlBndrs env new_lvl bndrs
where
new_lvl | any is_major bndrs = incMajorLvl lvl
| otherwise = incMinorLvl lvl
is_major bndr = isId bndr && not (isProbablyOneShotLambda bndr)
-- The "probably" part says "don't float things out of a
-- probable o... | 393 | true | true | 1 | 9 | 130 | 110 | 55 | 55 | null | null |
gspindles/mj-score-eval | src/Game/Mahjong/Static/Melds.hs | mit | b567 = fromJust $ mkMeld Revealed Sequence [b5, b6, b7] | 55 | b567 = fromJust $ mkMeld Revealed Sequence [b5, b6, b7] | 55 | b567 = fromJust $ mkMeld Revealed Sequence [b5, b6, b7] | 55 | false | false | 1 | 7 | 9 | 29 | 14 | 15 | null | null |
koengit/cyphy | src/CyphyUtils.hs | mit | segments n xs = let (ys, zs) = splitAt n xs in ys : segments n zs | 65 | segments n xs = let (ys, zs) = splitAt n xs in ys : segments n zs | 65 | segments n xs = let (ys, zs) = splitAt n xs in ys : segments n zs | 65 | false | false | 0 | 9 | 16 | 43 | 20 | 23 | null | null |
ChrisLane/leksah | src/IDE/Core/State.hs | gpl-2.0 | contextRefs :: IDE -> Seq LogRef
contextRefs = Seq.filter ((== ContextRef) . logRefType) . allLogRefs | 101 | contextRefs :: IDE -> Seq LogRef
contextRefs = Seq.filter ((== ContextRef) . logRefType) . allLogRefs | 101 | contextRefs = Seq.filter ((== ContextRef) . logRefType) . allLogRefs | 68 | false | true | 0 | 9 | 14 | 38 | 20 | 18 | null | null |
markusle/husky | test/CalculatorTest.hs | gpl-3.0 | userFunctionTest25 :: GoodTestCase
userFunctionTest25 = ("bar a a b", DblResult 105) | 84 | userFunctionTest25 :: GoodTestCase
userFunctionTest25 = ("bar a a b", DblResult 105) | 84 | userFunctionTest25 = ("bar a a b", DblResult 105) | 49 | false | true | 0 | 6 | 10 | 20 | 11 | 9 | null | null |
Min-/fourseq | src/lib/MyText.hs | bsd-3-clause | countChar :: Num a => T.Text -> [(Char, a)]
countChar t = countElem allTrue input
where input = T.unpack t | 118 | countChar :: Num a => T.Text -> [(Char, a)]
countChar t = countElem allTrue input
where input = T.unpack t | 118 | countChar t = countElem allTrue input
where input = T.unpack t | 74 | false | true | 0 | 8 | 31 | 53 | 27 | 26 | null | null |
kazu-yamamoto/llrbtree | Data/Heap/Splay.hs | bsd-3-clause | isOrdered (x:y:xys) = x <= y && isOrdered (y:xys) | 49 | isOrdered (x:y:xys) = x <= y && isOrdered (y:xys) | 49 | isOrdered (x:y:xys) = x <= y && isOrdered (y:xys) | 49 | false | false | 0 | 8 | 8 | 39 | 19 | 20 | null | null |
snoyberg/ghc | compiler/utils/Outputable.hs | bsd-3-clause | fcat :: [SDoc] -> SDoc
-- ^ This behaves like 'fsep', but it uses '<>' for horizontal conposition rather than '<+>'
hcat ds = SDoc $ \sty -> Pretty.hcat [runSDoc d sty | d <- ds] | 180 | fcat :: [SDoc] -> SDoc
hcat ds = SDoc $ \sty -> Pretty.hcat [runSDoc d sty | d <- ds] | 85 | hcat ds = SDoc $ \sty -> Pretty.hcat [runSDoc d sty | d <- ds] | 62 | true | true | 0 | 10 | 37 | 57 | 28 | 29 | null | null |
cordawyn/rdf4h | src/Data/RDF/PatriciaTreeGraph.hs | bsd-3-clause | mkTriples :: IntMap.IntMap Node -> Node -> [(Node, IntMap.Key)] -> [(Node, IntMap.Key)] -> [Triple]
mkTriples idxLookup thisNode adjsIn adjsOut =
let ts1 = map (\(predNode,subjIdx) ->
let s = fromJust (IntMap.lookup subjIdx idxLookup)
in Triple s predNode thisNode
... | 549 | mkTriples :: IntMap.IntMap Node -> Node -> [(Node, IntMap.Key)] -> [(Node, IntMap.Key)] -> [Triple]
mkTriples idxLookup thisNode adjsIn adjsOut =
let ts1 = map (\(predNode,subjIdx) ->
let s = fromJust (IntMap.lookup subjIdx idxLookup)
in Triple s predNode thisNode
... | 549 | mkTriples idxLookup thisNode adjsIn adjsOut =
let ts1 = map (\(predNode,subjIdx) ->
let s = fromJust (IntMap.lookup subjIdx idxLookup)
in Triple s predNode thisNode
) adjsIn
ts2 = map (\(predNode,objIdx) ->
let o = fromJust (In... | 448 | false | true | 2 | 19 | 201 | 193 | 97 | 96 | null | null |
jam40jeff/sodium | common-tests/Java.hs | bsd-3-clause | ptype (StreamSinkT t) = tell "StreamSink<" >> ptype t >> tell ">" | 65 | ptype (StreamSinkT t) = tell "StreamSink<" >> ptype t >> tell ">" | 65 | ptype (StreamSinkT t) = tell "StreamSink<" >> ptype t >> tell ">" | 65 | false | false | 0 | 7 | 11 | 33 | 14 | 19 | null | null |
elliottt/dang | src/Dang/ModuleSystem/Name.hs | bsd-3-clause | -- | Retrieve the unique associated with this name.
nameUnique :: Name -> Unique Name
nameUnique Name { .. } = nUnique | 118 | nameUnique :: Name -> Unique Name
nameUnique Name { .. } = nUnique | 66 | nameUnique Name { .. } = nUnique | 32 | true | true | 0 | 7 | 21 | 28 | 14 | 14 | null | null |
megantti/rtorrent-cli | Main.hs | mit | getRight (Left e) = throwIO $ ErrorCall e | 41 | getRight (Left e) = throwIO $ ErrorCall e | 41 | getRight (Left e) = throwIO $ ErrorCall e | 41 | false | false | 2 | 6 | 7 | 24 | 10 | 14 | null | null |
oldmanmike/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | funTyConKey = mkPreludeTyConUnique 13 | 65 | funTyConKey = mkPreludeTyConUnique 13 | 65 | funTyConKey = mkPreludeTyConUnique 13 | 65 | false | false | 0 | 5 | 31 | 9 | 4 | 5 | null | null |
zhangyz/llvm-slicing | src/LLVM/Slicing/Static/InfoFlow/InfoFlowSlicer.hs | apache-2.0 | top :: SliceInfo
top = SInfo mempty mempty mempty mempty mempty | 64 | top :: SliceInfo
top = SInfo mempty mempty mempty mempty mempty | 63 | top = SInfo mempty mempty mempty mempty mempty | 46 | false | true | 0 | 6 | 11 | 29 | 12 | 17 | null | null |
cmc-haskell-2016/checkers | src/GraphicsProcessing.hs | bsd-3-clause | eventHandler pool (EventKey (SpecialKey KeyEnter) Down _ _) (WorldObject players checkers (State 15 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) =
(WorldObject players checkers (State 8 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) | 264 | eventHandler pool (EventKey (SpecialKey KeyEnter) Down _ _) (WorldObject players checkers (State 15 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) =
(WorldObject players checkers (State 8 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) | 264 | eventHandler pool (EventKey (SpecialKey KeyEnter) Down _ _) (WorldObject players checkers (State 15 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) =
(WorldObject players checkers (State 8 checkerChosen posToMoveChosen checkerIsChosen) alertMessage) | 264 | false | false | 0 | 9 | 28 | 79 | 39 | 40 | null | null |
thomie/vector | Data/Vector/Primitive.hs | bsd-3-clause | unsafeIndexM = G.unsafeIndexM | 29 | unsafeIndexM = G.unsafeIndexM | 29 | unsafeIndexM = G.unsafeIndexM | 29 | false | false | 0 | 5 | 2 | 8 | 4 | 4 | null | null |
ktvoelker/hydrogen | src/H/Pretty.hs | gpl-3.0 | text :: Text -> Doc
text = PP.text . unpack | 43 | text :: Text -> Doc
text = PP.text . unpack | 43 | text = PP.text . unpack | 23 | false | true | 1 | 7 | 9 | 29 | 12 | 17 | null | null |
8l/barrelfish | tools/flounder/AHCI.hs | mit | ahci_vtbl_name ifn = ifscope ifn "ahci_tx_vtbl" | 47 | ahci_vtbl_name ifn = ifscope ifn "ahci_tx_vtbl" | 47 | ahci_vtbl_name ifn = ifscope ifn "ahci_tx_vtbl" | 47 | false | false | 0 | 5 | 5 | 14 | 6 | 8 | null | null |
mjhoy/chorebot | src/Chorebot/Chore/Parser.hs | gpl-2.0 | difficultyParser :: Parsec String () Int
difficultyParser = do
str <- try (string "Hard")
<|> try (string "Medium")
<|> try (string "Easy")
case str of
"Hard" -> return 7
"Medium" -> return 4
"Easy" -> return 2
_ -> unexpected "difficulty -- unknown" | 284 | difficultyParser :: Parsec String () Int
difficultyParser = do
str <- try (string "Hard")
<|> try (string "Medium")
<|> try (string "Easy")
case str of
"Hard" -> return 7
"Medium" -> return 4
"Easy" -> return 2
_ -> unexpected "difficulty -- unknown" | 284 | difficultyParser = do
str <- try (string "Hard")
<|> try (string "Medium")
<|> try (string "Easy")
case str of
"Hard" -> return 7
"Medium" -> return 4
"Easy" -> return 2
_ -> unexpected "difficulty -- unknown" | 243 | false | true | 1 | 13 | 76 | 110 | 48 | 62 | null | null |
CindyLinz/Haskell.js | trans/src/Desugar/Tuple.hs | mit | deTupleInstHead (IHApp l instHead type0) = IHApp (id l) (deTupleInstHead instHead) (deTupleType type0) | 102 | deTupleInstHead (IHApp l instHead type0) = IHApp (id l) (deTupleInstHead instHead) (deTupleType type0) | 102 | deTupleInstHead (IHApp l instHead type0) = IHApp (id l) (deTupleInstHead instHead) (deTupleType type0) | 102 | false | false | 0 | 7 | 12 | 45 | 21 | 24 | null | null |
brendanhay/gogol | gogol-storage/gen/Network/Google/Storage/Types/Product.hs | mpl-2.0 | -- | The link to this resource.
hkmSelfLink :: Lens' HmacKeyMetadata (Maybe Text)
hkmSelfLink
= lens _hkmSelfLink (\ s a -> s{_hkmSelfLink = a}) | 146 | hkmSelfLink :: Lens' HmacKeyMetadata (Maybe Text)
hkmSelfLink
= lens _hkmSelfLink (\ s a -> s{_hkmSelfLink = a}) | 114 | hkmSelfLink
= lens _hkmSelfLink (\ s a -> s{_hkmSelfLink = a}) | 64 | true | true | 0 | 9 | 25 | 48 | 25 | 23 | null | null |
brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Licenses/TestIAMPermissions.hs | mpl-2.0 | -- | Name or id of the resource for this request.
ltipResource :: Lens' LicensesTestIAMPermissions Text
ltipResource
= lens _ltipResource (\ s a -> s{_ltipResource = a}) | 171 | ltipResource :: Lens' LicensesTestIAMPermissions Text
ltipResource
= lens _ltipResource (\ s a -> s{_ltipResource = a}) | 121 | ltipResource
= lens _ltipResource (\ s a -> s{_ltipResource = a}) | 67 | true | true | 1 | 9 | 28 | 46 | 22 | 24 | null | null |
scvalex/ltc | src/Ltc/Store/VersionControl.hs | gpl-3.0 | tryMerge _ (Just (IntSetKeyHistory myTip myDiffs)) (IntSetKeyHistory theirTip theirDiffs) =
merge myTip myDiffs theirTip theirDiffs | 135 | tryMerge _ (Just (IntSetKeyHistory myTip myDiffs)) (IntSetKeyHistory theirTip theirDiffs) =
merge myTip myDiffs theirTip theirDiffs | 135 | tryMerge _ (Just (IntSetKeyHistory myTip myDiffs)) (IntSetKeyHistory theirTip theirDiffs) =
merge myTip myDiffs theirTip theirDiffs | 135 | false | false | 2 | 9 | 18 | 52 | 21 | 31 | null | null |
danchoi/irclog | Main.hs | mit | logMessage :: UnicodeEvent -> IRC ()
logMessage ev =
case _message ev of
Privmsg target m -> liftIO $ do
now <- getCurrentTime
let ts = formatTime defaultTimeLocale "%c" now
let source = T.unpack $ formatSource (_source ev)
printf "%s %20s : " ts source
-- print target
... | 372 | logMessage :: UnicodeEvent -> IRC ()
logMessage ev =
case _message ev of
Privmsg target m -> liftIO $ do
now <- getCurrentTime
let ts = formatTime defaultTimeLocale "%c" now
let source = T.unpack $ formatSource (_source ev)
printf "%s %20s : " ts source
-- print target
... | 372 | logMessage ev =
case _message ev of
Privmsg target m -> liftIO $ do
now <- getCurrentTime
let ts = formatTime defaultTimeLocale "%c" now
let source = T.unpack $ formatSource (_source ev)
printf "%s %20s : " ts source
-- print target
T.putStrLn (formatMsg m)
... | 335 | false | true | 6 | 9 | 117 | 115 | 55 | 60 | null | null |
OS2World/DEV-UTIL-HUGS | libraries/Graphics/UI/GLUT/State.hs | bsd-3-clause | colorBufferDepth :: GettableStateVar BufferDepth
colorBufferDepth =
makeGettableStateVar $ simpleGet fromIntegral glut_WINDOW_BUFFER_SIZE | 140 | colorBufferDepth :: GettableStateVar BufferDepth
colorBufferDepth =
makeGettableStateVar $ simpleGet fromIntegral glut_WINDOW_BUFFER_SIZE | 140 | colorBufferDepth =
makeGettableStateVar $ simpleGet fromIntegral glut_WINDOW_BUFFER_SIZE | 91 | false | true | 0 | 6 | 13 | 23 | 11 | 12 | null | null |
scslab/hails | Hails/PolicyModule/DSL.hs | mit | key :: ColFieldExpM ()
key = searchable | 39 | key :: ColFieldExpM ()
key = searchable | 39 | key = searchable | 16 | false | true | 0 | 6 | 6 | 16 | 8 | 8 | null | null |
CindyLinz/Haskell.js | trans/src/Desugar/Where.hs | mit | deWhereAsst (WildCardA l name) = WildCardA (id l) (fmap (deWhereName) name) | 75 | deWhereAsst (WildCardA l name) = WildCardA (id l) (fmap (deWhereName) name) | 75 | deWhereAsst (WildCardA l name) = WildCardA (id l) (fmap (deWhereName) name) | 75 | false | false | 0 | 8 | 10 | 39 | 19 | 20 | null | null |
sdiehl/ghc | compiler/nativeGen/RegAlloc/Linear/Stats.hs | bsd-3-clause | -- | Count reg-reg moves remaining in this code.
countRegRegMovesNat
:: Instruction instr
=> NatCmmDecl statics instr -> Int
countRegRegMovesNat cmm
= execState (mapGenBlockTopM countBlock cmm) 0
where
countBlock b@(BasicBlock _ instrs)
= do mapM_ countInstr instrs
... | 602 | countRegRegMovesNat
:: Instruction instr
=> NatCmmDecl statics instr -> Int
countRegRegMovesNat cmm
= execState (mapGenBlockTopM countBlock cmm) 0
where
countBlock b@(BasicBlock _ instrs)
= do mapM_ countInstr instrs
return b
countInstr instr
... | 552 | countRegRegMovesNat cmm
= execState (mapGenBlockTopM countBlock cmm) 0
where
countBlock b@(BasicBlock _ instrs)
= do mapM_ countInstr instrs
return b
countInstr instr
| Just _ <- takeRegRegMoveInstr instr
= do modify (+ 1)
... | 460 | true | true | 5 | 9 | 242 | 127 | 60 | 67 | null | null |
fmapfmapfmap/amazonka | amazonka-iam/gen/Network/AWS/IAM/DeletePolicy.hs | mpl-2.0 | -- | Undocumented member.
dpPolicyARN :: Lens' DeletePolicy Text
dpPolicyARN = lens _dpPolicyARN (\ s a -> s{_dpPolicyARN = a}) | 127 | dpPolicyARN :: Lens' DeletePolicy Text
dpPolicyARN = lens _dpPolicyARN (\ s a -> s{_dpPolicyARN = a}) | 101 | dpPolicyARN = lens _dpPolicyARN (\ s a -> s{_dpPolicyARN = a}) | 62 | true | true | 0 | 9 | 19 | 40 | 22 | 18 | null | null |
grnet/snf-ganeti | src/Ganeti/Constants.hs | bsd-2-clause | cvEnoden1 :: (String, String, String)
cvEnoden1 =
("node",
Types.cVErrorCodeToRaw CvENODEN1,
"Not enough memory to accommodate instance failovers") | 155 | cvEnoden1 :: (String, String, String)
cvEnoden1 =
("node",
Types.cVErrorCodeToRaw CvENODEN1,
"Not enough memory to accommodate instance failovers") | 155 | cvEnoden1 =
("node",
Types.cVErrorCodeToRaw CvENODEN1,
"Not enough memory to accommodate instance failovers") | 117 | false | true | 0 | 8 | 24 | 41 | 21 | 20 | null | null |
juhp/stack | test/integration/tests/mutable-deps/files/filepath-1.4.2.1/System/FilePath/Internal.hs | bsd-3-clause | -- | Delete the drive, if it exists.
--
-- > dropDrive x == snd (splitDrive x)
dropDrive :: FilePath -> FilePath
dropDrive = snd . splitDrive | 141 | dropDrive :: FilePath -> FilePath
dropDrive = snd . splitDrive | 62 | dropDrive = snd . splitDrive | 28 | true | true | 0 | 7 | 26 | 29 | 14 | 15 | null | null |
yamadapc/stack-run | unix/System/Console/Questioner/ProgressIndicators.hs | mit | simple8Spinner = spinner simple8SpinnerTheme | 44 | simple8Spinner = spinner simple8SpinnerTheme | 44 | simple8Spinner = spinner simple8SpinnerTheme | 44 | false | false | 1 | 5 | 3 | 12 | 4 | 8 | null | null |
rahulmutt/ghcvm | compiler/Eta/SimplCore/SimplUtils.hs | bsd-3-clause | contIsDupable _ = False | 55 | contIsDupable _ = False | 55 | contIsDupable _ = False | 55 | false | false | 0 | 4 | 35 | 10 | 4 | 6 | null | null |
nevrenato/Hets_Fork | SoftFOL/MathServMapping.hs | gpl-2.0 | {- |
Name of the prover if MathServ was called via Broker.
-}
brokerName :: String
brokerName = "MathServe Broker" | 116 | brokerName :: String
brokerName = "MathServe Broker" | 52 | brokerName = "MathServe Broker" | 31 | true | true | 0 | 4 | 21 | 12 | 7 | 5 | null | null |
reuleaux/pire | src/Pire/Parser/Delta.hs | bsd-3-clause | eNum (Directed _ l _ _ _) = fromIntegral l + 1
li | 49 | lineNum (Directed _ l _ _ _) = fromIntegral l + 1 | 49 | lineNum (Directed _ l _ _ _) = fromIntegral l + 1 | 49 | false | false | 0 | 6 | 12 | 34 | 15 | 19 | null | null |
ezyang/ghc | compiler/coreSyn/CoreUtils.hs | bsd-3-clause | exprType other = pprTrace "exprType" (pprCoreExpr other) alphaTy | 64 | exprType other = pprTrace "exprType" (pprCoreExpr other) alphaTy | 64 | exprType other = pprTrace "exprType" (pprCoreExpr other) alphaTy | 64 | false | false | 1 | 7 | 7 | 25 | 10 | 15 | null | null |
Qu4tro/CP | CP.hs | mit | ult :: (Monad m) => m (m b) -> m b
-- also known as join
mult = (>>= id)
| 73 | mult :: (Monad m) => m (m b) -> m b
mult = (>>= id) | 51 | mult = (>>= id) | 15 | true | true | 0 | 10 | 20 | 46 | 23 | 23 | null | null |
phischu/fragnix | tests/packages/scotty/Data.Word8.hs | bsd-3-clause | _ordmasculine = 0xba | 20 | _ordmasculine = 0xba | 20 | _ordmasculine = 0xba | 20 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
brendanhay/gogol | gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Product.hs | mpl-2.0 | -- | The summary that the authenticated user has set for this calendar.
-- Optional.
cleSummaryOverride :: Lens' CalendarListEntry (Maybe Text)
cleSummaryOverride
= lens _cleSummaryOverride
(\ s a -> s{_cleSummaryOverride = a}) | 235 | cleSummaryOverride :: Lens' CalendarListEntry (Maybe Text)
cleSummaryOverride
= lens _cleSummaryOverride
(\ s a -> s{_cleSummaryOverride = a}) | 150 | cleSummaryOverride
= lens _cleSummaryOverride
(\ s a -> s{_cleSummaryOverride = a}) | 91 | true | true | 0 | 8 | 39 | 50 | 26 | 24 | null | null |
grnet/snf-ganeti | src/Ganeti/Constants.hs | bsd-2-clause | esScriptSnapshot :: String
esScriptSnapshot = esActionSnapshot | 62 | esScriptSnapshot :: String
esScriptSnapshot = esActionSnapshot | 62 | esScriptSnapshot = esActionSnapshot | 35 | false | true | 0 | 6 | 5 | 18 | 7 | 11 | null | null |
bgamari/icalendar | Data/ICalendar/Parse.hs | bsd-3-clause | wspChars = " \t\n\r\f\v\xa0" | 28 | wspChars = " \t\n\r\f\v\xa0" | 28 | wspChars = " \t\n\r\f\v\xa0" | 28 | false | false | 1 | 5 | 3 | 10 | 3 | 7 | null | null |
frantisekfarka/ghc-dsi | utils/genprimopcode/Main.hs | bsd-3-clause | known_args :: [String]
known_args
= [ "--data-decl",
"--has-side-effects",
"--out-of-line",
"--commutable",
"--code-size",
"--can-fail",
"--strictness",
"--fixity",
"--primop-primop-info",
"--primop-tag",
"--primop-list",
"--primop-vector-... | 529 | known_args :: [String]
known_args
= [ "--data-decl",
"--has-side-effects",
"--out-of-line",
"--commutable",
"--code-size",
"--can-fail",
"--strictness",
"--fixity",
"--primop-primop-info",
"--primop-tag",
"--primop-list",
"--primop-vector-... | 529 | known_args
= [ "--data-decl",
"--has-side-effects",
"--out-of-line",
"--commutable",
"--code-size",
"--can-fail",
"--strictness",
"--fixity",
"--primop-primop-info",
"--primop-tag",
"--primop-list",
"--primop-vector-uniques",
"--pri... | 506 | false | true | 0 | 7 | 152 | 75 | 45 | 30 | null | null |
IreneKnapp/Faction | libfaction/Distribution/Simple/Utils.hs | bsd-3-clause | matchFileGlob :: FilePath -> IO [FilePath]
matchFileGlob = matchDirFileGlob "." | 79 | matchFileGlob :: FilePath -> IO [FilePath]
matchFileGlob = matchDirFileGlob "." | 79 | matchFileGlob = matchDirFileGlob "." | 36 | false | true | 0 | 7 | 9 | 24 | 12 | 12 | null | null |
sdiehl/ghc | compiler/GHC/Cmm/Utils.hs | bsd-3-clause | spLimExpr = CmmReg spLimReg | 27 | spLimExpr = CmmReg spLimReg | 27 | spLimExpr = CmmReg spLimReg | 27 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
lennart/tidal-midi | Sound/Tidal/Rytm.hs | gpl-3.0 | -- note on/off
note = makeI oscKeys "note" | 50 | note = makeI oscKeys "note" | 35 | note = makeI oscKeys "note" | 35 | true | false | 1 | 5 | 15 | 15 | 6 | 9 | null | null |
keera-studios/pang-a-lambda | src/Physics/CollisionEngine.hs | gpl-3.0 | -- | Given a list of objects, it detects all the collisions between them.
--
-- Note: this is a simple n*m-complex algorithm, with n the
-- number of objects and m the number of moving objects (right now,
-- only 2).
--
detectCollisions :: Foldable t => (Eq n , PhysicalObject o n s) => t o -> Collisions n
detectCollisi... | 933 | detectCollisions :: Foldable t => (Eq n , PhysicalObject o n s) => t o -> Collisions n
detectCollisions objsT = flattened
where -- Eliminate empty collision sets
-- TODO: why is this really necessary?
flattened = filter collisionNotEmpty collisions
-- Detect collisions between moving objects ... | 713 | detectCollisions objsT = flattened
where -- Eliminate empty collision sets
-- TODO: why is this really necessary?
flattened = filter collisionNotEmpty collisions
-- Detect collisions between moving objects and any other objects
collisions = detectCollisions' objsT moving
-- P... | 626 | true | true | 3 | 9 | 211 | 131 | 71 | 60 | null | null |
succzero/fino | src/Infer.hs | bsd-3-clause | occursCheck a (TFun t1 t2) = occursCheck a t1 || occursCheck a t2 | 65 | occursCheck a (TFun t1 t2) = occursCheck a t1 || occursCheck a t2 | 65 | occursCheck a (TFun t1 t2) = occursCheck a t1 || occursCheck a t2 | 65 | false | false | 0 | 7 | 12 | 33 | 15 | 18 | null | null |
mcschroeder/ghc | compiler/cmm/CLabel.hs | bsd-3-clause | -----
mkCmmInfoLabel, mkCmmEntryLabel, mkCmmRetInfoLabel, mkCmmRetLabel,
mkCmmCodeLabel, mkCmmDataLabel, mkCmmClosureLabel
:: UnitId -> FastString -> CLabel
mkCmmInfoLabel pkg str = CmmLabel pkg str CmmInfo | 229 | mkCmmInfoLabel, mkCmmEntryLabel, mkCmmRetInfoLabel, mkCmmRetLabel,
mkCmmCodeLabel, mkCmmDataLabel, mkCmmClosureLabel
:: UnitId -> FastString -> CLabel
mkCmmInfoLabel pkg str = CmmLabel pkg str CmmInfo | 222 | mkCmmInfoLabel pkg str = CmmLabel pkg str CmmInfo | 58 | true | true | 4 | 5 | 44 | 51 | 28 | 23 | null | null |
green-haskell/ghc | compiler/simplCore/OccurAnal.hs | bsd-3-clause | orOccInfo a1 a2 = ASSERT( not (isDeadOcc a1 || isDeadOcc a2) )
NoOccInfo | 90 | orOccInfo a1 a2 = ASSERT( not (isDeadOcc a1 || isDeadOcc a2) )
NoOccInfo | 90 | orOccInfo a1 a2 = ASSERT( not (isDeadOcc a1 || isDeadOcc a2) )
NoOccInfo | 90 | false | false | 0 | 10 | 30 | 35 | 16 | 19 | null | null |
mstksg/netwire-experiments | src/Render/Surface.hs | gpl-3.0 | transScaleRotate :: Double -> Double -> Transformation2
transScaleRotate s a = transRotate a !*! transScale s | 109 | transScaleRotate :: Double -> Double -> Transformation2
transScaleRotate s a = transRotate a !*! transScale s | 109 | transScaleRotate s a = transRotate a !*! transScale s | 53 | false | true | 0 | 6 | 15 | 34 | 16 | 18 | null | null |
zepto-lang/zepto-js | src/Zepto/Primitives/CharStrPrimitives.hs | gpl-2.0 | stringToList [badType] = throwError $ TypeMismatch "string" badType | 67 | stringToList [badType] = throwError $ TypeMismatch "string" badType | 67 | stringToList [badType] = throwError $ TypeMismatch "string" badType | 67 | false | false | 0 | 6 | 7 | 21 | 10 | 11 | null | null |
ben-schulz/Idris-dev | src/Idris/Core/TT.hs | bsd-3-clause | -- this will overwrite already existing definitions
addDef :: Name -> a -> Ctxt a -> Ctxt a
addDef n v ctxt = case Map.lookup (nsroot n) ctxt of
Nothing -> Map.insert (nsroot n)
(Map.insert n v Map.empty) ctxt
Just xs -> Map.insert ... | 824 | addDef :: Name -> a -> Ctxt a -> Ctxt a
addDef n v ctxt = case Map.lookup (nsroot n) ctxt of
Nothing -> Map.insert (nsroot n)
(Map.insert n v Map.empty) ctxt
Just xs -> Map.insert (nsroot n)
(... | 772 | addDef n v ctxt = case Map.lookup (nsroot n) ctxt of
Nothing -> Map.insert (nsroot n)
(Map.insert n v Map.empty) ctxt
Just xs -> Map.insert (nsroot n)
(Map.insert n v xs) ctxt
{-| Look up a n... | 732 | true | true | 0 | 11 | 283 | 130 | 62 | 68 | null | null |
mightybyte/reflex-dom-stubs | src/GHCJS/DOM/HTMLInputElement.hs | bsd-3-clause | htmlInputElementGetIncremental = undefined | 42 | htmlInputElementGetIncremental = undefined | 42 | htmlInputElementGetIncremental = undefined | 42 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
oherrala/haskell-stun | src/Network/STUN.hs | mit | ------------------------------------------------------------------------
-- STUN Binding Request/Response (client)
-- | Send STUN Binding Request, then wait and return Binding Response
sendBinding :: Socket.Socket -> IO STUNMessage
sendBinding sock = do
transId <- sendBindingRequest sock []
recvBindingResponse soc... | 387 | sendBinding :: Socket.Socket -> IO STUNMessage
sendBinding sock = do
transId <- sendBindingRequest sock []
recvBindingResponse sock transId
-- | Send STUN Binding Request
-- Returns Transaction ID | 201 | sendBinding sock = do
transId <- sendBindingRequest sock []
recvBindingResponse sock transId
-- | Send STUN Binding Request
-- Returns Transaction ID | 154 | true | true | 0 | 9 | 51 | 50 | 25 | 25 | null | null |
pharaun/alldice | src/Scheme/Types.hs | apache-2.0 | showVal (DottedList head' tail') = T.concat ["(", unwordsList head', " . ", showVal tail', ")"] | 95 | showVal (DottedList head' tail') = T.concat ["(", unwordsList head', " . ", showVal tail', ")"] | 95 | showVal (DottedList head' tail') = T.concat ["(", unwordsList head', " . ", showVal tail', ")"] | 95 | false | false | 0 | 7 | 14 | 44 | 22 | 22 | null | null |
fmapfmapfmap/amazonka | amazonka-elasticache/gen/Network/AWS/ElastiCache/Types/Product.hs | mpl-2.0 | -- | The date and time when the cache node was created in the source cache
-- cluster.
nsCacheNodeCreateTime :: Lens' NodeSnapshot (Maybe UTCTime)
nsCacheNodeCreateTime = lens _nsCacheNodeCreateTime (\ s a -> s{_nsCacheNodeCreateTime = a}) . mapping _Time | 255 | nsCacheNodeCreateTime :: Lens' NodeSnapshot (Maybe UTCTime)
nsCacheNodeCreateTime = lens _nsCacheNodeCreateTime (\ s a -> s{_nsCacheNodeCreateTime = a}) . mapping _Time | 168 | nsCacheNodeCreateTime = lens _nsCacheNodeCreateTime (\ s a -> s{_nsCacheNodeCreateTime = a}) . mapping _Time | 108 | true | true | 0 | 10 | 37 | 54 | 29 | 25 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.