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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
peddie/fingertrees | bench/intervaltrees.hs | bsd-3-clause | benchL :: NFData b => String -> (a -> b) -> a -> [Benchmark]
benchL lbl v x = [bench lbl $ whnf v x] | 100 | benchL :: NFData b => String -> (a -> b) -> a -> [Benchmark]
benchL lbl v x = [bench lbl $ whnf v x] | 100 | benchL lbl v x = [bench lbl $ whnf v x] | 39 | false | true | 0 | 11 | 24 | 68 | 32 | 36 | null | null |
garetxe/cabal | Cabal/tests/UnitTests/Distribution/Version.hs | bsd-3-clause | prop_to_from_intervals :: VersionIntervals -> Bool
prop_to_from_intervals intervals =
toVersionIntervals (fromVersionIntervals intervals) == intervals | 152 | prop_to_from_intervals :: VersionIntervals -> Bool
prop_to_from_intervals intervals =
toVersionIntervals (fromVersionIntervals intervals) == intervals | 152 | prop_to_from_intervals intervals =
toVersionIntervals (fromVersionIntervals intervals) == intervals | 101 | false | true | 0 | 8 | 14 | 31 | 15 | 16 | null | null |
petabricks/petabricks | scripts/oldtuner2/src/GP/SymbolTable.hs | mit | -- convenience method. Adds a new element to the list a key maps to,
-- or creates a new mapping if one doesn't already exists. The element is added
-- at the beginning of the list.
insertIntoList :: (Ord k) => k -> a -> Map k [a] -> Map k [a]
insertIntoList key val map = insert key (val:current) map
where
cu... | 447 | insertIntoList :: (Ord k) => k -> a -> Map k [a] -> Map k [a]
insertIntoList key val map = insert key (val:current) map
where
current = if member key map
then map ! key
else []
-- binds a name to a value in a symbol table | 265 | insertIntoList key val map = insert key (val:current) map
where
current = if member key map
then map ! key
else []
-- binds a name to a value in a symbol table | 203 | true | true | 0 | 10 | 128 | 100 | 53 | 47 | null | null |
ducis/flapjax-fixed | flapjax/trunk/compiler/src/Flapjax/Compiler.hs | bsd-3-clause | warnImpureStmt s@(DoWhileStmt p _ _) =
warn "unlifted do..while loop" s p >> return s | 87 | warnImpureStmt s@(DoWhileStmt p _ _) =
warn "unlifted do..while loop" s p >> return s | 87 | warnImpureStmt s@(DoWhileStmt p _ _) =
warn "unlifted do..while loop" s p >> return s | 87 | false | false | 0 | 8 | 16 | 36 | 17 | 19 | null | null |
romanb/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/Types.hs | mpl-2.0 | -- | 'Deployment' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'dAppId' @::@ 'Maybe' 'Text'
--
-- * 'dCommand' @::@ 'Maybe' 'DeploymentCommand'
--
-- * 'dComment' @::@ 'Maybe' 'Text'
--
-- * 'dCompletedAt' @::@ 'Maybe' 'Text'
--
-- * 'dCreatedAt' @::@ 'Maybe' 'Text'
--
-- * 'dCusto... | 1,014 | deployment :: Deployment
deployment = Deployment
{ _dDeploymentId = Nothing
, _dStackId = Nothing
, _dAppId = Nothing
, _dCreatedAt = Nothing
, _dCompletedAt = Nothing
, _dDuration = Nothing
, _dIamUserArn = Nothing
, _dComment = Nothing
, _dCommand = ... | 425 | deployment = Deployment
{ _dDeploymentId = Nothing
, _dStackId = Nothing
, _dAppId = Nothing
, _dCreatedAt = Nothing
, _dCompletedAt = Nothing
, _dDuration = Nothing
, _dIamUserArn = Nothing
, _dComment = Nothing
, _dCommand = Nothing
, _dStatus ... | 400 | true | true | 0 | 6 | 244 | 113 | 83 | 30 | null | null |
gridaphobe/ghc | compiler/typecheck/TcRnTypes.hs | bsd-3-clause | thLevel Comp = 1 | 23 | thLevel Comp = 1 | 23 | thLevel Comp = 1 | 23 | false | false | 0 | 5 | 10 | 9 | 4 | 5 | null | null |
plow-technologies/roc-translator | src/Protocol/ROC/OpCodes.hs | bsd-3-clause | recvAllBytes :: SerialPort -> Int -> IO BS.ByteString
recvAllBytes s i = do
let emptyBytes = PortBytes "" s i
pbByteString <$> loop emptyBytes
where
loop !b = do
bNew <- recv s i
if (BS.null bNew)
then _pbBytes return b
else _pbBytes (\bOld -> return $ BS.a... | 347 | recvAllBytes :: SerialPort -> Int -> IO BS.ByteString
recvAllBytes s i = do
let emptyBytes = PortBytes "" s i
pbByteString <$> loop emptyBytes
where
loop !b = do
bNew <- recv s i
if (BS.null bNew)
then _pbBytes return b
else _pbBytes (\bOld -> return $ BS.a... | 347 | recvAllBytes s i = do
let emptyBytes = PortBytes "" s i
pbByteString <$> loop emptyBytes
where
loop !b = do
bNew <- recv s i
if (BS.null bNew)
then _pbBytes return b
else _pbBytes (\bOld -> return $ BS.append bOld bNew) b >>= loop | 293 | false | true | 0 | 14 | 115 | 137 | 62 | 75 | null | null |
ghc-android/ghc | compiler/typecheck/TcType.hs | bsd-3-clause | tcIsTyVarTy :: Type -> Bool
tcIsTyVarTy ty = isJust (tcGetTyVar_maybe ty) | 73 | tcIsTyVarTy :: Type -> Bool
tcIsTyVarTy ty = isJust (tcGetTyVar_maybe ty) | 73 | tcIsTyVarTy ty = isJust (tcGetTyVar_maybe ty) | 45 | false | true | 0 | 7 | 10 | 33 | 14 | 19 | null | null |
forked-upstream-packages-for-ghcjs/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | fromRationalClassOpKey = mkPreludeMiscIdUnique 162 | 57 | fromRationalClassOpKey = mkPreludeMiscIdUnique 162 | 57 | fromRationalClassOpKey = mkPreludeMiscIdUnique 162 | 57 | false | false | 0 | 5 | 10 | 9 | 4 | 5 | null | null |
garious/hopt | Transforms/ConstProp.hs | mit | toplevelEntity x = return x | 49 | toplevelEntity x = return x | 49 | toplevelEntity x = return x | 49 | false | false | 1 | 5 | 26 | 15 | 5 | 10 | null | null |
trxeste/wrk | haskell/write-yourself-a-brainfck/src/Parser.hs | bsd-3-clause | moveRight :: Tape a -> Tape a
moveRight (Tape ls p (r:rs)) = Tape (p:ls) r rs | 77 | moveRight :: Tape a -> Tape a
moveRight (Tape ls p (r:rs)) = Tape (p:ls) r rs | 77 | moveRight (Tape ls p (r:rs)) = Tape (p:ls) r rs | 47 | false | true | 0 | 9 | 16 | 55 | 27 | 28 | null | null |
forked-upstream-packages-for-ghcjs/ghc | compiler/utils/Binary.hs | bsd-3-clause | undef :: String -> a
undef s = panic ("Binary.UserData: no " ++ s) | 66 | undef :: String -> a
undef s = panic ("Binary.UserData: no " ++ s) | 66 | undef s = panic ("Binary.UserData: no " ++ s) | 45 | false | true | 0 | 7 | 13 | 34 | 15 | 19 | null | null |
icyfork/shellcheck | ShellCheck/Parser.hs | gpl-3.0 | lt x = trace (show x) x | 23 | lt x = trace (show x) x | 23 | lt x = trace (show x) x | 23 | false | false | 0 | 7 | 6 | 20 | 9 | 11 | null | null |
chrisbloecker/Hive | src/Hive/Master/Messaging.hs | gpl-3.0 | terminateMaster :: Master -> Process ()
terminateMaster (Master master) = send master Terminate | 95 | terminateMaster :: Master -> Process ()
terminateMaster (Master master) = send master Terminate | 95 | terminateMaster (Master master) = send master Terminate | 55 | false | true | 0 | 9 | 12 | 38 | 17 | 21 | null | null |
siddhanathan/ghc | compiler/nativeGen/RegAlloc/Linear/State.hs | bsd-3-clause | getUniqueR :: RegM freeRegs Unique
getUniqueR = RegM $ \s ->
case takeUniqFromSupply (ra_us s) of
(uniq, us) -> (# s{ra_us = us}, uniq #)
-- | Record that a spill instruction was inserted, for profiling. | 211 | getUniqueR :: RegM freeRegs Unique
getUniqueR = RegM $ \s ->
case takeUniqFromSupply (ra_us s) of
(uniq, us) -> (# s{ra_us = us}, uniq #)
-- | Record that a spill instruction was inserted, for profiling. | 211 | getUniqueR = RegM $ \s ->
case takeUniqFromSupply (ra_us s) of
(uniq, us) -> (# s{ra_us = us}, uniq #)
-- | Record that a spill instruction was inserted, for profiling. | 176 | false | true | 0 | 12 | 43 | 64 | 35 | 29 | null | null |
mxswd/cpppp | Language/C/CPPPP/Transforms/Chs.hs | bsd-3-clause | applyT :: [Name] -> Type
-- applyT [] = boom
applyT [x] = ConT x | 64 | applyT :: [Name] -> Type
applyT [x] = ConT x | 44 | applyT [x] = ConT x | 19 | true | true | 0 | 8 | 14 | 34 | 16 | 18 | null | null |
graninas/Haskell-Algorithms | Tests/FizzBuzz6Free.hs | gpl-3.0 | getFizzBuzz :: Int -> FizzBuzzer String
getFizzBuzz n = do
fizz <- getFizz n 5
buzz <- getBuzz n 3
let fb = fizz ++ buzz
s <- getNum (length fb) n
return $ s ++ fizz ++ buzz | 193 | getFizzBuzz :: Int -> FizzBuzzer String
getFizzBuzz n = do
fizz <- getFizz n 5
buzz <- getBuzz n 3
let fb = fizz ++ buzz
s <- getNum (length fb) n
return $ s ++ fizz ++ buzz | 193 | getFizzBuzz n = do
fizz <- getFizz n 5
buzz <- getBuzz n 3
let fb = fizz ++ buzz
s <- getNum (length fb) n
return $ s ++ fizz ++ buzz | 153 | false | true | 0 | 10 | 58 | 91 | 41 | 50 | null | null |
vdweegen/UvA-Software_Testing | Lab5/Jordan/Lecture5.hs | gpl-3.0 | subGrid :: Sudoku -> (Row,Column) -> [Value]
subGrid s (r,c) =
[ s (r',c') | r' <- bl r, c' <- bl c ] | 104 | subGrid :: Sudoku -> (Row,Column) -> [Value]
subGrid s (r,c) =
[ s (r',c') | r' <- bl r, c' <- bl c ] | 104 | subGrid s (r,c) =
[ s (r',c') | r' <- bl r, c' <- bl c ] | 59 | false | true | 0 | 9 | 26 | 79 | 40 | 39 | null | null |
Potregon/while | src/Parser/While.hs | gpl-3.0 | reduce 44 states (StackElement_Addr v1 : stack) input =
(reduceAndGoto 44 states, StackElement_Param ( AST.Variable v1 ) : stack, input) | 138 | reduce 44 states (StackElement_Addr v1 : stack) input =
(reduceAndGoto 44 states, StackElement_Param ( AST.Variable v1 ) : stack, input) | 138 | reduce 44 states (StackElement_Addr v1 : stack) input =
(reduceAndGoto 44 states, StackElement_Param ( AST.Variable v1 ) : stack, input) | 138 | false | false | 0 | 10 | 21 | 54 | 27 | 27 | null | null |
green-haskell/ghc | compiler/deSugar/Coverage.hs | bsd-3-clause | tickSameFileOnly :: TickishType -> Bool
tickSameFileOnly HpcTicks = True | 72 | tickSameFileOnly :: TickishType -> Bool
tickSameFileOnly HpcTicks = True | 72 | tickSameFileOnly HpcTicks = True | 32 | false | true | 0 | 5 | 8 | 18 | 9 | 9 | null | null |
jb55/language-javascript | src/Language/JavaScript/Parser/AST.hs | bsd-3-clause | showStrippedNode (JSStringLiteral c s) = "JSStringLiteral " ++ show c ++ " " ++ show s | 86 | showStrippedNode (JSStringLiteral c s) = "JSStringLiteral " ++ show c ++ " " ++ show s | 86 | showStrippedNode (JSStringLiteral c s) = "JSStringLiteral " ++ show c ++ " " ++ show s | 86 | false | false | 0 | 8 | 15 | 36 | 16 | 20 | null | null |
mariefarrell/Hets | OWL2/Parse.hs | gpl-2.0 | floatingPointLit :: CharParser st FloatLit
floatingPointLit = do
b <- optSign
d <- floatDecimal
i <- option zeroInt (oneOf "eE" >> intLit)
optionMaybe $ oneOf "fF"
return $ FloatLit (negDec b d) i | 211 | floatingPointLit :: CharParser st FloatLit
floatingPointLit = do
b <- optSign
d <- floatDecimal
i <- option zeroInt (oneOf "eE" >> intLit)
optionMaybe $ oneOf "fF"
return $ FloatLit (negDec b d) i | 211 | floatingPointLit = do
b <- optSign
d <- floatDecimal
i <- option zeroInt (oneOf "eE" >> intLit)
optionMaybe $ oneOf "fF"
return $ FloatLit (negDec b d) i | 168 | false | true | 0 | 11 | 47 | 82 | 37 | 45 | null | null |
GaloisInc/halvm-ghc | compiler/typecheck/TcRnTypes.hs | bsd-3-clause | tyCoFVsOfImplic :: Implication -> FV
-- Only called on *zonked* things, hence no need to worry about flatten-skolems
tyCoFVsOfImplic (Implic { ic_skols = skols
, ic_given = givens, ic_wanted = wanted })
= FV.delFVs (mkVarSet skols)
(tyCoFVsOfWC wanted `unionFV` tyCoFVsOfTypes (map evVar... | 333 | tyCoFVsOfImplic :: Implication -> FV
tyCoFVsOfImplic (Implic { ic_skols = skols
, ic_given = givens, ic_wanted = wanted })
= FV.delFVs (mkVarSet skols)
(tyCoFVsOfWC wanted `unionFV` tyCoFVsOfTypes (map evVarPred givens)) | 253 | tyCoFVsOfImplic (Implic { ic_skols = skols
, ic_given = givens, ic_wanted = wanted })
= FV.delFVs (mkVarSet skols)
(tyCoFVsOfWC wanted `unionFV` tyCoFVsOfTypes (map evVarPred givens)) | 216 | true | true | 8 | 10 | 75 | 92 | 44 | 48 | null | null |
pbl64k/Data.Stack | Data/Stack.hs | bsd-2-clause | mirrorA :: Arrow a => a (b, c) (d, e) -> a (c, b) (e, d)
mirrorA = (arr mirror) `wrap` (arr mirror) | 99 | mirrorA :: Arrow a => a (b, c) (d, e) -> a (c, b) (e, d)
mirrorA = (arr mirror) `wrap` (arr mirror) | 99 | mirrorA = (arr mirror) `wrap` (arr mirror) | 42 | false | true | 0 | 9 | 22 | 83 | 43 | 40 | null | null |
mit-pdos/fscq-impl | src/fscq.hs | mit | errnoToPosix Errno.ENOSPCINODE = eNOSPC | 40 | errnoToPosix Errno.ENOSPCINODE = eNOSPC | 40 | errnoToPosix Errno.ENOSPCINODE = eNOSPC | 40 | false | false | 0 | 6 | 4 | 11 | 5 | 6 | null | null |
brendanhay/gogol | gogol-iam/gen/Network/Google/Resource/IAM/Roles/Get.hs | mpl-2.0 | -- | Upload protocol for media (e.g. \"raw\", \"multipart\").
rgUploadProtocol :: Lens' RolesGet (Maybe Text)
rgUploadProtocol
= lens _rgUploadProtocol
(\ s a -> s{_rgUploadProtocol = a}) | 195 | rgUploadProtocol :: Lens' RolesGet (Maybe Text)
rgUploadProtocol
= lens _rgUploadProtocol
(\ s a -> s{_rgUploadProtocol = a}) | 133 | rgUploadProtocol
= lens _rgUploadProtocol
(\ s a -> s{_rgUploadProtocol = a}) | 85 | true | true | 0 | 9 | 33 | 48 | 25 | 23 | null | null |
abhinav/kafka-client | examples/consoleConsumer.hs | mit | main :: IO ()
main = do
args <- getArgs
when (null args) $ do
putStrLn "USAGE: consoleProducer TOPIC"
exitFailure
let topic = Topic (B8.pack $ head args)
withConnection "localhost" 9092 $ \conn -> do
startOffset:_ <- offsets conn (Offsets topic 0 OffsetsLatest 10)
>>= eithe... | 762 | main :: IO ()
main = do
args <- getArgs
when (null args) $ do
putStrLn "USAGE: consoleProducer TOPIC"
exitFailure
let topic = Topic (B8.pack $ head args)
withConnection "localhost" 9092 $ \conn -> do
startOffset:_ <- offsets conn (Offsets topic 0 OffsetsLatest 10)
>>= eithe... | 762 | main = do
args <- getArgs
when (null args) $ do
putStrLn "USAGE: consoleProducer TOPIC"
exitFailure
let topic = Topic (B8.pack $ head args)
withConnection "localhost" 9092 $ \conn -> do
startOffset:_ <- offsets conn (Offsets topic 0 OffsetsLatest 10)
>>= either (fail . show... | 748 | false | true | 0 | 15 | 233 | 273 | 130 | 143 | null | null |
seishun/aoc2016 | day2.hs | mit | direction :: Char -> Complex Float
direction 'U' = 0 :+ 1 | 57 | direction :: Char -> Complex Float
direction 'U' = 0 :+ 1 | 57 | direction 'U' = 0 :+ 1 | 22 | false | true | 0 | 6 | 11 | 25 | 12 | 13 | null | null |
cabrera/hdbc-postgresql | Database/HDBC/PostgreSQL/Parser.hs | bsd-3-clause | qidentifier :: GenParser Char st [Char]
qidentifier = do _ <- char '"'
s <- many (noneOf "\"")
_ <- char '"'
return $ "\"" ++ s ++ "\"" | 186 | qidentifier :: GenParser Char st [Char]
qidentifier = do _ <- char '"'
s <- many (noneOf "\"")
_ <- char '"'
return $ "\"" ++ s ++ "\"" | 186 | qidentifier = do _ <- char '"'
s <- many (noneOf "\"")
_ <- char '"'
return $ "\"" ++ s ++ "\"" | 146 | false | true | 1 | 10 | 79 | 76 | 33 | 43 | null | null |
wxwxwwxxx/ghc | testsuite/tests/typecheck/should_fail/tcfail171.hs | bsd-3-clause | phex :: a -> b
phex x = printf "0x%x" x | 39 | phex :: a -> b
phex x = printf "0x%x" x | 39 | phex x = printf "0x%x" x | 24 | false | true | 0 | 5 | 10 | 23 | 11 | 12 | null | null |
seckcoder/vector | Data/Vector/Storable.hs | bsd-3-clause | -- NOTE: eta-expanded due to http://hackage.haskell.org/trac/ghc/ticket/4120
create p = G.create p | 98 | create p = G.create p | 21 | create p = G.create p | 21 | true | false | 1 | 5 | 10 | 19 | 7 | 12 | null | null |
ktoso/xmonad-conf | xmonad.hs | mit | leftDellFlags = "-h 24 -w 1280 -ta l" | 38 | leftDellFlags = "-h 24 -w 1280 -ta l" | 38 | leftDellFlags = "-h 24 -w 1280 -ta l" | 38 | false | false | 0 | 4 | 8 | 6 | 3 | 3 | null | null |
duplode/threepenny-gui | src/Graphics/UI/Threepenny/SVG/Attributes.hs | bsd-3-clause | v_hanging = fltAttr "v-hanging" | 51 | v_hanging = fltAttr "v-hanging" | 51 | v_hanging = fltAttr "v-hanging" | 51 | false | false | 1 | 5 | 23 | 12 | 4 | 8 | null | null |
CulpaBS/wbBach | src/futhark-test.hs | bsd-3-clause | compareResult _ (Succeeds _) (ErrorResult code err) =
throwError $ "Program failed with error code " <>
T.pack (show code) <> " and stderr:\n " <> err | 155 | compareResult _ (Succeeds _) (ErrorResult code err) =
throwError $ "Program failed with error code " <>
T.pack (show code) <> " and stderr:\n " <> err | 155 | compareResult _ (Succeeds _) (ErrorResult code err) =
throwError $ "Program failed with error code " <>
T.pack (show code) <> " and stderr:\n " <> err | 155 | false | false | 5 | 6 | 31 | 58 | 26 | 32 | null | null |
GaloisInc/halvm-ghc | compiler/typecheck/TcType.hs | bsd-3-clause | isTauTy (CoercionTy _) = False | 37 | isTauTy (CoercionTy _) = False | 37 | isTauTy (CoercionTy _) = False | 37 | false | false | 0 | 6 | 11 | 16 | 7 | 9 | null | null |
a143753/AOJ | 0642.hs | apache-2.0 | ans' (0:xs) = ans' xs | 21 | ans' (0:xs) = ans' xs | 21 | ans' (0:xs) = ans' xs | 21 | false | false | 0 | 6 | 4 | 20 | 9 | 11 | null | null |
shlevy/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | times_RDR = varQual_RDR gHC_NUM (fsLit "*") | 58 | times_RDR = varQual_RDR gHC_NUM (fsLit "*") | 58 | times_RDR = varQual_RDR gHC_NUM (fsLit "*") | 58 | false | false | 0 | 7 | 20 | 17 | 8 | 9 | null | null |
liyanchang/scheme-in-haskell | src/chp7.hs | mit | equal :: [LispVal] -> ThrowsError LispVal
equal [arg1, arg2] = do
primitiveEquals <- liftM or $ mapM (unpackEquals arg1 arg2)
[AnyUnpacker unpackNum, AnyUnpacker unpackStr, AnyUnpacker unpackBool]
eqvEquals <- eqv [arg1, arg2]
return $ Bool $ (primitiveEquals || let (Bool x) = eqvEquals in x) | 313 | equal :: [LispVal] -> ThrowsError LispVal
equal [arg1, arg2] = do
primitiveEquals <- liftM or $ mapM (unpackEquals arg1 arg2)
[AnyUnpacker unpackNum, AnyUnpacker unpackStr, AnyUnpacker unpackBool]
eqvEquals <- eqv [arg1, arg2]
return $ Bool $ (primitiveEquals || let (Bool x) = eqvEquals in x) | 313 | equal [arg1, arg2] = do
primitiveEquals <- liftM or $ mapM (unpackEquals arg1 arg2)
[AnyUnpacker unpackNum, AnyUnpacker unpackStr, AnyUnpacker unpackBool]
eqvEquals <- eqv [arg1, arg2]
return $ Bool $ (primitiveEquals || let (Bool x) = eqvEquals in x) | 271 | false | true | 0 | 15 | 63 | 127 | 62 | 65 | null | null |
kite-lang/kite | src/Kite/Environment.hs | mit | freshTypeVar :: String -> TC Type
freshTypeVar ide = do
env <- get
let count = symCount env
put env{symCount = succ count}
return $ PTypeVar (ide ++ show count)
-- | Remove a symbol and its type from the `Environment` | 227 | freshTypeVar :: String -> TC Type
freshTypeVar ide = do
env <- get
let count = symCount env
put env{symCount = succ count}
return $ PTypeVar (ide ++ show count)
-- | Remove a symbol and its type from the `Environment` | 227 | freshTypeVar ide = do
env <- get
let count = symCount env
put env{symCount = succ count}
return $ PTypeVar (ide ++ show count)
-- | Remove a symbol and its type from the `Environment` | 193 | false | true | 0 | 12 | 50 | 83 | 37 | 46 | null | null |
pparkkin/eta | compiler/ETA/StgSyn/CoreToStg.hs | bsd-3-clause | topLevelBound _ = False | 41 | topLevelBound _ = False | 41 | topLevelBound _ = False | 41 | false | false | 0 | 5 | 21 | 9 | 4 | 5 | null | null |
nagyf/hs-chess | src/SAN.hs | mit | castling :: PieceColor -> Parser Move
castling color =
try (queenSideCastle color) <|>
try (kingSideCastle color) | 121 | castling :: PieceColor -> Parser Move
castling color =
try (queenSideCastle color) <|>
try (kingSideCastle color) | 121 | castling color =
try (queenSideCastle color) <|>
try (kingSideCastle color) | 83 | false | true | 0 | 7 | 23 | 48 | 21 | 27 | null | null |
matonix/pfds | src/PFDS/Sec9/Ex12.hs | bsd-3-clause | simpleDec (Threes i : ds) = Two : threes (i - 1) ds | 51 | simpleDec (Threes i : ds) = Two : threes (i - 1) ds | 51 | simpleDec (Threes i : ds) = Two : threes (i - 1) ds | 51 | false | false | 0 | 8 | 12 | 35 | 17 | 18 | null | null |
dmjio/miso | src/Miso/Router.hs | bsd-3-clause | uriToLocation :: URI -> Location
uriToLocation uri = Location
{ locPath = decodePathSegments $ BS.pack (uriPath uri)
, locQuery = parseQuery $ BS.pack (uriQuery uri)
} | 173 | uriToLocation :: URI -> Location
uriToLocation uri = Location
{ locPath = decodePathSegments $ BS.pack (uriPath uri)
, locQuery = parseQuery $ BS.pack (uriQuery uri)
} | 173 | uriToLocation uri = Location
{ locPath = decodePathSegments $ BS.pack (uriPath uri)
, locQuery = parseQuery $ BS.pack (uriQuery uri)
} | 140 | false | true | 0 | 11 | 31 | 66 | 33 | 33 | null | null |
vincenthz/hs-xenstore | Xenstore.hs | bsd-3-clause | main = do
(a,b) <- withXS $ \xsh -> do
v1 <- xsRead xsh "/local/domain/0/name"
v2 <- tryXS $ xsRead xsh "/local/domain/0/somethingdoesntexist"
return (v1,v2)
putStrLn $ show a
putStrLn $ show b | 202 | main = do
(a,b) <- withXS $ \xsh -> do
v1 <- xsRead xsh "/local/domain/0/name"
v2 <- tryXS $ xsRead xsh "/local/domain/0/somethingdoesntexist"
return (v1,v2)
putStrLn $ show a
putStrLn $ show b | 202 | main = do
(a,b) <- withXS $ \xsh -> do
v1 <- xsRead xsh "/local/domain/0/name"
v2 <- tryXS $ xsRead xsh "/local/domain/0/somethingdoesntexist"
return (v1,v2)
putStrLn $ show a
putStrLn $ show b | 202 | false | false | 0 | 14 | 40 | 88 | 41 | 47 | null | null |
Ertruby/PPFinalProject | src/Grammar.hs | gpl-2.0 | doK = Keyword "do" | 26 | doK = Keyword "do" | 26 | doK = Keyword "do" | 26 | false | false | 0 | 5 | 11 | 9 | 4 | 5 | null | null |
limaner2002/EPC-tools | RapidFire/src/Appian/Lens.hs | bsd-3-clause | checkResult (Error msg) _ = Error msg | 37 | checkResult (Error msg) _ = Error msg | 37 | checkResult (Error msg) _ = Error msg | 37 | false | false | 0 | 7 | 6 | 20 | 9 | 11 | null | null |
swfrench/GSLInterp | tests/Test.hs | bsd-3-clause | interpTestSuite :: IO ()
interpTestSuite = do
-- create the test data
let nx = 21
dx = 2.0 * pi / (nx - 1)
xs = V.map (dx*) $ V.fromList [0..nx - 1]
ys = V.map sin xs
vf = 0.0 -- out-of-bounds fill value
xf = 3.0 * pi -- out-of-bounds value to... | 767 | interpTestSuite :: IO ()
interpTestSuite = do
-- create the test data
let nx = 21
dx = 2.0 * pi / (nx - 1)
xs = V.map (dx*) $ V.fromList [0..nx - 1]
ys = V.map sin xs
vf = 0.0 -- out-of-bounds fill value
xf = 3.0 * pi -- out-of-bounds value to... | 767 | interpTestSuite = do
-- create the test data
let nx = 21
dx = 2.0 * pi / (nx - 1)
xs = V.map (dx*) $ V.fromList [0..nx - 1]
ys = V.map sin xs
vf = 0.0 -- out-of-bounds fill value
xf = 3.0 * pi -- out-of-bounds value to check
it <- randomRIO ... | 742 | false | true | 0 | 13 | 241 | 234 | 119 | 115 | null | null |
asivitz/Hickory | Hickory/Color.hs | mit | rgba :: Scalar -> Scalar -> Scalar -> Scalar -> Color
rgba = V4 | 63 | rgba :: Scalar -> Scalar -> Scalar -> Scalar -> Color
rgba = V4 | 63 | rgba = V4 | 9 | false | true | 0 | 8 | 13 | 27 | 14 | 13 | null | null |
wdanilo/haskell-language-c | src/Language/C/Syntax/Ops.hs | bsd-3-clause | isCmpOp :: CBinaryOp -> Bool
isCmpOp op = op `elem` [ CLeqOp, CGeqOp, CLeOp, CGrOp, CEqOp, CNeqOp ] | 99 | isCmpOp :: CBinaryOp -> Bool
isCmpOp op = op `elem` [ CLeqOp, CGeqOp, CLeOp, CGrOp, CEqOp, CNeqOp ] | 99 | isCmpOp op = op `elem` [ CLeqOp, CGeqOp, CLeOp, CGrOp, CEqOp, CNeqOp ] | 70 | false | true | 0 | 6 | 17 | 42 | 25 | 17 | null | null |
tphyahoo/happs-tutorial | src/UniqueLabelsGraph.hs | bsd-3-clause | labelExists l g = let (mcontext,gr) = matchLabel l g
in if (isJust mcontext)
then True
else False | 161 | labelExists l g = let (mcontext,gr) = matchLabel l g
in if (isJust mcontext)
then True
else False | 161 | labelExists l g = let (mcontext,gr) = matchLabel l g
in if (isJust mcontext)
then True
else False | 161 | false | false | 1 | 9 | 81 | 53 | 24 | 29 | null | null |
mathhun/stack | src/Stack/Types/PackageName.hs | bsd-3-clause | packageNameParser :: Parser PackageName
packageNameParser =
fmap (PackageName . S8.pack)
(appending (many1 (satisfy isAlphaNum))
(concating (many (alternating
(pured (satisfy isAlphaNum))
(appending (pured (satisfy (=... | 487 | packageNameParser :: Parser PackageName
packageNameParser =
fmap (PackageName . S8.pack)
(appending (many1 (satisfy isAlphaNum))
(concating (many (alternating
(pured (satisfy isAlphaNum))
(appending (pured (satisfy (=... | 487 | packageNameParser =
fmap (PackageName . S8.pack)
(appending (many1 (satisfy isAlphaNum))
(concating (many (alternating
(pured (satisfy isAlphaNum))
(appending (pured (satisfy (== '-')))
... | 447 | false | true | 0 | 19 | 201 | 139 | 69 | 70 | null | null |
sru-systems/protobuf-simple | src/Parser/ProtoParser.hs | mit | fieldDeprecated :: FieldDesc -> Parsec String u FieldDesc
fieldDeprecated s =
getFieldOption "deprecated" bool >> return s | 126 | fieldDeprecated :: FieldDesc -> Parsec String u FieldDesc
fieldDeprecated s =
getFieldOption "deprecated" bool >> return s | 126 | fieldDeprecated s =
getFieldOption "deprecated" bool >> return s | 68 | false | true | 0 | 7 | 20 | 42 | 18 | 24 | null | null |
bgw/hs-rpal | src/Evaluator/Environment.hs | gpl-3.0 | primativeOpLookup (AstAug _ _) =
AstEvaluatable (\a -> return $ AstEvaluatable $ f a)
where
f (AstTau a) b = return $ AstTau $ a ++ [b]
f AstNil b = return $ AstTau [b]
f _ _ = error "aug called with non-tuple type" | 263 | primativeOpLookup (AstAug _ _) =
AstEvaluatable (\a -> return $ AstEvaluatable $ f a)
where
f (AstTau a) b = return $ AstTau $ a ++ [b]
f AstNil b = return $ AstTau [b]
f _ _ = error "aug called with non-tuple type" | 263 | primativeOpLookup (AstAug _ _) =
AstEvaluatable (\a -> return $ AstEvaluatable $ f a)
where
f (AstTau a) b = return $ AstTau $ a ++ [b]
f AstNil b = return $ AstTau [b]
f _ _ = error "aug called with non-tuple type" | 263 | false | false | 2 | 9 | 92 | 105 | 52 | 53 | null | null |
rleshchinskiy/vector | Data/Vector/Fusion/Bundle/Monadic.hs | bsd-3-clause | b !! i = sElems b S.!! i | 24 | b !! i = sElems b S.!! i | 24 | b !! i = sElems b S.!! i | 24 | false | false | 2 | 6 | 7 | 21 | 9 | 12 | null | null |
jeroenk/iTRSsVisualised | visualization.hs | agpl-3.0 | main :: IO ()
main = do
-- Initialize reduction
(program_name, args) <- getArgsAndInitialize
reduction_file <- case args of
[fn] -> return (if drop (length fn - 3) fn == ".hs"
then take (length fn - 3) fn
else fn)
_ -> error $ "usage: " +... | 1,704 | main :: IO ()
main = do
-- Initialize reduction
(program_name, args) <- getArgsAndInitialize
reduction_file <- case args of
[fn] -> return (if drop (length fn - 3) fn == ".hs"
then take (length fn - 3) fn
else fn)
_ -> error $ "usage: " +... | 1,704 | main = do
-- Initialize reduction
(program_name, args) <- getArgsAndInitialize
reduction_file <- case args of
[fn] -> return (if drop (length fn - 3) fn == ".hs"
then take (length fn - 3) fn
else fn)
_ -> error $ "usage: " ++ program_name... | 1,690 | false | true | 0 | 18 | 494 | 404 | 191 | 213 | null | null |
grantslatton/JustParse | src/Data/JustParse/Char.hs | unlicense | -- | Parse any char that is Latin-1.
latin1 :: Stream s Char => Parser s Char
latin1 = satisfy isLatin1 | 104 | latin1 :: Stream s Char => Parser s Char
latin1 = satisfy isLatin1 | 67 | latin1 = satisfy isLatin1 | 25 | true | true | 0 | 6 | 21 | 29 | 14 | 15 | null | null |
rickynils/pvd | Pvc.hs | bsd-3-clause | helpAct _ _ = printCmdHelp (commandMap Map.! "help") | 52 | helpAct _ _ = printCmdHelp (commandMap Map.! "help") | 52 | helpAct _ _ = printCmdHelp (commandMap Map.! "help") | 52 | false | false | 1 | 7 | 7 | 23 | 11 | 12 | null | null |
ndmitchell/qed | src/Proof/QED/Type.hs | bsd-3-clause | runBind :: Bind () -> [(Var,Exp)]
runBind (Bind x) = execWriter x | 65 | runBind :: Bind () -> [(Var,Exp)]
runBind (Bind x) = execWriter x | 65 | runBind (Bind x) = execWriter x | 31 | false | true | 0 | 7 | 11 | 41 | 21 | 20 | null | null |
glaebhoerl/stageless | src/Main.hs | mit | llvmAst :: Command LLVM.Module
llvmAst = liftM LLVM.translateFunctions ir | 73 | llvmAst :: Command LLVM.Module
llvmAst = liftM LLVM.translateFunctions ir | 73 | llvmAst = liftM LLVM.translateFunctions ir | 42 | false | true | 0 | 6 | 8 | 23 | 11 | 12 | null | null |
phaazon/kmeans-vector | Math/KMeans.hs | bsd-3-clause | computeClusters :: [[V.Vector Double]] -> [Cluster]
computeClusters = zipWith Cluster [0..] . map f
where f (x:xs) = let (n, v) = L.foldl' (\(k, s) v' -> (k+1, V.zipWith (+) s v')) (1, x) xs
in V.map (\x -> x / (fromIntegral n)) v
| 253 | computeClusters :: [[V.Vector Double]] -> [Cluster]
computeClusters = zipWith Cluster [0..] . map f
where f (x:xs) = let (n, v) = L.foldl' (\(k, s) v' -> (k+1, V.zipWith (+) s v')) (1, x) xs
in V.map (\x -> x / (fromIntegral n)) v
| 253 | computeClusters = zipWith Cluster [0..] . map f
where f (x:xs) = let (n, v) = L.foldl' (\(k, s) v' -> (k+1, V.zipWith (+) s v')) (1, x) xs
in V.map (\x -> x / (fromIntegral n)) v
| 201 | false | true | 0 | 14 | 66 | 156 | 84 | 72 | null | null |
zaxtax/hakaru | haskell/Language/Hakaru/Sample.hs | bsd-3-clause | evaluateMeasureOp Beta = \(e1 :* e2 :* End) env ->
case (evaluate e1 env, evaluate e2 env) of
(VProb v1, VProb v2) -> VMeasure $ \ p g -> do
x <- MWCD.beta (LF.fromLogFloat v1) (LF.fromLogFloat v2) g
return $ Just (VProb $ LF.logFloat x, p)
_ -> error "evaluateMeasureOp: the impossible happ... | 325 | evaluateMeasureOp Beta = \(e1 :* e2 :* End) env ->
case (evaluate e1 env, evaluate e2 env) of
(VProb v1, VProb v2) -> VMeasure $ \ p g -> do
x <- MWCD.beta (LF.fromLogFloat v1) (LF.fromLogFloat v2) g
return $ Just (VProb $ LF.logFloat x, p)
_ -> error "evaluateMeasureOp: the impossible happ... | 325 | evaluateMeasureOp Beta = \(e1 :* e2 :* End) env ->
case (evaluate e1 env, evaluate e2 env) of
(VProb v1, VProb v2) -> VMeasure $ \ p g -> do
x <- MWCD.beta (LF.fromLogFloat v1) (LF.fromLogFloat v2) g
return $ Just (VProb $ LF.logFloat x, p)
_ -> error "evaluateMeasureOp: the impossible happ... | 325 | false | false | 4 | 13 | 81 | 142 | 70 | 72 | null | null |
TomMD/ghc | compiler/utils/Outputable.hs | bsd-3-clause | doubleQuotes d = SDoc $ Pretty.doubleQuotes . runSDoc d | 56 | doubleQuotes d = SDoc $ Pretty.doubleQuotes . runSDoc d | 56 | doubleQuotes d = SDoc $ Pretty.doubleQuotes . runSDoc d | 56 | false | false | 0 | 7 | 9 | 22 | 10 | 12 | null | null |
urbanslug/ghc | compiler/prelude/THNames.hs | bsd-3-clause | liftStringIdKey :: Unique
liftStringIdKey = mkPreludeMiscIdUnique 228 | 73 | liftStringIdKey :: Unique
liftStringIdKey = mkPreludeMiscIdUnique 228 | 73 | liftStringIdKey = mkPreludeMiscIdUnique 228 | 47 | false | true | 0 | 6 | 10 | 20 | 8 | 12 | null | null |
dolio/primitive | Data/Primitive/MutVar.hs | bsd-3-clause | modifyMutVar' (MutVar mv#) g = primitive_ $ \s# ->
case readMutVar# mv# s# of
(# s'#, a #) -> let a' = g a in a' `seq` writeMutVar# mv# a' s'# | 148 | modifyMutVar' (MutVar mv#) g = primitive_ $ \s# ->
case readMutVar# mv# s# of
(# s'#, a #) -> let a' = g a in a' `seq` writeMutVar# mv# a' s'# | 148 | modifyMutVar' (MutVar mv#) g = primitive_ $ \s# ->
case readMutVar# mv# s# of
(# s'#, a #) -> let a' = g a in a' `seq` writeMutVar# mv# a' s'# | 148 | false | false | 0 | 14 | 36 | 73 | 36 | 37 | null | null |
cartazio/omega | util/BuildSpecific.hs | bsd-3-clause | manualDir home = rootDir home ++ "doc/" | 39 | manualDir home = rootDir home ++ "doc/" | 39 | manualDir home = rootDir home ++ "doc/" | 39 | false | false | 1 | 6 | 6 | 20 | 7 | 13 | null | null |
bergey/plots | examples/stocks.hs | bsd-3-clause | make :: Diagram B -> IO ()
make = renderRasterific "examples/stocks.png" (mkWidth 600) . frame 30 | 97 | make :: Diagram B -> IO ()
make = renderRasterific "examples/stocks.png" (mkWidth 600) . frame 30 | 97 | make = renderRasterific "examples/stocks.png" (mkWidth 600) . frame 30 | 70 | false | true | 0 | 8 | 15 | 41 | 19 | 22 | null | null |
artems/htorr | src/Protocol/Peer.hs | bsd-3-clause | g16be :: (Integral a) => Get a
g16be = fromIntegral <$> Get.getWord16be | 71 | g16be :: (Integral a) => Get a
g16be = fromIntegral <$> Get.getWord16be | 71 | g16be = fromIntegral <$> Get.getWord16be | 40 | false | true | 0 | 7 | 11 | 35 | 16 | 19 | null | null |
sdiehl/ghc | testsuite/tests/dependent/should_compile/dynamic-paper.hs | bsd-3-clause | compareTypeRep = undefined | 26 | compareTypeRep = undefined | 26 | compareTypeRep = undefined | 26 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
bergmark/wl-pprint | Text/PrettyPrint/Leijen.hs | bsd-2-clause | putDoc :: Doc -> IO ()
putDoc doc = hPutDoc stdout doc | 67 | putDoc :: Doc -> IO ()
putDoc doc = hPutDoc stdout doc | 67 | putDoc doc = hPutDoc stdout doc | 44 | false | true | 0 | 8 | 24 | 32 | 14 | 18 | null | null |
markusle/pasty | src/CommandLineParser.hs | gpl-3.0 | parse_column acc fileItems =
let
(next,raw_rest) = break ( == ',' ) fileItems
rest = strip_leading_char ',' raw_rest
in
parse_column (read next:acc) rest | 175 | parse_column acc fileItems =
let
(next,raw_rest) = break ( == ',' ) fileItems
rest = strip_leading_char ',' raw_rest
in
parse_column (read next:acc) rest | 175 | parse_column acc fileItems =
let
(next,raw_rest) = break ( == ',' ) fileItems
rest = strip_leading_char ',' raw_rest
in
parse_column (read next:acc) rest | 175 | false | false | 0 | 10 | 44 | 63 | 31 | 32 | null | null |
rueshyna/gogol | gogol-sheets/gen/Network/Google/Sheets/Types/Product.hs | mpl-2.0 | -- | The number of cells updated.
uvrUpdatedCells :: Lens' UpdateValuesResponse (Maybe Int32)
uvrUpdatedCells
= lens _uvrUpdatedCells
(\ s a -> s{_uvrUpdatedCells = a})
. mapping _Coerce | 200 | uvrUpdatedCells :: Lens' UpdateValuesResponse (Maybe Int32)
uvrUpdatedCells
= lens _uvrUpdatedCells
(\ s a -> s{_uvrUpdatedCells = a})
. mapping _Coerce | 166 | uvrUpdatedCells
= lens _uvrUpdatedCells
(\ s a -> s{_uvrUpdatedCells = a})
. mapping _Coerce | 106 | true | true | 2 | 8 | 40 | 59 | 28 | 31 | null | null |
tolysz/prepare-ghcjs | spec-lts8/cabal/Cabal/Distribution/Simple/Program/Db.hs | bsd-3-clause | emptyProgramDb :: ProgramDb
emptyProgramDb = ProgramDb Map.empty defaultProgramSearchPath Map.empty | 99 | emptyProgramDb :: ProgramDb
emptyProgramDb = ProgramDb Map.empty defaultProgramSearchPath Map.empty | 99 | emptyProgramDb = ProgramDb Map.empty defaultProgramSearchPath Map.empty | 71 | false | true | 0 | 6 | 8 | 22 | 11 | 11 | null | null |
AlexGagne/evecalendar | src/Eve/Internal/Utils/XmlReader.hs | mit | xmlToCalendarEventArray :: Text -> [CalendarEvent]
xmlToCalendarEventArray xml = map calendarEventFromElement calendarElements
where
xmlDocument = parseXML xml
calendarElements = concatMap (findElements $ simpleQName "row") (onlyElems xmlDocument) | 257 | xmlToCalendarEventArray :: Text -> [CalendarEvent]
xmlToCalendarEventArray xml = map calendarEventFromElement calendarElements
where
xmlDocument = parseXML xml
calendarElements = concatMap (findElements $ simpleQName "row") (onlyElems xmlDocument) | 257 | xmlToCalendarEventArray xml = map calendarEventFromElement calendarElements
where
xmlDocument = parseXML xml
calendarElements = concatMap (findElements $ simpleQName "row") (onlyElems xmlDocument) | 206 | false | true | 1 | 8 | 34 | 65 | 31 | 34 | null | null |
sgord512/Rmmbr | dist/build/autogen/Paths_rmmbr.hs | bsd-3-clause | version :: Version
version = Version {versionBranch = [1,0], versionTags = []} | 78 | version :: Version
version = Version {versionBranch = [1,0], versionTags = []} | 78 | version = Version {versionBranch = [1,0], versionTags = []} | 59 | false | true | 0 | 7 | 11 | 33 | 20 | 13 | null | null |
horia141/bachelor-thesis | dev/SeqAsm/Utils.hs | mit | digitToBase2 "o" '7' = Right "111" | 34 | digitToBase2 "o" '7' = Right "111" | 34 | digitToBase2 "o" '7' = Right "111" | 34 | false | false | 0 | 5 | 5 | 14 | 6 | 8 | null | null |
bitc/omegagb | src/Cpu.hs | gpl-2.0 | mcti 0x17 _ = (RLA, 4, 0) | 62 | mcti 0x17 _ = (RLA, 4, 0) | 62 | mcti 0x17 _ = (RLA, 4, 0) | 62 | false | false | 0 | 5 | 43 | 22 | 11 | 11 | null | null |
jwiegley/ghc-release | libraries/Cabal/cabal/Distribution/Version.hs | gpl-3.0 | -- | The version range @> v@
--
-- > withinRange v' (laterVersion v) = v' > v
--
laterVersion :: Version -> VersionRange
laterVersion = LaterVersion | 148 | laterVersion :: Version -> VersionRange
laterVersion = LaterVersion | 67 | laterVersion = LaterVersion | 27 | true | true | 0 | 7 | 26 | 26 | 13 | 13 | null | null |
ExternalReality/SednaDBXML | src/Database/SednaExceptions.hs | gpl-3.0 | sednaConnectionExceptionFromException :: Exception e => SomeException -> Maybe e
sednaConnectionExceptionFromException x = do
SednaConnectionException a <- fromException x
cast a
-------------------------------------------------------------------------------- | 264 | sednaConnectionExceptionFromException :: Exception e => SomeException -> Maybe e
sednaConnectionExceptionFromException x = do
SednaConnectionException a <- fromException x
cast a
-------------------------------------------------------------------------------- | 264 | sednaConnectionExceptionFromException x = do
SednaConnectionException a <- fromException x
cast a
-------------------------------------------------------------------------------- | 183 | false | true | 0 | 8 | 25 | 48 | 21 | 27 | null | null |
DougBurke/swish | tests/RDFDatatypeXsdIntegerTest.hs | lgpl-2.1 | pv01bwd :: [[B.Builder]]
pv01bwd =
[ [ "_:a a :PassengerVehicle . "
, "_:a :totalCapacity \"50\"^^xsd:integer . "
, "_:a :seatedCapacity \"30\"^^xsd:integer . "
]
, [ "_:a a :PassengerVehicle . "
, "_:a :totalCapacity \"50\"^^xsd:integer . "
, "_:a :standingCapacity \"20\"^^xsd:int... | 342 | pv01bwd :: [[B.Builder]]
pv01bwd =
[ [ "_:a a :PassengerVehicle . "
, "_:a :totalCapacity \"50\"^^xsd:integer . "
, "_:a :seatedCapacity \"30\"^^xsd:integer . "
]
, [ "_:a a :PassengerVehicle . "
, "_:a :totalCapacity \"50\"^^xsd:integer . "
, "_:a :standingCapacity \"20\"^^xsd:int... | 342 | pv01bwd =
[ [ "_:a a :PassengerVehicle . "
, "_:a :totalCapacity \"50\"^^xsd:integer . "
, "_:a :seatedCapacity \"30\"^^xsd:integer . "
]
, [ "_:a a :PassengerVehicle . "
, "_:a :totalCapacity \"50\"^^xsd:integer . "
, "_:a :standingCapacity \"20\"^^xsd:integer . "
]
] | 317 | false | true | 0 | 9 | 93 | 50 | 28 | 22 | null | null |
osa1/Idris-dev | src/Idris/AbsSyntaxTree.hs | bsd-3-clause | showDeclImp o (PInstance _ _ _ _ cs n _ _ t _ ds)
= text "instance" <+> text (show cs) <+> text (show n) <+> prettyImp o t <> line <> showDecls o ds | 151 | showDeclImp o (PInstance _ _ _ _ cs n _ _ t _ ds)
= text "instance" <+> text (show cs) <+> text (show n) <+> prettyImp o t <> line <> showDecls o ds | 151 | showDeclImp o (PInstance _ _ _ _ cs n _ _ t _ ds)
= text "instance" <+> text (show cs) <+> text (show n) <+> prettyImp o t <> line <> showDecls o ds | 151 | false | false | 0 | 12 | 37 | 89 | 41 | 48 | null | null |
eyeinsky/m5 | baggage/Expand2.hs | mit | prepend w raw = error "prepend: empty raw" | 42 | prepend w raw = error "prepend: empty raw" | 42 | prepend w raw = error "prepend: empty raw" | 42 | false | false | 1 | 5 | 7 | 18 | 6 | 12 | null | null |
brendanhay/gogol | gogol-cloudidentity/gen/Network/Google/CloudIdentity/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'GoogleAppsCloudidentityDevicesV1Device' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'gacdvdAndroidSpecificAttributes'
--
-- * 'gacdvdManufacturer'
--
-- * 'gacdvdAssetTag'
--
-- * 'gacdvdBuildNumber'
--
-- ... | 2,207 | googleAppsCloudidentityDevicesV1Device
:: GoogleAppsCloudidentityDevicesV1Device
googleAppsCloudidentityDevicesV1Device =
GoogleAppsCloudidentityDevicesV1Device'
{ _gacdvdAndroidSpecificAttributes = Nothing
, _gacdvdManufacturer = Nothing
, _gacdvdAssetTag = Nothing
, _gacdvdBuildNumber = Nothing
... | 1,193 | googleAppsCloudidentityDevicesV1Device =
GoogleAppsCloudidentityDevicesV1Device'
{ _gacdvdAndroidSpecificAttributes = Nothing
, _gacdvdManufacturer = Nothing
, _gacdvdAssetTag = Nothing
, _gacdvdBuildNumber = Nothing
, _gacdvdCompromisedState = Nothing
, _gacdvdEncryptionState = Nothing
, ... | 1,108 | true | true | 1 | 7 | 382 | 247 | 179 | 68 | null | null |
kojiromike/Idris-dev | src/Idris/Reflection.hs | bsd-3-clause | reflectName (NS n ns)
= reflCall "NS" [ reflectName n
, foldr (\ n s ->
raw_apply ( Var $ sNS (sUN "::") ["List", "Prelude"] )
[ RConstant StrType, RConstant (Str n), s ])
( raw_apply ( Var $ sNS (sUN "N... | 472 | reflectName (NS n ns)
= reflCall "NS" [ reflectName n
, foldr (\ n s ->
raw_apply ( Var $ sNS (sUN "::") ["List", "Prelude"] )
[ RConstant StrType, RConstant (Str n), s ])
( raw_apply ( Var $ sNS (sUN "N... | 472 | reflectName (NS n ns)
= reflCall "NS" [ reflectName n
, foldr (\ n s ->
raw_apply ( Var $ sNS (sUN "::") ["List", "Prelude"] )
[ RConstant StrType, RConstant (Str n), s ])
( raw_apply ( Var $ sNS (sUN "N... | 472 | false | false | 0 | 15 | 257 | 144 | 74 | 70 | null | null |
melted/llvm-pretty | src/Text/LLVM/AST.hs | bsd-3-clause | ppArithOp (SDiv e) = text "sdiv" <+> ppExact e | 51 | ppArithOp (SDiv e) = text "sdiv" <+> ppExact e | 51 | ppArithOp (SDiv e) = text "sdiv" <+> ppExact e | 51 | false | false | 0 | 6 | 13 | 26 | 11 | 15 | null | null |
gtrogers/maybe-hero | src/MaybeHero/World.hs | bsd-3-clause | currentRoom :: World -> Room.Room
currentRoom world@(World roomMap currentRoomName _) = lookupRoom currentRoomName world | 120 | currentRoom :: World -> Room.Room
currentRoom world@(World roomMap currentRoomName _) = lookupRoom currentRoomName world | 120 | currentRoom world@(World roomMap currentRoomName _) = lookupRoom currentRoomName world | 86 | false | true | 0 | 8 | 13 | 38 | 19 | 19 | null | null |
rueshyna/gogol | gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'BigtableColumn' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'bcQualifierEncoded'
--
-- * 'bcFieldName'
--
-- * 'bcQualifierString'
--
-- * 'bcOnlyReadLatest'
--
-- * 'bcType'
--
-- * 'bcEncoding'
bigtableCo... | 575 | bigtableColumn
:: BigtableColumn
bigtableColumn =
BigtableColumn'
{ _bcQualifierEncoded = Nothing
, _bcFieldName = Nothing
, _bcQualifierString = Nothing
, _bcOnlyReadLatest = Nothing
, _bcType = Nothing
, _bcEncoding = Nothing
} | 265 | bigtableColumn =
BigtableColumn'
{ _bcQualifierEncoded = Nothing
, _bcFieldName = Nothing
, _bcQualifierString = Nothing
, _bcOnlyReadLatest = Nothing
, _bcType = Nothing
, _bcEncoding = Nothing
} | 228 | true | true | 0 | 6 | 120 | 64 | 46 | 18 | null | null |
leksah/yi | src/library/Yi/Buffer/Misc.hs | gpl-2.0 | epoch :: UTCTime
epoch = UTCTime (toEnum 0) (toEnum 0) | 54 | epoch :: UTCTime
epoch = UTCTime (toEnum 0) (toEnum 0) | 54 | epoch = UTCTime (toEnum 0) (toEnum 0) | 37 | false | true | 0 | 7 | 9 | 28 | 14 | 14 | null | null |
beni55/cryptol | src/Cryptol/ModuleSystem/Base.hs | bsd-3-clause | loadModuleByPath :: FilePath -> ModuleM T.Module
loadModuleByPath path = withPrependedSearchPath [ takeDirectory path ] $ do
let fileName = takeFileName path
-- path' is the resolved, absolute path
path' <- findFile fileName
pm <- parseModule path'
let n = thing (P.mName pm)
-- Check whether this module na... | 676 | loadModuleByPath :: FilePath -> ModuleM T.Module
loadModuleByPath path = withPrependedSearchPath [ takeDirectory path ] $ do
let fileName = takeFileName path
-- path' is the resolved, absolute path
path' <- findFile fileName
pm <- parseModule path'
let n = thing (P.mName pm)
-- Check whether this module na... | 676 | loadModuleByPath path = withPrependedSearchPath [ takeDirectory path ] $ do
let fileName = takeFileName path
-- path' is the resolved, absolute path
path' <- findFile fileName
pm <- parseModule path'
let n = thing (P.mName pm)
-- Check whether this module name has already been loaded from a different file
... | 627 | false | true | 0 | 14 | 152 | 183 | 83 | 100 | null | null |
jwiegley/lambdabot | Plugin/Free/FreeTheorem.hs | mit | rename (ThForall v ty th) = do
v' <- case ty of
TyArr _ _ -> freshFunctionName
TyCons "[]" _ -> freshListName
_ -> freshName
insertRn v v'
ty' <- rnTy ty
th' <- rename th
return $ ThForall v' ty' th' | 291 | rename (ThForall v ty th) = do
v' <- case ty of
TyArr _ _ -> freshFunctionName
TyCons "[]" _ -> freshListName
_ -> freshName
insertRn v v'
ty' <- rnTy ty
th' <- rename th
return $ ThForall v' ty' th' | 291 | rename (ThForall v ty th) = do
v' <- case ty of
TyArr _ _ -> freshFunctionName
TyCons "[]" _ -> freshListName
_ -> freshName
insertRn v v'
ty' <- rnTy ty
th' <- rename th
return $ ThForall v' ty' th' | 291 | false | false | 0 | 11 | 133 | 101 | 44 | 57 | null | null |
fmapfmapfmap/amazonka | amazonka-directconnect/gen/Network/AWS/DirectConnect/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'Location' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'lLocationName'
--
-- * 'lLocationCode'
location
:: Location
location =
Location'
{ _lLocationName = Nothing
, _lLocationCode = Nothing
... | 325 | location
:: Location
location =
Location'
{ _lLocationName = Nothing
, _lLocationCode = Nothing
} | 117 | location =
Location'
{ _lLocationName = Nothing
, _lLocationCode = Nothing
} | 92 | true | true | 0 | 7 | 72 | 42 | 24 | 18 | null | null |
chrys-h/ftag | src/FTag/DB/Basic.hs | mit | presetIDByName :: TagN -> DBAction (Maybe Int64)
presetIDByName n = fmap (fromSqlKey . entityKey) <$> getBy (PresetUName n) | 123 | presetIDByName :: TagN -> DBAction (Maybe Int64)
presetIDByName n = fmap (fromSqlKey . entityKey) <$> getBy (PresetUName n) | 123 | presetIDByName n = fmap (fromSqlKey . entityKey) <$> getBy (PresetUName n) | 74 | false | true | 0 | 9 | 17 | 54 | 25 | 29 | null | null |
jgonsior/haskellCourse | ex4.hs | gpl-3.0 | renderDocument Document{
doctype = Html5
, headSection=headSection
, bodySection=bodySection
} = "<!DOCTYPE html>" ++ renderHtml headSection ++ renderHtml bodySection | 254 | renderDocument Document{
doctype = Html5
, headSection=headSection
, bodySection=bodySection
} = "<!DOCTYPE html>" ++ renderHtml headSection ++ renderHtml bodySection | 254 | renderDocument Document{
doctype = Html5
, headSection=headSection
, bodySection=bodySection
} = "<!DOCTYPE html>" ++ renderHtml headSection ++ renderHtml bodySection | 254 | false | false | 0 | 8 | 106 | 44 | 23 | 21 | null | null |
ssaavedra/liquidhaskell | src/Language/Haskell/Liquid/Desugar710/Coverage.hs | bsd-3-clause | addTickLHsExprLetBody :: LHsExpr Id -> TM (LHsExpr Id)
addTickLHsExprLetBody e@(L pos e0) = do
d <- getDensity
case d of
TickForBreakPoints | HsLet{} <- e0 -> dont_tick_it
| otherwise -> tick_it
_other -> addTickLHsExprEvalInner e
where
tick_it = allocTickBox (ExpBox F... | 530 | addTickLHsExprLetBody :: LHsExpr Id -> TM (LHsExpr Id)
addTickLHsExprLetBody e@(L pos e0) = do
d <- getDensity
case d of
TickForBreakPoints | HsLet{} <- e0 -> dont_tick_it
| otherwise -> tick_it
_other -> addTickLHsExprEvalInner e
where
tick_it = allocTickBox (ExpBox F... | 530 | addTickLHsExprLetBody e@(L pos e0) = do
d <- getDensity
case d of
TickForBreakPoints | HsLet{} <- e0 -> dont_tick_it
| otherwise -> tick_it
_other -> addTickLHsExprEvalInner e
where
tick_it = allocTickBox (ExpBox False) False False pos $ addTickHsExpr e0
dont_tick_i... | 475 | false | true | 0 | 14 | 129 | 134 | 64 | 70 | null | null |
nevrenato/Hets_Fork | mini/Main.hs | gpl-2.0 | main = do putStrLn "Enter spec\n"
s <- readLn
p s | 69 | main = do putStrLn "Enter spec\n"
s <- readLn
p s | 69 | main = do putStrLn "Enter spec\n"
s <- readLn
p s | 69 | false | false | 1 | 8 | 30 | 29 | 10 | 19 | null | null |
hguenther/smtlib2 | Language/SMTLib2/Internals/Evaluate.hs | gpl-3.0 | gcompareArrayModel (ArrayConst _ _) _ = (GLT,GLT) | 49 | gcompareArrayModel (ArrayConst _ _) _ = (GLT,GLT) | 49 | gcompareArrayModel (ArrayConst _ _) _ = (GLT,GLT) | 49 | false | false | 0 | 7 | 6 | 25 | 13 | 12 | null | null |
xldenis/hliquid | src/HLiquid/Lexer.hs | bsd-3-clause | number :: Parser Scientific
number = L.signed sc L.number | 57 | number :: Parser Scientific
number = L.signed sc L.number | 57 | number = L.signed sc L.number | 29 | false | true | 0 | 6 | 8 | 23 | 11 | 12 | null | null |
kulshrax/haskml | src/Tags.hs | mit | datalist :: HtmlParent
datalist = newElem "datalist" | 52 | datalist :: HtmlParent
datalist = newElem "datalist" | 52 | datalist = newElem "datalist" | 29 | false | true | 0 | 5 | 6 | 14 | 7 | 7 | null | null |
input-output-hk/pos-haskell-prototype | tools/post-mortem/src/Statistics.hs | mit | runJSONFold :: FilePath -> Fold IndexedJLTimedEvent a -> IO a
runJSONFold logDir fd = runParseLogs logDir $ fold' fd | 116 | runJSONFold :: FilePath -> Fold IndexedJLTimedEvent a -> IO a
runJSONFold logDir fd = runParseLogs logDir $ fold' fd | 116 | runJSONFold logDir fd = runParseLogs logDir $ fold' fd | 54 | false | true | 0 | 7 | 18 | 42 | 19 | 23 | null | null |
andorp/bead | src/Bead/Persistence/SQL/Assignment.hs | bsd-3-clause | courseAssignments :: Domain.CourseKey -> Persist [Domain.AssignmentKey]
courseAssignments courseKey = do
assignments <- selectList [AssignmentsOfCourseCourse ==. toEntityKey courseKey] []
return $! map (toDomainKey . assignmentsOfCourseAssignment . entityVal) assignments
-- Lists all the assignment that are create... | 341 | courseAssignments :: Domain.CourseKey -> Persist [Domain.AssignmentKey]
courseAssignments courseKey = do
assignments <- selectList [AssignmentsOfCourseCourse ==. toEntityKey courseKey] []
return $! map (toDomainKey . assignmentsOfCourseAssignment . entityVal) assignments
-- Lists all the assignment that are create... | 341 | courseAssignments courseKey = do
assignments <- selectList [AssignmentsOfCourseCourse ==. toEntityKey courseKey] []
return $! map (toDomainKey . assignmentsOfCourseAssignment . entityVal) assignments
-- Lists all the assignment that are created for the given group | 269 | false | true | 0 | 11 | 43 | 76 | 37 | 39 | null | null |
pigworker/CS410-14 | Ex5/ANSIEscapes.hs | unlicense | moveCursor dir n = putStr $ "\ESC[" ++ show n ++ show dir | 58 | moveCursor dir n = putStr $ "\ESC[" ++ show n ++ show dir | 58 | moveCursor dir n = putStr $ "\ESC[" ++ show n ++ show dir | 58 | false | false | 5 | 6 | 13 | 35 | 13 | 22 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.