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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zerobuzz/hs-webdriver | src/Test/WebDriver/Commands.hs | bsd-3-clause | -- |Double click at the current mouse location.
doubleClick :: WebDriver wd => wd ()
doubleClick = noReturn $ doSessCommand methodPost "/doubleclick" Null | 154 | doubleClick :: WebDriver wd => wd ()
doubleClick = noReturn $ doSessCommand methodPost "/doubleclick" Null | 106 | doubleClick = noReturn $ doSessCommand methodPost "/doubleclick" Null | 69 | true | true | 0 | 7 | 22 | 35 | 17 | 18 | null | null |
tom-szczarkowski/matasano-crypto-puzzles-solutions | set4/MD4.hs | mit | md4pad msg = msg ++
md4PadZero (length msg) ++
md4PadLength (length msg) | 100 | md4pad msg = msg ++
md4PadZero (length msg) ++
md4PadLength (length msg) | 100 | md4pad msg = msg ++
md4PadZero (length msg) ++
md4PadLength (length msg) | 100 | false | false | 3 | 7 | 39 | 40 | 16 | 24 | null | null |
pparkkin/eta | compiler/ETA/StgSyn/CoreToStg.hs | bsd-3-clause | unionFVInfos :: [FreeVarsInfo] -> FreeVarsInfo
unionFVInfos fvs = foldr unionFVInfo emptyFVInfo fvs | 99 | unionFVInfos :: [FreeVarsInfo] -> FreeVarsInfo
unionFVInfos fvs = foldr unionFVInfo emptyFVInfo fvs | 99 | unionFVInfos fvs = foldr unionFVInfo emptyFVInfo fvs | 52 | false | true | 0 | 7 | 11 | 33 | 15 | 18 | null | null |
Cosocket-LLC/kahn | v2.0/src/KAHN/Config.hs | bsd-3-clause | confopts :: [OptDescr (Config -> IO(Config))]
confopts =
[ Option ['c'] ["config"]
(ReqArg (\ f _ -> loadConfigFile f) "FILE")
"load configuration FILE"
, Option ['k'] ["kbinitstr"]
(ReqArg (\ f opts -> return opts { cfgKBInitStr = f }) "KBINITSTR")
"initial knowledgebase query KBINITSTR"
... | 1,123 | confopts :: [OptDescr (Config -> IO(Config))]
confopts =
[ Option ['c'] ["config"]
(ReqArg (\ f _ -> loadConfigFile f) "FILE")
"load configuration FILE"
, Option ['k'] ["kbinitstr"]
(ReqArg (\ f opts -> return opts { cfgKBInitStr = f }) "KBINITSTR")
"initial knowledgebase query KBINITSTR"
... | 1,123 | confopts =
[ Option ['c'] ["config"]
(ReqArg (\ f _ -> loadConfigFile f) "FILE")
"load configuration FILE"
, Option ['k'] ["kbinitstr"]
(ReqArg (\ f opts -> return opts { cfgKBInitStr = f }) "KBINITSTR")
"initial knowledgebase query KBINITSTR"
, Option ['b'] ["bbin"]
(ReqArg (\ f opt... | 1,077 | false | true | 0 | 13 | 280 | 397 | 217 | 180 | null | null |
jgm/texmath | src/Text/TeXMath/Readers/TeX.hs | gpl-2.0 | oneOfStrings' :: (Char -> Char -> Bool) -> [(String, Text)] -> TP Text
oneOfStrings' _ [] = mzero | 97 | oneOfStrings' :: (Char -> Char -> Bool) -> [(String, Text)] -> TP Text
oneOfStrings' _ [] = mzero | 97 | oneOfStrings' _ [] = mzero | 26 | false | true | 0 | 8 | 17 | 49 | 26 | 23 | null | null |
utky/lycopene | src/Lycopene/Core/Sprint/Service.hs | apache-2.0 | defaultSprintName :: String
defaultSprintName = "backlog" | 57 | defaultSprintName :: String
defaultSprintName = "backlog" | 57 | defaultSprintName = "backlog" | 29 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
bendmorris/scotch | Scotch/Eval/Calc.hs | gpl-3.0 | vmod _ (Val (NumInt a)) (Val (NumFloat b)) = Val (NumInt (mod a (truncate b))) | 78 | vmod _ (Val (NumInt a)) (Val (NumFloat b)) = Val (NumInt (mod a (truncate b))) | 78 | vmod _ (Val (NumInt a)) (Val (NumFloat b)) = Val (NumInt (mod a (truncate b))) | 78 | false | false | 1 | 11 | 14 | 63 | 29 | 34 | null | null |
kmate/HaRe | old/testing/liftOneLevel/WhereIn1.hs | bsd-3-clause | anotherFun 0 y = sq y
where sq x = x^2 | 44 | anotherFun 0 y = sq y
where sq x = x^2 | 44 | anotherFun 0 y = sq y
where sq x = x^2 | 44 | false | false | 0 | 5 | 16 | 28 | 13 | 15 | null | null |
bitemyapp/ghc | compiler/nativeGen/Dwarf/Types.hs | bsd-3-clause | pprSetUnwind plat g (_, UwDeref uw)
= pprByte dW_CFA_expression $$
pprLEBWord (fromIntegral (dwarfGlobalRegNo plat g)) $$
pprUnwindExpr True uw | 154 | pprSetUnwind plat g (_, UwDeref uw)
= pprByte dW_CFA_expression $$
pprLEBWord (fromIntegral (dwarfGlobalRegNo plat g)) $$
pprUnwindExpr True uw | 154 | pprSetUnwind plat g (_, UwDeref uw)
= pprByte dW_CFA_expression $$
pprLEBWord (fromIntegral (dwarfGlobalRegNo plat g)) $$
pprUnwindExpr True uw | 154 | false | false | 0 | 11 | 29 | 55 | 26 | 29 | null | null |
nevrenato/Hets_Fork | CommonLogic/OMDoc.hs | gpl-2.0 | const_textName = const_cl "text_name" | 37 | const_textName = const_cl "text_name" | 37 | const_textName = const_cl "text_name" | 37 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
Th30n/hasgel | src/Hasgel/Resources.hs | mit | insertShader :: (HasPrograms s, MonadBaseControl IO m, MonadState s m) =>
ShaderDesc -> m GL.Shader
insertShader (file, shaderType) = do
shader <- liftBase $ flip GL.compileShader shaderType =<< readFile file
programs <- gets getPrograms
let shadersMap' = M.insert file shader $ shadersMap programs... | 428 | insertShader :: (HasPrograms s, MonadBaseControl IO m, MonadState s m) =>
ShaderDesc -> m GL.Shader
insertShader (file, shaderType) = do
shader <- liftBase $ flip GL.compileShader shaderType =<< readFile file
programs <- gets getPrograms
let shadersMap' = M.insert file shader $ shadersMap programs... | 428 | insertShader (file, shaderType) = do
shader <- liftBase $ flip GL.compileShader shaderType =<< readFile file
programs <- gets getPrograms
let shadersMap' = M.insert file shader $ shadersMap programs
programs' = programs { shadersMap = shadersMap' }
modify $ flip setPrograms programs'
pure shader | 312 | false | true | 0 | 12 | 89 | 143 | 68 | 75 | null | null |
nushio3/ghc | compiler/nativeGen/Dwarf/Constants.hs | bsd-3-clause | dW_CFA_val_expression = 0x16 | 32 | dW_CFA_val_expression = 0x16 | 32 | dW_CFA_val_expression = 0x16 | 32 | false | false | 0 | 4 | 6 | 6 | 3 | 3 | null | null |
lpeterse/koka | src/Common/NamePrim.hs | apache-2.0 | nameCons = preludeName "Cons" | 36 | nameCons = preludeName "Cons" | 36 | nameCons = preludeName "Cons" | 36 | false | false | 0 | 5 | 10 | 9 | 4 | 5 | null | null |
bergmark/http2 | test-hpack/HPACKEncode.hs | bsd-3-clause | testLoop conf (c:cs) ehdrtbl hxs = do
(ehdrtbl',hx) <- test conf c ehdrtbl
testLoop conf cs ehdrtbl' (hx:hxs) | 117 | testLoop conf (c:cs) ehdrtbl hxs = do
(ehdrtbl',hx) <- test conf c ehdrtbl
testLoop conf cs ehdrtbl' (hx:hxs) | 117 | testLoop conf (c:cs) ehdrtbl hxs = do
(ehdrtbl',hx) <- test conf c ehdrtbl
testLoop conf cs ehdrtbl' (hx:hxs) | 117 | false | false | 0 | 9 | 25 | 61 | 30 | 31 | null | null |
wxwxwwxxx/ghc | compiler/cmm/SMRep.hs | bsd-3-clause | -- | Round up the given byte count to the next byte count that's a
-- multiple of the machine's word size.
roundUpToWords :: DynFlags -> ByteOff -> ByteOff
roundUpToWords dflags n =
(n + (wORD_SIZE dflags - 1)) .&. (complement (wORD_SIZE dflags - 1)) | 252 | roundUpToWords :: DynFlags -> ByteOff -> ByteOff
roundUpToWords dflags n =
(n + (wORD_SIZE dflags - 1)) .&. (complement (wORD_SIZE dflags - 1)) | 145 | roundUpToWords dflags n =
(n + (wORD_SIZE dflags - 1)) .&. (complement (wORD_SIZE dflags - 1)) | 96 | true | true | 0 | 11 | 46 | 69 | 34 | 35 | null | null |
m-lopez/jack | src/Ast/Parser.hs | mit | --------------------------------------------------------------------------------
-- Auxiliary parser combinators
-- Eat whitespace.
whitespace :: Parser ()
whitespace = void $ many $ oneOf " \n\t" | 198 | whitespace :: Parser ()
whitespace = void $ many $ oneOf " \n\t" | 64 | whitespace = void $ many $ oneOf " \n\t" | 40 | true | true | 4 | 7 | 22 | 38 | 17 | 21 | null | null |
urbanslug/ghc | compiler/typecheck/TcTypeNats.hs | bsd-3-clause | -- | Compute the exact logarithm of a natural number.
-- The logarithm base is the second argument.
logExact :: Integer -> Integer -> Maybe Integer
logExact x y = do (z,True) <- genLog x y
return z
-- | Divide two natural numbers. | 250 | logExact :: Integer -> Integer -> Maybe Integer
logExact x y = do (z,True) <- genLog x y
return z
-- | Divide two natural numbers. | 150 | logExact x y = do (z,True) <- genLog x y
return z
-- | Divide two natural numbers. | 102 | true | true | 0 | 9 | 63 | 59 | 28 | 31 | null | null |
chreekat/snowdrift | Handler/User/Comment.hs | agpl-3.0 | postUserCommentTagR :: UserId -> CommentId -> TagId -> Handler ()
postUserCommentTagR _ = postCommentTagR | 105 | postUserCommentTagR :: UserId -> CommentId -> TagId -> Handler ()
postUserCommentTagR _ = postCommentTagR | 105 | postUserCommentTagR _ = postCommentTagR | 39 | false | true | 0 | 9 | 13 | 31 | 15 | 16 | null | null |
glguy/advent2015 | Day24.hs | isc | search :: Int -> [Int] -> Maybe Int
search n ps0 = listToMaybe $
do (pkg,ps1) <- sortBy (comparing fst) (start ps0)
moreGroups (n-1) ps1
return (pkgProduct pkg)
where
goal = sum ps0 `quot` n
moreGroups 1 _ = [()]
moreGroups i ps1 =
do (_,ps2) <- start ps1
moreGroups (i-1) ps2
st... | 607 | search :: Int -> [Int] -> Maybe Int
search n ps0 = listToMaybe $
do (pkg,ps1) <- sortBy (comparing fst) (start ps0)
moreGroups (n-1) ps1
return (pkgProduct pkg)
where
goal = sum ps0 `quot` n
moreGroups 1 _ = [()]
moreGroups i ps1 =
do (_,ps2) <- start ps1
moreGroups (i-1) ps2
st... | 607 | search n ps0 = listToMaybe $
do (pkg,ps1) <- sortBy (comparing fst) (start ps0)
moreGroups (n-1) ps1
return (pkgProduct pkg)
where
goal = sum ps0 `quot` n
moreGroups 1 _ = [()]
moreGroups i ps1 =
do (_,ps2) <- start ps1
moreGroups (i-1) ps2
start = aux noPackages [] . sort
au... | 571 | false | true | 0 | 11 | 182 | 359 | 181 | 178 | null | null |
ndmitchell/hlint | src/GHC/Util/Scope.hs | bsd-3-clause | scopeMove (_, x) _ = x | 22 | scopeMove (_, x) _ = x | 22 | scopeMove (_, x) _ = x | 22 | false | false | 1 | 5 | 5 | 18 | 9 | 9 | null | null |
Baughn/AES | Codec/Crypto/AES/Monad.hs | bsd-3-clause | -- | Run an AES computation
runAEST :: MonadUnsafeIO m =>
Mode
-> B.ByteString -- ^ The AES key - 16, 24 or 32 bytes
-> B.ByteString -- ^ The IV, 16 bytes
-> Direction
-> AEST m a
-> m (a, BL.ByteString)
runAEST mode key iv dir aes = do
ctx <- liftUnsafeIO $... | 406 | runAEST :: MonadUnsafeIO m =>
Mode
-> B.ByteString -- ^ The AES key - 16, 24 or 32 bytes
-> B.ByteString -- ^ The IV, 16 bytes
-> Direction
-> AEST m a
-> m (a, BL.ByteString)
runAEST mode key iv dir aes = do
ctx <- liftUnsafeIO $ newCtx mode key iv dir
ru... | 378 | runAEST mode key iv dir aes = do
ctx <- liftUnsafeIO $ newCtx mode key iv dir
runWriterT $ runReaderT aes ctx
-- | Run an AES computation | 142 | true | true | 0 | 13 | 135 | 110 | 53 | 57 | null | null |
bgw/hs-rpal | src/Evaluator/Environment.hs | gpl-3.0 | primativeOpLookup (AstPow _ _) = primativeIntOp (^) | 54 | primativeOpLookup (AstPow _ _) = primativeIntOp (^) | 54 | primativeOpLookup (AstPow _ _) = primativeIntOp (^) | 54 | false | false | 0 | 7 | 9 | 22 | 11 | 11 | null | null |
vTurbine/ghc | libraries/ghci/GHCi/RemoteTypes.hs | bsd-3-clause | fromRemotePtr :: RemotePtr a -> Ptr a
fromRemotePtr (RemotePtr p) = wordPtrToPtr (fromIntegral p) | 97 | fromRemotePtr :: RemotePtr a -> Ptr a
fromRemotePtr (RemotePtr p) = wordPtrToPtr (fromIntegral p) | 97 | fromRemotePtr (RemotePtr p) = wordPtrToPtr (fromIntegral p) | 59 | false | true | 0 | 7 | 13 | 39 | 18 | 21 | null | null |
lunaris/hindent | src/HIndent/Styles/WillJones/Operations.hs | bsd-3-clause | withParagraphs withFirst withLater (initAst:rest) =
go (withFirst . (initAst :)) initEnd rest
where (_,initEnd) = startEnd initAst
go f _ [] = f []
go f groupEnd (ast:asts) =
let (astStart,astEnd) = startEnd ast
in if astStart - groupEnd > 1
then do f []
... | 718 | withParagraphs withFirst withLater (initAst:rest) =
go (withFirst . (initAst :)) initEnd rest
where (_,initEnd) = startEnd initAst
go f _ [] = f []
go f groupEnd (ast:asts) =
let (astStart,astEnd) = startEnd ast
in if astStart - groupEnd > 1
then do f []
... | 718 | withParagraphs withFirst withLater (initAst:rest) =
go (withFirst . (initAst :)) initEnd rest
where (_,initEnd) = startEnd initAst
go f _ [] = f []
go f groupEnd (ast:asts) =
let (astStart,astEnd) = startEnd ast
in if astStart - groupEnd > 1
then do f []
... | 718 | false | false | 0 | 13 | 263 | 271 | 130 | 141 | null | null |
nadavshemer/buildsome | src/Lib/FSHook/Protocol.hs | gpl-2.0 | showFunc (Truncate path len) = concat ["truncate:", show path, " ", show len] | 77 | showFunc (Truncate path len) = concat ["truncate:", show path, " ", show len] | 77 | showFunc (Truncate path len) = concat ["truncate:", show path, " ", show len] | 77 | false | false | 0 | 7 | 12 | 38 | 19 | 19 | null | null |
jeannekamikaze/mapgen | MapGen/KdTree.hs | bsd-2-clause | degenerate :: Line -> Bool
degenerate (Line p1 p2) = p1 == p2 | 61 | degenerate :: Line -> Bool
degenerate (Line p1 p2) = p1 == p2 | 61 | degenerate (Line p1 p2) = p1 == p2 | 34 | false | true | 0 | 7 | 12 | 30 | 15 | 15 | null | null |
SkemaPlatform/skema-common | src/Skema/DataValue.hs | agpl-3.0 | -- -----------------------------------------------------------------------------
-- | Extract from a ByteString the `DataValue`.
convertToDataValues :: B.ByteString
-> IOPointDataType -- ^ Type to extract.
-> [DataValue]
convertToDataValues b IOchar = [DVchar $ fromByteStr... | 329 | convertToDataValues :: B.ByteString
-> IOPointDataType -- ^ Type to extract.
-> [DataValue]
convertToDataValues b IOchar = [DVchar $ fromByteString_le b] | 200 | convertToDataValues b IOchar = [DVchar $ fromByteString_le b] | 61 | true | true | 0 | 7 | 76 | 42 | 23 | 19 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/Enums.hs | mit | js_MediaKeyStatusOutputDownscaled = "output-downscaled" | 55 | js_MediaKeyStatusOutputDownscaled = "output-downscaled" | 55 | js_MediaKeyStatusOutputDownscaled = "output-downscaled" | 55 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
dsorokin/aivika-branches | Simulation/Aivika/Branch/Internal/Ref/Strict.hs | bsd-3-clause | -- | Create a new reference.
newRef0 :: a -> BR IO (Ref a)
newRef0 a =
BR $ \ps ->
do r <- invokeBR ps newEmptyRef0
ra <- newIORef a
let !i = brId ps
!wm = refWeakMap r
-- mkWeakIORef (brUniqueRef ps) (trace ("fin newIORef0: " ++ show i) $ finalizeCell wm i)
wa <- mkWeakIORef (brUniqu... | 468 | newRef0 :: a -> BR IO (Ref a)
newRef0 a =
BR $ \ps ->
do r <- invokeBR ps newEmptyRef0
ra <- newIORef a
let !i = brId ps
!wm = refWeakMap r
-- mkWeakIORef (brUniqueRef ps) (trace ("fin newIORef0: " ++ show i) $ finalizeCell wm i)
wa <- mkWeakIORef (brUniqueRef ps) (finalizeCell wm i)
... | 439 | newRef0 a =
BR $ \ps ->
do r <- invokeBR ps newEmptyRef0
ra <- newIORef a
let !i = brId ps
!wm = refWeakMap r
-- mkWeakIORef (brUniqueRef ps) (trace ("fin newIORef0: " ++ show i) $ finalizeCell wm i)
wa <- mkWeakIORef (brUniqueRef ps) (finalizeCell wm i)
writeIORef (refMap r) $
... | 409 | true | true | 2 | 12 | 139 | 158 | 71 | 87 | null | null |
upwawet/vision | src/Control/Concurrent/STM/TWatch.hs | gpl-3.0 | newEmptyTWatch :: Eq a => TVar a -> STM (TWatch a)
newEmptyTWatch src = newTWatch' src Nothing | 94 | newEmptyTWatch :: Eq a => TVar a -> STM (TWatch a)
newEmptyTWatch src = newTWatch' src Nothing | 94 | newEmptyTWatch src = newTWatch' src Nothing | 43 | false | true | 0 | 9 | 16 | 42 | 19 | 23 | null | null |
termite2/tsl | Frontend/StatementOps.hs | bsd-3-clause | mapStatM f s (SWhile p l c b) = f s =<< (liftM $ SWhile p l c) (mapStatM f s b) | 94 | mapStatM f s (SWhile p l c b) = f s =<< (liftM $ SWhile p l c) (mapStatM f s b) | 94 | mapStatM f s (SWhile p l c b) = f s =<< (liftM $ SWhile p l c) (mapStatM f s b) | 94 | false | false | 0 | 9 | 36 | 59 | 28 | 31 | null | null |
vincenthz/hs-foundation | foundation/benchs/Fake/Vector.hs | bsd-3-clause | reverse = undefined | 23 | reverse = undefined | 23 | reverse = undefined | 23 | false | false | 0 | 4 | 6 | 6 | 3 | 3 | null | null |
VoQn/ylang | test/PrimitiveSpec.hs | apache-2.0 | spec :: Spec
spec = do
describe "primitive Boolean operation" $ do
prop "(: (& x y) Boolean)" $ \ x y ->
(ValBool x) `andBin` (ValBool y) `shouldBeRight` ValBool (x && y)
prop "(: (| x y) Boolean)" $ \ x y ->
(ValBool x) `orBin` (ValBool y) `shouldBeRight` ValBool (x || y)
prop "(: (^ x y) B... | 1,619 | spec :: Spec
spec = do
describe "primitive Boolean operation" $ do
prop "(: (& x y) Boolean)" $ \ x y ->
(ValBool x) `andBin` (ValBool y) `shouldBeRight` ValBool (x && y)
prop "(: (| x y) Boolean)" $ \ x y ->
(ValBool x) `orBin` (ValBool y) `shouldBeRight` ValBool (x || y)
prop "(: (^ x y) B... | 1,619 | spec = do
describe "primitive Boolean operation" $ do
prop "(: (& x y) Boolean)" $ \ x y ->
(ValBool x) `andBin` (ValBool y) `shouldBeRight` ValBool (x && y)
prop "(: (| x y) Boolean)" $ \ x y ->
(ValBool x) `orBin` (ValBool y) `shouldBeRight` ValBool (x || y)
prop "(: (^ x y) Boolean)" $ \ ... | 1,606 | false | true | 0 | 18 | 477 | 678 | 349 | 329 | null | null |
aztek/voogie | src/Voogie/Boogie/Syntax.hs | gpl-3.0 | opQsep = "::" | 13 | opQsep = "::" | 13 | opQsep = "::" | 13 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
jstolarek/ghc | libraries/template-haskell/Language/Haskell/TH/Ppr.hs | bsd-3-clause | where_clause ds = nest nestDepth $ text "where" <+> vcat (map (ppr_dec False) ds) | 81 | where_clause ds = nest nestDepth $ text "where" <+> vcat (map (ppr_dec False) ds) | 81 | where_clause ds = nest nestDepth $ text "where" <+> vcat (map (ppr_dec False) ds) | 81 | false | false | 0 | 10 | 13 | 40 | 18 | 22 | null | null |
shinjiro-itagaki/shinjirecs | shinjirecs-api/src/Routing.hs | gpl-3.0 | _POST_ = [POST] | 15 | _POST_ = [POST] | 15 | _POST_ = [POST] | 15 | false | false | 1 | 5 | 2 | 12 | 5 | 7 | null | null |
ezyang/ghc | compiler/utils/Outputable.hs | bsd-3-clause | defaultUserStyle :: DynFlags -> PprStyle
defaultUserStyle dflags = mkUserStyle dflags neverQualify AllTheWay | 108 | defaultUserStyle :: DynFlags -> PprStyle
defaultUserStyle dflags = mkUserStyle dflags neverQualify AllTheWay | 108 | defaultUserStyle dflags = mkUserStyle dflags neverQualify AllTheWay | 67 | false | true | 0 | 5 | 11 | 25 | 12 | 13 | null | null |
bennofs/typeable-th | src/Data/Typeable/TH.hs | bsd-3-clause | -- | Derive the given TypeableN instance for a data type. Using N=0 generates a plain Typeable instance. Note that this function may
-- fail if it's not possible to derive the requested TypeableN instance.
makeTypeableN :: Name -> Int -> Q [Dec]
makeTypeableN name n = kindOf name >>= makeTypeableNWithKind name n | 313 | makeTypeableN :: Name -> Int -> Q [Dec]
makeTypeableN name n = kindOf name >>= makeTypeableNWithKind name n | 107 | makeTypeableN name n = kindOf name >>= makeTypeableNWithKind name n | 67 | true | true | 0 | 8 | 52 | 44 | 22 | 22 | null | null |
urv/fixhs | src/Data/FIX/Spec/FIX40.hs | lgpl-2.1 | tSecurityDesc :: FIXTag
tSecurityDesc = FIXTag
{ tName = "SecurityDesc"
, tnum = 107
, tparser = toFIXChar
, arbitraryValue = FIXChar <$> (return 'A') } | 165 | tSecurityDesc :: FIXTag
tSecurityDesc = FIXTag
{ tName = "SecurityDesc"
, tnum = 107
, tparser = toFIXChar
, arbitraryValue = FIXChar <$> (return 'A') } | 165 | tSecurityDesc = FIXTag
{ tName = "SecurityDesc"
, tnum = 107
, tparser = toFIXChar
, arbitraryValue = FIXChar <$> (return 'A') } | 141 | false | true | 0 | 10 | 38 | 57 | 30 | 27 | null | null |
mcschroeder/ghc | compiler/nativeGen/PPC/Ppr.hs | bsd-3-clause | pprRI (RIImm r) = pprImm r | 26 | pprRI (RIImm r) = pprImm r | 26 | pprRI (RIImm r) = pprImm r | 26 | false | false | 0 | 6 | 5 | 19 | 8 | 11 | null | null |
ambiata/mafia | src/Mafia/Twine/Async.hs | bsd-3-clause | waitEitherBoth :: Async a -> Async b -> Async c -> IO (Either a (b, c))
waitEitherBoth a b c =
atomically $ do
let
l = waitSTM a
r = do
bb <- waitSTM b `orElse` (waitSTM c >> retry)
cc <- waitSTM c
return (bb, cc)
fmap Left l `orElse` fmap Right r | 293 | waitEitherBoth :: Async a -> Async b -> Async c -> IO (Either a (b, c))
waitEitherBoth a b c =
atomically $ do
let
l = waitSTM a
r = do
bb <- waitSTM b `orElse` (waitSTM c >> retry)
cc <- waitSTM c
return (bb, cc)
fmap Left l `orElse` fmap Right r | 293 | waitEitherBoth a b c =
atomically $ do
let
l = waitSTM a
r = do
bb <- waitSTM b `orElse` (waitSTM c >> retry)
cc <- waitSTM c
return (bb, cc)
fmap Left l `orElse` fmap Right r | 221 | false | true | 0 | 17 | 100 | 144 | 69 | 75 | null | null |
acharal/hopes | src/frontend/Loc.hs | gpl-2.0 | spanEnd (MultiLineSpan f l1 c1 l2 c2) = Loc f l2 c2 | 53 | spanEnd (MultiLineSpan f l1 c1 l2 c2) = Loc f l2 c2 | 53 | spanEnd (MultiLineSpan f l1 c1 l2 c2) = Loc f l2 c2 | 53 | false | false | 0 | 6 | 13 | 31 | 14 | 17 | null | null |
guoy34/ampersand | src/Database/Design/Ampersand/Input/ADL1/Parser.hs | gpl-3.0 | pPopulations :: AmpParser [P_Population] -- ^ The population list parser
pPopulations = many1 pPopulation | 105 | pPopulations :: AmpParser [P_Population]
pPopulations = many1 pPopulation | 73 | pPopulations = many1 pPopulation | 32 | true | true | 0 | 6 | 13 | 21 | 11 | 10 | null | null |
mcschroeder/ghc | compiler/main/DynFlags.hs | bsd-3-clause | pgm_dll :: DynFlags -> (String,[Option])
pgm_dll dflags = sPgm_dll (settings dflags) | 98 | pgm_dll :: DynFlags -> (String,[Option])
pgm_dll dflags = sPgm_dll (settings dflags) | 98 | pgm_dll dflags = sPgm_dll (settings dflags) | 43 | false | true | 0 | 9 | 24 | 38 | 19 | 19 | null | null |
sdiehl/ghc | hadrian/src/Rules/Documentation.hs | bsd-3-clause | infoRoot :: FilePath
infoRoot = docRoot -/- "info" | 50 | infoRoot :: FilePath
infoRoot = docRoot -/- "info" | 50 | infoRoot = docRoot -/- "info" | 29 | false | true | 0 | 5 | 7 | 15 | 8 | 7 | null | null |
themattchan/tandoori | input/mono-restrict.hs | bsd-3-clause | genericLength :: Num a => [b] -> a
genericLength = undef | 56 | genericLength :: Num a => [b] -> a
genericLength = undef | 56 | genericLength = undef | 21 | false | true | 0 | 8 | 10 | 32 | 14 | 18 | null | null |
lambdataro/Dive | Parser.hs | mit | -- 文字の読み取りとスペースの取り除き
symb :: String -> Parser String
symb cs = token (string cs) | 80 | symb :: String -> Parser String
symb cs = token (string cs) | 59 | symb cs = token (string cs) | 27 | true | true | 0 | 7 | 13 | 31 | 15 | 16 | null | null |
sumitsahrawat/IHaskell | ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Selection/ToggleButtons.hs | mit | -- | Create a new ToggleButtons widget
mkToggleButtons :: IO ToggleButtons
mkToggleButtons = do
-- Default properties, with a random uuid
uuid <- U.random
let selectionAttrs = defaultSelectionWidget "ToggleButtonsView" "ToggleButtonsModel"
toggleButtonsAttrs = (Tooltips =:: [])
:&... | 735 | mkToggleButtons :: IO ToggleButtons
mkToggleButtons = do
-- Default properties, with a random uuid
uuid <- U.random
let selectionAttrs = defaultSelectionWidget "ToggleButtonsView" "ToggleButtonsModel"
toggleButtonsAttrs = (Tooltips =:: [])
:& (Icons =:: [])
... | 696 | mkToggleButtons = do
-- Default properties, with a random uuid
uuid <- U.random
let selectionAttrs = defaultSelectionWidget "ToggleButtonsView" "ToggleButtonsModel"
toggleButtonsAttrs = (Tooltips =:: [])
:& (Icons =:: [])
:& (ButtonStyle =:: DefaultButto... | 660 | true | true | 0 | 16 | 201 | 145 | 69 | 76 | null | null |
cavi-art/why3-hs | src/Why3/AsProcess.hs | bsd-3-clause | stringToProver = unLift . liftM2 (,) stringToProverName stringToProverVersion
where unLift (Just a, Just b) = Just (a, b)
unLift (_, _) = Nothing | 153 | stringToProver = unLift . liftM2 (,) stringToProverName stringToProverVersion
where unLift (Just a, Just b) = Just (a, b)
unLift (_, _) = Nothing | 153 | stringToProver = unLift . liftM2 (,) stringToProverName stringToProverVersion
where unLift (Just a, Just b) = Just (a, b)
unLift (_, _) = Nothing | 153 | false | false | 1 | 7 | 30 | 65 | 34 | 31 | null | null |
mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/VertexProgram.hs | bsd-3-clause | gl_MAX_PROGRAM_INSTRUCTIONS :: GLenum
gl_MAX_PROGRAM_INSTRUCTIONS = 0x88A1 | 74 | gl_MAX_PROGRAM_INSTRUCTIONS :: GLenum
gl_MAX_PROGRAM_INSTRUCTIONS = 0x88A1 | 74 | gl_MAX_PROGRAM_INSTRUCTIONS = 0x88A1 | 36 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
GaloisInc/halvm-ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | isTvNameSpace _ = False | 28 | isTvNameSpace _ = False | 28 | isTvNameSpace _ = False | 28 | false | false | 0 | 5 | 8 | 9 | 4 | 5 | null | null |
sdiehl/ghc | compiler/main/DynFlags.hs | bsd-3-clause | checkOptLevel :: Int -> DynFlags -> Either String DynFlags
checkOptLevel n dflags
| hscTarget dflags == HscInterpreted && n > 0
= Left "-O conflicts with --interactive; -O ignored."
| otherwise
= Right dflags | 224 | checkOptLevel :: Int -> DynFlags -> Either String DynFlags
checkOptLevel n dflags
| hscTarget dflags == HscInterpreted && n > 0
= Left "-O conflicts with --interactive; -O ignored."
| otherwise
= Right dflags | 224 | checkOptLevel n dflags
| hscTarget dflags == HscInterpreted && n > 0
= Left "-O conflicts with --interactive; -O ignored."
| otherwise
= Right dflags | 165 | false | true | 0 | 11 | 49 | 67 | 30 | 37 | null | null |
tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/Config.hs | bsd-3-clause | userConfigUpdate :: Verbosity -> GlobalFlags -> IO ()
userConfigUpdate verbosity globalFlags = do
userConfig <- loadRawConfig normal (globalConfigFile globalFlags)
newConfig <- initialSavedConfig
commentConf <- commentSavedConfig
cabalFile <- getConfigFilePath $ globalConfigFile globalFlags
let backup = ca... | 585 | userConfigUpdate :: Verbosity -> GlobalFlags -> IO ()
userConfigUpdate verbosity globalFlags = do
userConfig <- loadRawConfig normal (globalConfigFile globalFlags)
newConfig <- initialSavedConfig
commentConf <- commentSavedConfig
cabalFile <- getConfigFilePath $ globalConfigFile globalFlags
let backup = ca... | 585 | userConfigUpdate verbosity globalFlags = do
userConfig <- loadRawConfig normal (globalConfigFile globalFlags)
newConfig <- initialSavedConfig
commentConf <- commentSavedConfig
cabalFile <- getConfigFilePath $ globalConfigFile globalFlags
let backup = cabalFile ++ ".backup"
notice verbosity $ "Renaming " ... | 531 | false | true | 0 | 12 | 93 | 159 | 73 | 86 | null | null |
yesodweb/yesod | yesod-form/Yesod/Form/I18n/Russian.hs | mit | russianFormMessage (MsgInvalidUrl t) = "Неверно указан URL адрес: " `mappend` t | 79 | russianFormMessage (MsgInvalidUrl t) = "Неверно указан URL адрес: " `mappend` t | 79 | russianFormMessage (MsgInvalidUrl t) = "Неверно указан URL адрес: " `mappend` t | 79 | false | false | 0 | 7 | 10 | 21 | 11 | 10 | null | null |
NorfairKing/the-notes | src/Logic/HoareLogic/Macro.hs | gpl-2.0 | -- | Assignment axiom schema
-- > assignmentAs = rule "assignment" []
assignmentAs :: Note -> Note
assignmentAs = unaryInf "[ass]" axiomC | 137 | assignmentAs :: Note -> Note
assignmentAs = unaryInf "[ass]" axiomC | 67 | assignmentAs = unaryInf "[ass]" axiomC | 38 | true | true | 0 | 7 | 21 | 29 | 13 | 16 | null | null |
chris-taylor/hs-probability-examples | Tennis.hs | mit | top = choose (2/10) Win Lose | 29 | top = choose (2/10) Win Lose | 29 | top = choose (2/10) Win Lose | 29 | false | false | 0 | 7 | 6 | 20 | 10 | 10 | null | null |
phischu/fragnix | tests/packages/scotty/Data.Vector.Generic.hs | bsd-3-clause | unsafeBackpermute v is = seq v
$ seq n
$ unstream
$ Bundle.unbox
$ Bundle.map index
$ stream is
where
n = length v
{-# INLINE index #-}
-- NOTE: we do it this way to avoid triggering Liberat... | 810 | unsafeBackpermute v is = seq v
$ seq n
$ unstream
$ Bundle.unbox
$ Bundle.map index
$ stream is
where
n = length v
{-# INLINE index #-}
-- NOTE: we do it this way to avoid triggering Liberat... | 810 | unsafeBackpermute v is = seq v
$ seq n
$ unstream
$ Bundle.unbox
$ Bundle.map index
$ stream is
where
n = length v
{-# INLINE index #-}
-- NOTE: we do it this way to avoid triggering Liberat... | 810 | false | false | 1 | 11 | 268 | 115 | 58 | 57 | null | null |
deech/fltkhs | src/C2HS.hs | mit | -- |Instance for special casing null pointers.
--
nothingIfNull :: (Ptr a -> b) -> Ptr a -> Maybe b
nothingIfNull = nothingIf (== nullPtr) | 139 | nothingIfNull :: (Ptr a -> b) -> Ptr a -> Maybe b
nothingIfNull = nothingIf (== nullPtr) | 89 | nothingIfNull = nothingIf (== nullPtr) | 39 | true | true | 0 | 9 | 25 | 49 | 24 | 25 | null | null |
kosmoskatten/nats-client | src/Network/Nats.hs | mit | -- | Deliver a message to a subscriber.
deliverSubscription :: NatsMsg -> Subscriber -> IO ()
deliverSubscription msg (AsyncSubscriber action) =
void $ forkIO (action msg) | 175 | deliverSubscription :: NatsMsg -> Subscriber -> IO ()
deliverSubscription msg (AsyncSubscriber action) =
void $ forkIO (action msg) | 135 | deliverSubscription msg (AsyncSubscriber action) =
void $ forkIO (action msg) | 81 | true | true | 0 | 8 | 29 | 49 | 24 | 25 | null | null |
plneappl/HasKlax | src/Config.hs | bsd-3-clause | screenHeight = 720 | 18 | screenHeight = 720 | 18 | screenHeight = 720 | 18 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
kosmoskatten/linx-gateway | src/Network/Linx/Gateway/Message.hs | mit | -- | Decode the header.
decodeHeader :: LBS.ByteString -> Header
decodeHeader = decode | 86 | decodeHeader :: LBS.ByteString -> Header
decodeHeader = decode | 62 | decodeHeader = decode | 21 | true | true | 0 | 6 | 12 | 18 | 10 | 8 | null | null |
maueroats/teaching | docs/ap-cs/haskell/connect-four/testcases/TestConnectFour.hs | gpl-3.0 | draw_board' :: Board -> String
-- draw_board' board = undefined
draw_board' = drawBoard | 88 | draw_board' :: Board -> String
draw_board' = drawBoard | 54 | draw_board' = drawBoard | 23 | true | true | 0 | 7 | 13 | 23 | 10 | 13 | null | null |
gafiatulin/codewars | src/7 kyu/Alternate.hs | mit | alternateSqSum :: [Integer] -> Maybe Integer
alternateSqSum [] = Nothing | 72 | alternateSqSum :: [Integer] -> Maybe Integer
alternateSqSum [] = Nothing | 72 | alternateSqSum [] = Nothing | 27 | false | true | 0 | 6 | 9 | 26 | 13 | 13 | null | null |
bravit/Idris-dev | src/Idris/AbsSyntaxTree.hs | bsd-3-clause | -- Machine generated top level implicit
impl_gen = Imp [] Dynamic False (Just (Impl False True True)) False RigW | 121 | impl_gen = Imp [] Dynamic False (Just (Impl False True True)) False RigW | 81 | impl_gen = Imp [] Dynamic False (Just (Impl False True True)) False RigW | 81 | true | false | 1 | 9 | 27 | 41 | 19 | 22 | null | null |
kaoskorobase/hsc3-server | Sound/SC3/Server/Allocator/SimpleAllocator.hs | gpl-2.0 | _statistics :: Integral i => SimpleAllocator i -> Statistics
_statistics (SimpleAllocator r n _) =
let k = fromIntegral (Range.size r)
in Statistics {
numAvailable = k
, numFree = k - n
, numUsed = n } | 229 | _statistics :: Integral i => SimpleAllocator i -> Statistics
_statistics (SimpleAllocator r n _) =
let k = fromIntegral (Range.size r)
in Statistics {
numAvailable = k
, numFree = k - n
, numUsed = n } | 229 | _statistics (SimpleAllocator r n _) =
let k = fromIntegral (Range.size r)
in Statistics {
numAvailable = k
, numFree = k - n
, numUsed = n } | 168 | false | true | 0 | 12 | 65 | 93 | 45 | 48 | null | null |
cryptonomicon314/pyccoon-hs-xml | Text/XML/Light/Input.hs | bsd-3-clause | parseXML :: XmlSource s => s -> [Content]
parseXML = parse . tokens | 68 | parseXML :: XmlSource s => s -> [Content]
parseXML = parse . tokens | 68 | parseXML = parse . tokens | 26 | false | true | 0 | 7 | 13 | 29 | 15 | 14 | null | null |
barendventer/netwire-glfw-b | src/Graphics/UI/GLFW/Netwire/Window/Context.hs | mit | -- | Gets the minor version of OpenGL used in the OpenGL context
getContextVersionMinor :: GLContextAccessor Int
getContextVersionMinor = withContext GLFW.getWindowContextVersionMinor | 183 | getContextVersionMinor :: GLContextAccessor Int
getContextVersionMinor = withContext GLFW.getWindowContextVersionMinor | 118 | getContextVersionMinor = withContext GLFW.getWindowContextVersionMinor | 70 | true | true | 0 | 6 | 20 | 20 | 10 | 10 | null | null |
brendanhay/gogol | gogol-firebase-rules/gen/Network/Google/FirebaseRules/Types/Product.hs | mpl-2.0 | -- | The amount of times that expression returned.
vcCount :: Lens' ValueCount (Maybe Int32)
vcCount
= lens _vcCount (\ s a -> s{_vcCount = a}) .
mapping _Coerce | 169 | vcCount :: Lens' ValueCount (Maybe Int32)
vcCount
= lens _vcCount (\ s a -> s{_vcCount = a}) .
mapping _Coerce | 118 | vcCount
= lens _vcCount (\ s a -> s{_vcCount = a}) .
mapping _Coerce | 76 | true | true | 0 | 10 | 36 | 55 | 28 | 27 | null | null |
dancor/melang | src/Main/tat-count-words.hs | mit | main :: IO ()
main = do
wordCounts <- HM.fromListWith (+) . map (\w -> (w, 1)) .
concatMap ((\(_id:_lang:sent:_) -> sentToWords sent) . T.split (== '\t')) .
test . T.lines <$> T.getContents
mapM_ (\(w, c) ->
T.putStrLn $ T.pack (show c) <> "\t" <> w
) . sortBy (comparing snd) ... | 342 | main :: IO ()
main = do
wordCounts <- HM.fromListWith (+) . map (\w -> (w, 1)) .
concatMap ((\(_id:_lang:sent:_) -> sentToWords sent) . T.split (== '\t')) .
test . T.lines <$> T.getContents
mapM_ (\(w, c) ->
T.putStrLn $ T.pack (show c) <> "\t" <> w
) . sortBy (comparing snd) ... | 342 | main = do
wordCounts <- HM.fromListWith (+) . map (\w -> (w, 1)) .
concatMap ((\(_id:_lang:sent:_) -> sentToWords sent) . T.split (== '\t')) .
test . T.lines <$> T.getContents
mapM_ (\(w, c) ->
T.putStrLn $ T.pack (show c) <> "\t" <> w
) . sortBy (comparing snd) $ HM.toList wo... | 328 | false | true | 0 | 20 | 96 | 183 | 94 | 89 | null | null |
SamB/aptitude | tools/resolver-visualize/Resolver/Parse.hs | gpl-2.0 | leftAngle = symbol "<" | 22 | leftAngle = symbol "<" | 22 | leftAngle = symbol "<" | 22 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/NotificationPermissionCallback.hs | mit | -- | <https://developer.mozilla.org/en-US/docs/Web/API/NotificationPermissionCallback Mozilla NotificationPermissionCallback documentation>
newNotificationPermissionCallback ::
(MonadDOM m, FromJSString permission) =>
(permission -> JSM ()) ->
... | 662 | newNotificationPermissionCallback ::
(MonadDOM m, FromJSString permission) =>
(permission -> JSM ()) ->
m (NotificationPermissionCallback permission)
newNotificationPermissionCallback callback
= liftDOM
(... | 521 | newNotificationPermissionCallback callback
= liftDOM
(NotificationPermissionCallback . Callback <$>
function
(\ _ _ [permission] ->
fromJSValUnchecked permission >>=
\ permission' -> callback permission')) | 263 | true | true | 0 | 12 | 209 | 102 | 52 | 50 | null | null |
spechub/Hets | Proofs/EdgeUtils.hs | gpl-2.0 | -- | return all non-cyclic paths starting from the given node
getAllPathsOfTypeFrom :: DGraph -> Node -> [[LEdge DGLinkLab]]
getAllPathsOfTypeFrom dgraph src =
Tree.getPaths src . elfilter (not . isHidingEdge . dgl_type) $ dgBody dgraph | 239 | getAllPathsOfTypeFrom :: DGraph -> Node -> [[LEdge DGLinkLab]]
getAllPathsOfTypeFrom dgraph src =
Tree.getPaths src . elfilter (not . isHidingEdge . dgl_type) $ dgBody dgraph | 177 | getAllPathsOfTypeFrom dgraph src =
Tree.getPaths src . elfilter (not . isHidingEdge . dgl_type) $ dgBody dgraph | 114 | true | true | 0 | 10 | 37 | 64 | 32 | 32 | null | null |
Zigazou/HaMinitel | src/Minitel/Type/MString.hs | gpl-3.0 | completeReturn [C0.ESC, SSCFS.CSI, 0x32] = False | 48 | completeReturn [C0.ESC, SSCFS.CSI, 0x32] = False | 48 | completeReturn [C0.ESC, SSCFS.CSI, 0x32] = False | 48 | false | false | 0 | 7 | 5 | 22 | 12 | 10 | null | null |
wavewave/madgraph-auto-model | src/HEP/Automation/MadGraph/Model/ZpH.hs | bsd-2-clause | zpHTr :: TypeRep
zpHTr = mkTyConApp (mkTyCon "HEP.Automation.MadGraph.Model.ZpH.ZpH") [] | 89 | zpHTr :: TypeRep
zpHTr = mkTyConApp (mkTyCon "HEP.Automation.MadGraph.Model.ZpH.ZpH") [] | 88 | zpHTr = mkTyConApp (mkTyCon "HEP.Automation.MadGraph.Model.ZpH.ZpH") [] | 71 | false | true | 0 | 7 | 9 | 31 | 13 | 18 | null | null |
jrclogic/SMCDEL | src/SMCDEL/Explicit/DEMO_S5.hs | gpl-2.0 | isTrueAt _ w (Info x) = w == x | 30 | isTrueAt _ w (Info x) = w == x | 30 | isTrueAt _ w (Info x) = w == x | 30 | false | false | 0 | 7 | 8 | 23 | 11 | 12 | null | null |
gibiansky/nvim-hs | library/Neovim/Debug.hs | apache-2.0 | -- | Restart the development plugin provider.
restartDevelMain
:: Internal.Config RPCConfig ()
-> Maybe NeovimConfig
-> IO (Either String ([ThreadId], Internal.Config RPCConfig ()))
restartDevelMain cfg mcfg = do
quitDevelMain cfg
develMain mcfg
-- | Convenience function to run a stateless 'Neovim... | 331 | restartDevelMain
:: Internal.Config RPCConfig ()
-> Maybe NeovimConfig
-> IO (Either String ([ThreadId], Internal.Config RPCConfig ()))
restartDevelMain cfg mcfg = do
quitDevelMain cfg
develMain mcfg
-- | Convenience function to run a stateless 'Neovim' function. | 285 | restartDevelMain cfg mcfg = do
quitDevelMain cfg
develMain mcfg
-- | Convenience function to run a stateless 'Neovim' function. | 137 | true | true | 0 | 12 | 63 | 79 | 38 | 41 | null | null |
Lifelovinglight/randomTools | arpSniffer.hs | gpl-3.0 | arpHardwareTypeParser :: APB.Parser ArpHardwareType
arpHardwareTypeParser = liftM ArpHardwareType anyWord16 | 107 | arpHardwareTypeParser :: APB.Parser ArpHardwareType
arpHardwareTypeParser = liftM ArpHardwareType anyWord16 | 107 | arpHardwareTypeParser = liftM ArpHardwareType anyWord16 | 55 | false | true | 0 | 6 | 8 | 21 | 10 | 11 | null | null |
reenberg/XMonadContrib | XMonad/Hooks/UrgencyHook.hs | bsd-3-clause | -- | Spawn a commandline thing, appending the window id to the prefix string
-- you provide. (Make sure to add a space if you need it.) Do your crazy
-- xcompmgr thing.
spawnUrgencyHook = urgencyHook . SpawnUrgencyHook | 218 | spawnUrgencyHook = urgencyHook . SpawnUrgencyHook | 49 | spawnUrgencyHook = urgencyHook . SpawnUrgencyHook | 49 | true | false | 0 | 5 | 37 | 13 | 8 | 5 | null | null |
centromere/cacophony | src/Crypto/Noise/HandshakePatterns.hs | unlicense | -- | @Noise_XXpsk3(s, rs):
-- -> e
-- <- e, ee, s, es
-- -> s, se, psk@
noiseXXpsk3 :: HandshakePattern
noiseXXpsk3 = handshakePattern "XXpsk3" $
initiator e *>
responder (e *> ee *> s *> es) *>
initiator (s *> se *> psk) | 230 | noiseXXpsk3 :: HandshakePattern
noiseXXpsk3 = handshakePattern "XXpsk3" $
initiator e *>
responder (e *> ee *> s *> es) *>
initiator (s *> se *> psk) | 155 | noiseXXpsk3 = handshakePattern "XXpsk3" $
initiator e *>
responder (e *> ee *> s *> es) *>
initiator (s *> se *> psk) | 123 | true | true | 0 | 11 | 52 | 65 | 34 | 31 | null | null |
acowley/ghc | libraries/template-haskell/Language/Haskell/TH/Ppr.hs | bsd-3-clause | pprParendType (PromotedT c) = text "'" <> ppr c | 53 | pprParendType (PromotedT c) = text "'" <> ppr c | 53 | pprParendType (PromotedT c) = text "'" <> ppr c | 53 | false | false | 0 | 7 | 14 | 25 | 11 | 14 | null | null |
juhnowski/pi | machin.hs | mit | machin_pi digits = pi' `div` (10 ^ 10)
where unity = 10 ^ (digits+10)
pi' = 4 * (4 * arccot 5 unity - arccot 239 unity) | 167 | machin_pi digits = pi' `div` (10 ^ 10)
where unity = 10 ^ (digits+10)
pi' = 4 * (4 * arccot 5 unity - arccot 239 unity) | 167 | machin_pi digits = pi' `div` (10 ^ 10)
where unity = 10 ^ (digits+10)
pi' = 4 * (4 * arccot 5 unity - arccot 239 unity) | 167 | false | false | 0 | 11 | 74 | 70 | 37 | 33 | null | null |
statusfailed/snaplet-job-board | src/Snap/Snaplet/JobBoard/Splices.hs | agpl-3.0 | loginLink :: X.Node
loginLink = X.Element "li" [] [link "/login" "Login"] | 73 | loginLink :: X.Node
loginLink = X.Element "li" [] [link "/login" "Login"] | 73 | loginLink = X.Element "li" [] [link "/login" "Login"] | 53 | false | true | 0 | 7 | 10 | 32 | 16 | 16 | null | null |
yuttie/Haguruma | HagurumaTest.hs | bsd-3-clause | main = defaultMain tests | 24 | main = defaultMain tests | 24 | main = defaultMain tests | 24 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
vTurbine/ghc | compiler/coreSyn/CoreSyn.hs | bsd-3-clause | deTagAlt :: TaggedAlt t -> CoreAlt
deTagAlt (con, bndrs, rhs) = (con, [b | TB b _ <- bndrs], deTagExpr rhs) | 107 | deTagAlt :: TaggedAlt t -> CoreAlt
deTagAlt (con, bndrs, rhs) = (con, [b | TB b _ <- bndrs], deTagExpr rhs) | 107 | deTagAlt (con, bndrs, rhs) = (con, [b | TB b _ <- bndrs], deTagExpr rhs) | 72 | false | true | 0 | 9 | 20 | 58 | 31 | 27 | null | null |
gridaphobe/ghc | compiler/basicTypes/RdrName.hs | bsd-3-clause | importSpecModule :: ImportSpec -> ModuleName
importSpecModule is = is_mod (is_decl is) | 86 | importSpecModule :: ImportSpec -> ModuleName
importSpecModule is = is_mod (is_decl is) | 86 | importSpecModule is = is_mod (is_decl is) | 41 | false | true | 0 | 7 | 10 | 27 | 13 | 14 | null | null |
OS2World/DEV-UTIL-HUGS | oldlib/SimpleQueue.hs | bsd-3-clause | revfoldr f e (x:xs) = revfoldr f (f x e) xs | 43 | revfoldr f e (x:xs) = revfoldr f (f x e) xs | 43 | revfoldr f e (x:xs) = revfoldr f (f x e) xs | 43 | false | false | 0 | 7 | 10 | 38 | 17 | 21 | null | null |
rahulmutt/ghcvm | compiler/Eta/TypeCheck/TcArrows.hs | bsd-3-clause | tcArrDoStmt env ctxt (RecStmt { recS_stmts = stmts, recS_later_ids = later_names
, recS_rec_ids = rec_names }) res_ty thing_inside
= do { let tup_names = rec_names ++ filterOut (`elem` rec_names) later_names
; tup_elt_tys <- newFlexiTyVarTys (length tup_names) liftedTypeKind
... | 1,622 | tcArrDoStmt env ctxt (RecStmt { recS_stmts = stmts, recS_later_ids = later_names
, recS_rec_ids = rec_names }) res_ty thing_inside
= do { let tup_names = rec_names ++ filterOut (`elem` rec_names) later_names
; tup_elt_tys <- newFlexiTyVarTys (length tup_names) liftedTypeKind
... | 1,622 | tcArrDoStmt env ctxt (RecStmt { recS_stmts = stmts, recS_later_ids = later_names
, recS_rec_ids = rec_names }) res_ty thing_inside
= do { let tup_names = rec_names ++ filterOut (`elem` rec_names) later_names
; tup_elt_tys <- newFlexiTyVarTys (length tup_names) liftedTypeKind
... | 1,622 | false | false | 0 | 16 | 622 | 326 | 175 | 151 | null | null |
jcowgill/cs-work | syac/compilers/Prac3/4Predictive.hs | gpl-3.0 | isValue _ = False | 27 | isValue _ = False | 27 | isValue _ = False | 27 | false | false | 0 | 5 | 13 | 9 | 4 | 5 | null | null |
joe9/barrelfish | tools/pleco/Parser.hs | mit | symbol = P.symbol lexer | 27 | symbol = P.symbol lexer | 27 | symbol = P.symbol lexer | 27 | false | false | 0 | 6 | 7 | 11 | 5 | 6 | null | null |
bitemyapp/perdure | exe-src/Database/Perdure/TestState.hs | apache-2.0 | withReplicatedFiles :: String -> (ReplicatedFile -> IO a) -> ErrorT String IO a
withReplicatedFiles n z = ErrorT $ fmap join $
runErrorT $ withFileStoreFile (n ++ "0.dag") $ \f0 ->
runErrorT $ withFileStoreFile (n ++ "1.dag") $ \f1 ->
z $ Replic... | 337 | withReplicatedFiles :: String -> (ReplicatedFile -> IO a) -> ErrorT String IO a
withReplicatedFiles n z = ErrorT $ fmap join $
runErrorT $ withFileStoreFile (n ++ "0.dag") $ \f0 ->
runErrorT $ withFileStoreFile (n ++ "1.dag") $ \f1 ->
z $ Replic... | 337 | withReplicatedFiles n z = ErrorT $ fmap join $
runErrorT $ withFileStoreFile (n ++ "0.dag") $ \f0 ->
runErrorT $ withFileStoreFile (n ++ "1.dag") $ \f1 ->
z $ ReplicatedFile [f0, f1] | 257 | false | true | 0 | 11 | 119 | 111 | 56 | 55 | null | null |
evancz/builder | src/Generate/Output.hs | bsd-3-clause | generateReplFile :: Summary.Summary -> Crawl.Result -> N.Name -> Task.Task FilePath
generateReplFile summary@(Summary.Summary _ project _ ifaces _) graph name =
do
objectGraph <- organize summary graph
let home = Module.Canonical (Project.getName project) "ElmRepl"
let builder = Obj.generateForRepl... | 518 | generateReplFile :: Summary.Summary -> Crawl.Result -> N.Name -> Task.Task FilePath
generateReplFile summary@(Summary.Summary _ project _ ifaces _) graph name =
do
objectGraph <- organize summary graph
let home = Module.Canonical (Project.getName project) "ElmRepl"
let builder = Obj.generateForRepl... | 518 | generateReplFile summary@(Summary.Summary _ project _ ifaces _) graph name =
do
objectGraph <- organize summary graph
let home = Module.Canonical (Project.getName project) "ElmRepl"
let builder = Obj.generateForRepl ifaces objectGraph home name
liftIO $ IO.writeBuilder Paths.temp $
r... | 434 | false | true | 0 | 14 | 100 | 160 | 75 | 85 | null | null |
tphyahoo/happs-tutorial | src/SerializeableUserInfos.hs | bsd-3-clause | -- as a security measure, require that oldpass agrees with real old pass
set_password oldpass newpass (UserInfos pass up jobs) | pass == oldpass = return $ UserInfos newpass up jobs
| otherwise = fail $ "bad old password: " | 269 | set_password oldpass newpass (UserInfos pass up jobs) | pass == oldpass = return $ UserInfos newpass up jobs
| otherwise = fail $ "bad old password: " | 196 | set_password oldpass newpass (UserInfos pass up jobs) | pass == oldpass = return $ UserInfos newpass up jobs
| otherwise = fail $ "bad old password: " | 196 | true | false | 0 | 8 | 85 | 61 | 27 | 34 | null | null |
spinda/liquidhaskell | tests/gsoc15/unknown/pos/RBTree-height.hs | bsd-3-clause | inv Leaf = Leaf | 25 | inv Leaf = Leaf | 25 | inv Leaf = Leaf | 25 | false | false | 0 | 4 | 13 | 10 | 4 | 6 | null | null |
ihc/futhark | src/Language/Futhark/Attributes.hs | isc | -- | Add another qualifier (at the head) to a qualified name.
qualify :: Name -> QualName v -> QualName v
qualify k (QualName ks v) = QualName (k:ks) v | 151 | qualify :: Name -> QualName v -> QualName v
qualify k (QualName ks v) = QualName (k:ks) v | 89 | qualify k (QualName ks v) = QualName (k:ks) v | 45 | true | true | 0 | 7 | 29 | 51 | 25 | 26 | null | null |
dselsam/tc | src/Kernel/Level/Internal.hs | gpl-3.0 | mkIteratedSucc l k
| k == 0 = l
| k > 0 = Succ (SuccData (mkIteratedSucc l (k-1))) | 86 | mkIteratedSucc l k
| k == 0 = l
| k > 0 = Succ (SuccData (mkIteratedSucc l (k-1))) | 86 | mkIteratedSucc l k
| k == 0 = l
| k > 0 = Succ (SuccData (mkIteratedSucc l (k-1))) | 86 | false | false | 1 | 11 | 22 | 58 | 27 | 31 | null | null |
dolio/vector | Data/Vector/Internal/Check.hs | bsd-3-clause | doUnsafeChecks = True | 21 | doUnsafeChecks = True | 21 | doUnsafeChecks = True | 21 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
psandahl/big-engine | src/BigE/TexturedFramebuffer.hs | mit | enableDraw :: MonadIO m => TexturedFramebuffer -> m ()
enableDraw fb = do
let Framebuffer fbo = framebuffer fb
GL.glBindFramebuffer GL.GL_DRAW_FRAMEBUFFER fbo
-- | Enable the framebuffer for reading. | 208 | enableDraw :: MonadIO m => TexturedFramebuffer -> m ()
enableDraw fb = do
let Framebuffer fbo = framebuffer fb
GL.glBindFramebuffer GL.GL_DRAW_FRAMEBUFFER fbo
-- | Enable the framebuffer for reading. | 208 | enableDraw fb = do
let Framebuffer fbo = framebuffer fb
GL.glBindFramebuffer GL.GL_DRAW_FRAMEBUFFER fbo
-- | Enable the framebuffer for reading. | 153 | false | true | 0 | 10 | 37 | 59 | 26 | 33 | null | null |
d0kt0r0/Tidal | src/Sound/Tidal/Params.hs | gpl-3.0 | -- Spectral enhance
enhance :: Pattern Double -> ControlPattern
enhance = pF "enhance" | 86 | enhance :: Pattern Double -> ControlPattern
enhance = pF "enhance" | 66 | enhance = pF "enhance" | 22 | true | true | 0 | 6 | 12 | 22 | 11 | 11 | null | null |
alphaHeavy/cabal | Cabal/Distribution/PackageDescription/Check.hs | bsd-3-clause | repoTypeDirname SVN = [".svn"] | 37 | repoTypeDirname SVN = [".svn"] | 37 | repoTypeDirname SVN = [".svn"] | 37 | false | false | 0 | 5 | 10 | 13 | 6 | 7 | null | null |
facebookincubator/duckling | Duckling/Time/EL/Rules.hs | bsd-3-clause | ruleEarlyMorning :: Rule
ruleEarlyMorning = Rule
{ name = "early morning"
, pattern =
[ regex "νωρίς\\s+(το\\s+)πρωί"
]
, prod = \_ -> Token Time . partOfDay . mkLatent <$>
interval TTime.Open (hour False 4) (hour False 9)
} | 246 | ruleEarlyMorning :: Rule
ruleEarlyMorning = Rule
{ name = "early morning"
, pattern =
[ regex "νωρίς\\s+(το\\s+)πρωί"
]
, prod = \_ -> Token Time . partOfDay . mkLatent <$>
interval TTime.Open (hour False 4) (hour False 9)
} | 246 | ruleEarlyMorning = Rule
{ name = "early morning"
, pattern =
[ regex "νωρίς\\s+(το\\s+)πρωί"
]
, prod = \_ -> Token Time . partOfDay . mkLatent <$>
interval TTime.Open (hour False 4) (hour False 9)
} | 221 | false | true | 0 | 12 | 60 | 86 | 45 | 41 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.