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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jblake/fanfiction | src/Main.hs | mit | defaultFilename :: String -> String -> String -> String
defaultFilename storyID title author = mangle storyID ++ "_" ++ mangle title ++ "_by_" ++ mangle author ++ ".fb2"
where
mangle s = intercalate "_" $ filter (/= "_") $ groupBy (\a b -> a /= '_' && b /= '_') $ [ if allowed c then c else '_' | c <- s ]
allowed c = isAscii c && isAlphaNum c | 353 | defaultFilename :: String -> String -> String -> String
defaultFilename storyID title author = mangle storyID ++ "_" ++ mangle title ++ "_by_" ++ mangle author ++ ".fb2"
where
mangle s = intercalate "_" $ filter (/= "_") $ groupBy (\a b -> a /= '_' && b /= '_') $ [ if allowed c then c else '_' | c <- s ]
allowed c = isAscii c && isAlphaNum c | 353 | defaultFilename storyID title author = mangle storyID ++ "_" ++ mangle title ++ "_by_" ++ mangle author ++ ".fb2"
where
mangle s = intercalate "_" $ filter (/= "_") $ groupBy (\a b -> a /= '_' && b /= '_') $ [ if allowed c then c else '_' | c <- s ]
allowed c = isAscii c && isAlphaNum c | 297 | false | true | 1 | 13 | 81 | 156 | 77 | 79 | null | null |
egaburov/funstuff | Haskell/fun-with-types/codes/Coercion.hs | apache-2.0 | tcons = cons three $ cons two $ cons two $ [one]
where one = 1::Integer
two = 2.0::Double
three = 3::Integer | 127 | tcons = cons three $ cons two $ cons two $ [one]
where one = 1::Integer
two = 2.0::Double
three = 3::Integer | 127 | tcons = cons three $ cons two $ cons two $ [one]
where one = 1::Integer
two = 2.0::Double
three = 3::Integer | 127 | false | false | 1 | 8 | 40 | 60 | 30 | 30 | null | null |
trskop/cabal | Cabal/Distribution/Simple/Program/Db.hs | bsd-3-clause | -- | List all configured programs.
configuredPrograms :: ProgramDb -> [ConfiguredProgram]
configuredPrograms = Map.elems . configuredProgs | 138 | configuredPrograms :: ProgramDb -> [ConfiguredProgram]
configuredPrograms = Map.elems . configuredProgs | 103 | configuredPrograms = Map.elems . configuredProgs | 48 | true | true | 1 | 8 | 15 | 33 | 15 | 18 | null | null |
elbrujohalcon/hPage | src/HPage/Control.hs | bsd-3-clause | getSourceDirs :: HPage [FilePath]
getSourceDirs = get >>= return . extraSrcDirs | 79 | getSourceDirs :: HPage [FilePath]
getSourceDirs = get >>= return . extraSrcDirs | 79 | getSourceDirs = get >>= return . extraSrcDirs | 45 | false | true | 0 | 6 | 10 | 25 | 13 | 12 | null | null |
svenssonjoel/MonadObsidian | Obsidian/MonadObsidian/GenCuda.hs | bsd-3-clause | execute' :: (Input (Exp a) , Output (Exp b),Sources' (GArr (Exp a))) =>
ExecMode ->
(GArr (Exp a) -> GPU (GArr (Exp b))) ->
[Exp a] -> IO [Exp b]
execute' _ _ [] = return [] | 224 | execute' :: (Input (Exp a) , Output (Exp b),Sources' (GArr (Exp a))) =>
ExecMode ->
(GArr (Exp a) -> GPU (GArr (Exp b))) ->
[Exp a] -> IO [Exp b]
execute' _ _ [] = return [] | 223 | execute' _ _ [] = return [] | 29 | false | true | 0 | 14 | 87 | 128 | 63 | 65 | null | null |
brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/Orders/Shiplineitems.hs | mpl-2.0 | -- | Multipart request metadata.
osPayload :: Lens' OrdersShiplineitems OrdersShipLineItemsRequest
osPayload
= lens _osPayload (\ s a -> s{_osPayload = a}) | 157 | osPayload :: Lens' OrdersShiplineitems OrdersShipLineItemsRequest
osPayload
= lens _osPayload (\ s a -> s{_osPayload = a}) | 124 | osPayload
= lens _osPayload (\ s a -> s{_osPayload = a}) | 58 | true | true | 0 | 9 | 22 | 42 | 22 | 20 | null | null |
narurien/ganeti-ceph | src/Ganeti/OpParams.hs | gpl-2.0 | -- | Source instance name (remote import only).
pSourceInstance :: Field
pSourceInstance = optionalNEStringField "source_instance_name" | 135 | pSourceInstance :: Field
pSourceInstance = optionalNEStringField "source_instance_name" | 87 | pSourceInstance = optionalNEStringField "source_instance_name" | 62 | true | true | 0 | 6 | 14 | 21 | 9 | 12 | null | null |
mrak/coreutils.hs | src/wc/Wc.hs | mit | doFiles :: A.Args -> [FilePath] -> IO ()
doFiles args fs = putStr . unlines . label fs . total . map (wc' args) =<< readFiles fs | 128 | doFiles :: A.Args -> [FilePath] -> IO ()
doFiles args fs = putStr . unlines . label fs . total . map (wc' args) =<< readFiles fs | 128 | doFiles args fs = putStr . unlines . label fs . total . map (wc' args) =<< readFiles fs | 87 | false | true | 0 | 9 | 26 | 69 | 33 | 36 | null | null |
Chasego/nie | proj/lang/C++/cpp_primer_5th/[SUPPORT] learning-master/real-world-haskell/ch4/myListFunctions.hs | gpl-3.0 | safeLast _ = Nothing | 20 | safeLast _ = Nothing | 20 | safeLast _ = Nothing | 20 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
imh/plover | src/Language/Plover/Reduce.hs | mit | compoundVal (StrLit _) = False | 30 | compoundVal (StrLit _) = False | 30 | compoundVal (StrLit _) = False | 30 | false | false | 0 | 6 | 4 | 16 | 7 | 9 | null | null |
JacquesCarette/literate-scientific-software | code/drasil-data/Data/Drasil/People.hs | bsd-2-clause | tBergman = personWM "T" ["L"] "Bergman" | 63 | tBergman = personWM "T" ["L"] "Bergman" | 63 | tBergman = personWM "T" ["L"] "Bergman" | 63 | false | false | 0 | 6 | 29 | 16 | 8 | 8 | null | null |
davnils/fenwick-semi | src/Data/FenwickSemi.hs | bsd-3-clause | -- | Build a Fenwick tree given an input list.
-- Will throw an exception if given an empty list (only source of exceptions).
fromList :: Semigroup a => [a] -> FenwickSemi a
fromList [] = error "fenwick-semi: Can't construct empty tree" | 238 | fromList :: Semigroup a => [a] -> FenwickSemi a
fromList [] = error "fenwick-semi: Can't construct empty tree" | 110 | fromList [] = error "fenwick-semi: Can't construct empty tree" | 62 | true | true | 0 | 7 | 43 | 38 | 19 | 19 | null | null |
amar47shah/NICTA-TicTacToe | app/Main.hs | mit | randomTurn :: Turn
randomTurn game =
print game >>
putDoubleLine >>
either (pure . Left) randomMove game | 116 | randomTurn :: Turn
randomTurn game =
print game >>
putDoubleLine >>
either (pure . Left) randomMove game | 116 | randomTurn game =
print game >>
putDoubleLine >>
either (pure . Left) randomMove game | 97 | false | true | 0 | 8 | 28 | 39 | 19 | 20 | null | null |
randen/cabal | Cabal/Distribution/PackageDescription.hs | bsd-3-clause | knownBenchmarkTypes :: [BenchmarkType]
knownBenchmarkTypes = [ BenchmarkTypeExe (Version [1,0] []) ] | 100 | knownBenchmarkTypes :: [BenchmarkType]
knownBenchmarkTypes = [ BenchmarkTypeExe (Version [1,0] []) ] | 100 | knownBenchmarkTypes = [ BenchmarkTypeExe (Version [1,0] []) ] | 61 | false | true | 0 | 9 | 10 | 36 | 20 | 16 | null | null |
TOSPIO/yi | src/library/Yi/UI/Pango.hs | gpl-2.0 | shownRegion :: UI -> FontDescription -> WinInfo -> FBuffer -> IO Region
shownRegion ui f w b = modifyMVar (winLayoutInfo w) $ \wli -> do
(tos, cur, bos, bufEnd) <- updatePango ui f w b (winLayout wli)
return (wli{tos,cur=clampTo tos bos cur,bos,bufEnd}, mkRegion tos bos)
where clampTo lo hi x = max lo (min hi x)
-- during scrolling, cur might not lie between tos and bos,
-- so we clamp it to avoid Pango errors
{-|
== Note [PangoLayout width]
We start rendering the PangoLayout one pixel from the left of the
rendering area, which means a few +/-1 offsets in Pango rendering and
point lookup code. The reason for this is to support the "wide
cursor", which is 2 pixels wide. If we started rendering the
PangoLayout directly from the left of the rendering area instead of at
a 1-pixel offset, then the "wide cursor" would only be half-displayed
when the cursor is at the beginning of the line, and would then be a
"thin cursor".
An alternative would be to special-case the wide cursor rendering at
the beginning of the line, and draw it one pixel to the right of where
it "should" be. I haven't tried this out to see how it looks.
Reiner
-}
-- we update the regex and the buffer to avoid holding on to potential garbage.
-- These will be overwritten with correct values soon, in
-- updateWinInfoForRendering. | 1,322 | shownRegion :: UI -> FontDescription -> WinInfo -> FBuffer -> IO Region
shownRegion ui f w b = modifyMVar (winLayoutInfo w) $ \wli -> do
(tos, cur, bos, bufEnd) <- updatePango ui f w b (winLayout wli)
return (wli{tos,cur=clampTo tos bos cur,bos,bufEnd}, mkRegion tos bos)
where clampTo lo hi x = max lo (min hi x)
-- during scrolling, cur might not lie between tos and bos,
-- so we clamp it to avoid Pango errors
{-|
== Note [PangoLayout width]
We start rendering the PangoLayout one pixel from the left of the
rendering area, which means a few +/-1 offsets in Pango rendering and
point lookup code. The reason for this is to support the "wide
cursor", which is 2 pixels wide. If we started rendering the
PangoLayout directly from the left of the rendering area instead of at
a 1-pixel offset, then the "wide cursor" would only be half-displayed
when the cursor is at the beginning of the line, and would then be a
"thin cursor".
An alternative would be to special-case the wide cursor rendering at
the beginning of the line, and draw it one pixel to the right of where
it "should" be. I haven't tried this out to see how it looks.
Reiner
-}
-- we update the regex and the buffer to avoid holding on to potential garbage.
-- These will be overwritten with correct values soon, in
-- updateWinInfoForRendering. | 1,322 | shownRegion ui f w b = modifyMVar (winLayoutInfo w) $ \wli -> do
(tos, cur, bos, bufEnd) <- updatePango ui f w b (winLayout wli)
return (wli{tos,cur=clampTo tos bos cur,bos,bufEnd}, mkRegion tos bos)
where clampTo lo hi x = max lo (min hi x)
-- during scrolling, cur might not lie between tos and bos,
-- so we clamp it to avoid Pango errors
{-|
== Note [PangoLayout width]
We start rendering the PangoLayout one pixel from the left of the
rendering area, which means a few +/-1 offsets in Pango rendering and
point lookup code. The reason for this is to support the "wide
cursor", which is 2 pixels wide. If we started rendering the
PangoLayout directly from the left of the rendering area instead of at
a 1-pixel offset, then the "wide cursor" would only be half-displayed
when the cursor is at the beginning of the line, and would then be a
"thin cursor".
An alternative would be to special-case the wide cursor rendering at
the beginning of the line, and draw it one pixel to the right of where
it "should" be. I haven't tried this out to see how it looks.
Reiner
-}
-- we update the regex and the buffer to avoid holding on to potential garbage.
-- These will be overwritten with correct values soon, in
-- updateWinInfoForRendering. | 1,250 | false | true | 0 | 13 | 247 | 167 | 88 | 79 | null | null |
kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/DescribeDhcpOptions.hs | mpl-2.0 | -- | One or more filters.
--
-- 'dhcp-options-id' - The ID of a set of DHCP options.
--
-- 'key' - The key for one of the options (for example, 'domain-name').
--
-- 'value' - The value for one of the options.
--
-- 'tag':/key/=/value/ - The key/value combination of a tag assigned to the
-- resource.
--
-- 'tag-key' - The key of a tag assigned to the resource. This filter is
-- independent of the 'tag-value' filter. For example, if you use both the filter
-- "tag-key=Purpose" and the filter "tag-value=X", you get any resources
-- assigned both the tag key Purpose (regardless of what the tag's value is),
-- and the tag value X (regardless of what the tag's key is). If you want to
-- list only resources where Purpose is X, see the 'tag':/key/=/value/ filter.
--
-- 'tag-value' - The value of a tag assigned to the resource. This filter is
-- independent of the 'tag-key' filter.
--
--
ddoFilters :: Lens' DescribeDhcpOptions [Filter]
ddoFilters = lens _ddoFilters (\s a -> s { _ddoFilters = a }) . _List | 1,011 | ddoFilters :: Lens' DescribeDhcpOptions [Filter]
ddoFilters = lens _ddoFilters (\s a -> s { _ddoFilters = a }) . _List | 118 | ddoFilters = lens _ddoFilters (\s a -> s { _ddoFilters = a }) . _List | 69 | true | true | 0 | 10 | 184 | 68 | 47 | 21 | null | null |
section77/datenverbrauch | src/Main.hs | bsd-3-clause | run :: AppArgs -> IO ()
run ShowVersion = printf "version: %s\n" (showVersion version) | 86 | run :: AppArgs -> IO ()
run ShowVersion = printf "version: %s\n" (showVersion version) | 86 | run ShowVersion = printf "version: %s\n" (showVersion version) | 62 | false | true | 0 | 7 | 13 | 34 | 16 | 18 | null | null |
Paow/encore | src/types/Typechecker/Typechecker.hs | bsd-3-clause | meetRequiredMethods :: [MethodDecl] -> [Type] -> TypecheckM ()
meetRequiredMethods cMethods traits = do
tdeclPairs <- mapM tdeclAssoc traits
let reqMethodPairs = collectReqPairs tdeclPairs
tMethods <- concatMapM collectMethods tdeclPairs
let allMethods = map mheader cMethods ++ tMethods
mapM_ (matchMethod allMethods) reqMethodPairs
where
tdeclAssoc :: Type -> TypecheckM (Type, TraitDecl)
tdeclAssoc t = do
tdecl <- findTrait t
return (t, tdecl)
collectReqPairs :: [(Type, TraitDecl)] -> [(Type, FunctionHeader)]
collectReqPairs tdeclPairs =
let reqMethods = map (second requiredMethods) tdeclPairs
in concatMap (\(t, reqs) ->
map (\req -> (t, req)) reqs)
reqMethods
collectMethods :: (Type, TraitDecl) -> TypecheckM [FunctionHeader]
collectMethods (t, tdecl) = do
let methods = tmethods tdecl
mapM (findMethod t . methodName) methods
matchMethod :: [FunctionHeader] -> (Type, FunctionHeader) -> TypecheckM ()
matchMethod provided (requirer, reqHeader) = do
expHeader <- findMethod requirer (hname reqHeader)
unlessM (anyM (matchesHeader expHeader) provided) $
tcError $ MissingMethodRequirementError expHeader requirer
matchesHeader expected actual =
let
expectedName = hname expected
expectedType = htype expected
expectedParamTypes = map ptype (hparams expected)
actualName = hname actual
actualType = htype actual
actualParamTypes = map ptype (hparams actual)
in
liftM ((actualName == expectedName &&
actualParamTypes == expectedParamTypes) &&) $
actualType `subtypeOf` expectedType | 1,747 | meetRequiredMethods :: [MethodDecl] -> [Type] -> TypecheckM ()
meetRequiredMethods cMethods traits = do
tdeclPairs <- mapM tdeclAssoc traits
let reqMethodPairs = collectReqPairs tdeclPairs
tMethods <- concatMapM collectMethods tdeclPairs
let allMethods = map mheader cMethods ++ tMethods
mapM_ (matchMethod allMethods) reqMethodPairs
where
tdeclAssoc :: Type -> TypecheckM (Type, TraitDecl)
tdeclAssoc t = do
tdecl <- findTrait t
return (t, tdecl)
collectReqPairs :: [(Type, TraitDecl)] -> [(Type, FunctionHeader)]
collectReqPairs tdeclPairs =
let reqMethods = map (second requiredMethods) tdeclPairs
in concatMap (\(t, reqs) ->
map (\req -> (t, req)) reqs)
reqMethods
collectMethods :: (Type, TraitDecl) -> TypecheckM [FunctionHeader]
collectMethods (t, tdecl) = do
let methods = tmethods tdecl
mapM (findMethod t . methodName) methods
matchMethod :: [FunctionHeader] -> (Type, FunctionHeader) -> TypecheckM ()
matchMethod provided (requirer, reqHeader) = do
expHeader <- findMethod requirer (hname reqHeader)
unlessM (anyM (matchesHeader expHeader) provided) $
tcError $ MissingMethodRequirementError expHeader requirer
matchesHeader expected actual =
let
expectedName = hname expected
expectedType = htype expected
expectedParamTypes = map ptype (hparams expected)
actualName = hname actual
actualType = htype actual
actualParamTypes = map ptype (hparams actual)
in
liftM ((actualName == expectedName &&
actualParamTypes == expectedParamTypes) &&) $
actualType `subtypeOf` expectedType | 1,747 | meetRequiredMethods cMethods traits = do
tdeclPairs <- mapM tdeclAssoc traits
let reqMethodPairs = collectReqPairs tdeclPairs
tMethods <- concatMapM collectMethods tdeclPairs
let allMethods = map mheader cMethods ++ tMethods
mapM_ (matchMethod allMethods) reqMethodPairs
where
tdeclAssoc :: Type -> TypecheckM (Type, TraitDecl)
tdeclAssoc t = do
tdecl <- findTrait t
return (t, tdecl)
collectReqPairs :: [(Type, TraitDecl)] -> [(Type, FunctionHeader)]
collectReqPairs tdeclPairs =
let reqMethods = map (second requiredMethods) tdeclPairs
in concatMap (\(t, reqs) ->
map (\req -> (t, req)) reqs)
reqMethods
collectMethods :: (Type, TraitDecl) -> TypecheckM [FunctionHeader]
collectMethods (t, tdecl) = do
let methods = tmethods tdecl
mapM (findMethod t . methodName) methods
matchMethod :: [FunctionHeader] -> (Type, FunctionHeader) -> TypecheckM ()
matchMethod provided (requirer, reqHeader) = do
expHeader <- findMethod requirer (hname reqHeader)
unlessM (anyM (matchesHeader expHeader) provided) $
tcError $ MissingMethodRequirementError expHeader requirer
matchesHeader expected actual =
let
expectedName = hname expected
expectedType = htype expected
expectedParamTypes = map ptype (hparams expected)
actualName = hname actual
actualType = htype actual
actualParamTypes = map ptype (hparams actual)
in
liftM ((actualName == expectedName &&
actualParamTypes == expectedParamTypes) &&) $
actualType `subtypeOf` expectedType | 1,684 | false | true | 0 | 13 | 448 | 547 | 268 | 279 | null | null |
facebookincubator/duckling | Duckling/Time/Helpers.hs | bsd-3-clause | notLatent :: TimeData -> TimeData
notLatent td = td {TTime.latent = False} | 74 | notLatent :: TimeData -> TimeData
notLatent td = td {TTime.latent = False} | 74 | notLatent td = td {TTime.latent = False} | 40 | false | true | 0 | 6 | 11 | 28 | 15 | 13 | null | null |
FPBrno/FPBrno.github.io | gen/test-html.hs | artistic-2.0 | meetups :: [Meetup]
meetups = checkMeetupsIndex
[ Meetup
{ indexM = 11
, presentations =
[ Presentation
{ title = "Functional Programming Introduction"
, author = "František Kocun (CEAi)"
, language = [Sk]
, tags =
[ Effects
, Introduction
, PurelyFunctional
, Scala
]
, slides = Present "https://docs.google.com/presentation/d/190Q6FdXV2cziu0_sWR7CRS3t2V3jmj5yRKgNl7rBtQc/edit#slide=id.p"
, audio = NotPresent "Player available"
, player = Present "https://www.youtube.com/watch?v=aue7s8WLwOU"
}
, Presentation
{ title = "DSLs and Generalized Recursion Schemes"
, author = "Marek Kidoň (Tymbe)"
, language = [Cz]
, tags =
[ FixPoint
, RecursionSchemes
, Scala
, Theory
]
, slides = Present "https://github.com/Tr1p0d/talks/tree/master/DSLs-and-Recursion-Schemes/presentation"
, audio = NotPresent "Player available"
, player = Present "https://www.youtube.com/watch?v=Xr9ryB-1U1Q"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-11-22 18:00:00 +01:00"
, participants = Just 20
, sponsors = [CEAI]
}
, Meetup
{ indexM = 10
, presentations =
[ Presentation
{ title = "Reason - krátký úvod do jazyka z pohledu JS vývojáře"
, author = "Pavel Kepka (Blueberry)"
, language = [Cz]
, tags =
[ ReasonML
, Introduction
, Motivation
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20180522-reason-intro"
, audio = Present "https://soundcloud.com/fpbrno/functional-programming-brno-2018-05-22-reasonml-intro-pavel-kepka"
, player = NotPresent "Not recorded"
}
, Presentation
{ title = "Benchmarking in Elixir"
, author = "Antonín Hackenberg (Blueberry)"
, language = [Cz]
, tags =
[ Elixir
, Performance
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20180522-benchmarking-in-elixir"
, audio = Present "https://soundcloud.com/fpbrno/functional-programming-brno-2018-05-22-benchamarking-in-elixir-antonin-hackenberg"
, player = NotPresent "Not recorded"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-05-22 18:00:00 +01:00"
, participants = Just 20
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 9
, presentations =
[ Presentation
{ title = "Elixir"
, author = "Zdeněk Mejzlík (Altworx)"
, language = [Sk]
, tags =
[ Elixir
, Introduction
, Motivation
, Concurrent
]
, slides = Present "https://github.com/altworx/elixir-presentation"
, audio = NotPresent "Not recorded"
, player = NotPresent "Not recorded"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-02-27 18:00:00 +01:00"
, participants = Just 30
, sponsors = [Altworx, KiwiCom]
}
, Meetup
{ indexM = 8
, presentations =
[ Presentation
{ title = "Clojure: A Functional Lisp on the JVM"
, author = "Juraj Martinka"
, language = [Sk]
, tags =
[ Clojure
, Lisp
, Introduction
, Motivation
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20171024-clojure-a-functional-lisp-on-the-jvm"
, audio = Present "https://soundcloud.com/fpbrno/fpbrno-clojure-presentation-oct-24-1809"
, player = Present "https://www.youtube.com/watch?v=YeUOWaM_Gk8"
}
]
, lookingForPresentations = False
, time = Just $ read "2017-10-24 18:00:00 +02:00"
, participants = Just 18
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 7
, presentations =
[ Presentation
{ title = "Purely Functional Programming Essentials"
, author = "Marek Kidoň"
, language = [Cz]
, tags =
[ Haskell
, Introduction
, Motivation
, PurelyFunctional
, Types
]
, slides = Present "fpb-7/thereIsNoTurningBack.pdf"
, audio = NotYet
, player = NotYet
}
, Presentation
{ title = "Extensible Effects"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Effects]
, slides = Present "fpb-7/freer-effects/slides.html"
, audio = Present "fpb-7/fpb-7-2-extensible-effects.ogg"
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2017-02-22 19:00:00 +01:00"
, participants = Just 55
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 6
, presentations =
[ Presentation
{ title = "Introduction to Agda"
, author = "Adam Krupicka"
, language = [Sk]
, tags = [Agda, Theory]
, slides = Present "fpb-6/html/talk.html"
, audio = NotPresent "Not recorded"
, player = NotPresent "No audio recording"
}
]
, lookingForPresentations = False
, time = Just $ read "2016-10-13 19:00:00 +02:00"
, participants = Just 20
, sponsors = []
}
, Meetup
{ indexM = 5
, presentations =
[ Presentation
{ title = "Types and Higher Groupoids"
, author = "John Bourke"
, language = [En]
, tags = [HoTT, Theory]
, slides = NotYet
, audio = Present "fpb-5/fpb-5.ogg"
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2016-07-27 18:00:00 +02:00"
, participants = Just 12
, sponsors = []
}
, Meetup
{ indexM = 4
, presentations =
[ Presentation
{ title = "Elm - the Best of Functional Programming in Your Browser"
, author = "Adam Kövári"
, language = [En]
, tags = [Elm, Web]
, slides = Present "fpb-4/elm_best_of_fp_in_browser.pdf"
, audio = NotYet
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2016-06-28 18:30:00 +02:00"
, participants = Just 8
, sponsors = [Ixperta]
}
, Meetup
{ indexM = 3
, presentations =
[ Presentation
{ title = "Erlang for Haskellers"
, author = "Hynek Vychodil"
, language = [Cz]
, tags = [Erlang, Concurrent, Reliability, HotCodeSwap]
, slides = Present "fpb-3/erlang_for_haskellers.pdf"
, audio = Present "fpb-3/fpb-3.ogg"
, player = Present "fpb-3/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-11-25 18:30:00 +01:00"
, participants = Just 28
, sponsors = []
}
, Meetup
{ indexM = 2
, presentations =
[ Presentation
{ title =
"Types as values: Derive correctness from practicality"
, author = "Peter"
, language = [Sk]
, tags = [Haskell, Types]
, slides = Present "fpb-2/types-as-values.html"
, audio = NotPresent "I forgot to start recording"
, player = NotPresent "Does not make sense without audio"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-09-30 19:00:00 +02:00"
, participants = Just 14
, sponsors = []
}
, Meetup
{ indexM = 1
, presentations =
[ Presentation
{ title = "Apples and Oranges"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Types]
, slides = Present "fpb-1/fpb-1.html"
, audio = Present "fpb-1/fpb-1.ogg"
, player = Present "fpb-1/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-05-12 18:00:00 +02:00"
, participants = Just $ 4 + 18
, sponsors = []
}
, Meetup
{ indexM = 0
, presentations =
[ Presentation
{ title = "There Is No Compiler"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Compiler]
, slides = Present "fpb-0/fpb-0.html"
, audio = Present "fpb-0/fpb-0.ogg"
, player = Present "fpb-0/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-02-16 19:00:00 +01:00"
, participants = Just 6
, sponsors = []
}
] | 10,083 | meetups :: [Meetup]
meetups = checkMeetupsIndex
[ Meetup
{ indexM = 11
, presentations =
[ Presentation
{ title = "Functional Programming Introduction"
, author = "František Kocun (CEAi)"
, language = [Sk]
, tags =
[ Effects
, Introduction
, PurelyFunctional
, Scala
]
, slides = Present "https://docs.google.com/presentation/d/190Q6FdXV2cziu0_sWR7CRS3t2V3jmj5yRKgNl7rBtQc/edit#slide=id.p"
, audio = NotPresent "Player available"
, player = Present "https://www.youtube.com/watch?v=aue7s8WLwOU"
}
, Presentation
{ title = "DSLs and Generalized Recursion Schemes"
, author = "Marek Kidoň (Tymbe)"
, language = [Cz]
, tags =
[ FixPoint
, RecursionSchemes
, Scala
, Theory
]
, slides = Present "https://github.com/Tr1p0d/talks/tree/master/DSLs-and-Recursion-Schemes/presentation"
, audio = NotPresent "Player available"
, player = Present "https://www.youtube.com/watch?v=Xr9ryB-1U1Q"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-11-22 18:00:00 +01:00"
, participants = Just 20
, sponsors = [CEAI]
}
, Meetup
{ indexM = 10
, presentations =
[ Presentation
{ title = "Reason - krátký úvod do jazyka z pohledu JS vývojáře"
, author = "Pavel Kepka (Blueberry)"
, language = [Cz]
, tags =
[ ReasonML
, Introduction
, Motivation
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20180522-reason-intro"
, audio = Present "https://soundcloud.com/fpbrno/functional-programming-brno-2018-05-22-reasonml-intro-pavel-kepka"
, player = NotPresent "Not recorded"
}
, Presentation
{ title = "Benchmarking in Elixir"
, author = "Antonín Hackenberg (Blueberry)"
, language = [Cz]
, tags =
[ Elixir
, Performance
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20180522-benchmarking-in-elixir"
, audio = Present "https://soundcloud.com/fpbrno/functional-programming-brno-2018-05-22-benchamarking-in-elixir-antonin-hackenberg"
, player = NotPresent "Not recorded"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-05-22 18:00:00 +01:00"
, participants = Just 20
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 9
, presentations =
[ Presentation
{ title = "Elixir"
, author = "Zdeněk Mejzlík (Altworx)"
, language = [Sk]
, tags =
[ Elixir
, Introduction
, Motivation
, Concurrent
]
, slides = Present "https://github.com/altworx/elixir-presentation"
, audio = NotPresent "Not recorded"
, player = NotPresent "Not recorded"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-02-27 18:00:00 +01:00"
, participants = Just 30
, sponsors = [Altworx, KiwiCom]
}
, Meetup
{ indexM = 8
, presentations =
[ Presentation
{ title = "Clojure: A Functional Lisp on the JVM"
, author = "Juraj Martinka"
, language = [Sk]
, tags =
[ Clojure
, Lisp
, Introduction
, Motivation
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20171024-clojure-a-functional-lisp-on-the-jvm"
, audio = Present "https://soundcloud.com/fpbrno/fpbrno-clojure-presentation-oct-24-1809"
, player = Present "https://www.youtube.com/watch?v=YeUOWaM_Gk8"
}
]
, lookingForPresentations = False
, time = Just $ read "2017-10-24 18:00:00 +02:00"
, participants = Just 18
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 7
, presentations =
[ Presentation
{ title = "Purely Functional Programming Essentials"
, author = "Marek Kidoň"
, language = [Cz]
, tags =
[ Haskell
, Introduction
, Motivation
, PurelyFunctional
, Types
]
, slides = Present "fpb-7/thereIsNoTurningBack.pdf"
, audio = NotYet
, player = NotYet
}
, Presentation
{ title = "Extensible Effects"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Effects]
, slides = Present "fpb-7/freer-effects/slides.html"
, audio = Present "fpb-7/fpb-7-2-extensible-effects.ogg"
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2017-02-22 19:00:00 +01:00"
, participants = Just 55
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 6
, presentations =
[ Presentation
{ title = "Introduction to Agda"
, author = "Adam Krupicka"
, language = [Sk]
, tags = [Agda, Theory]
, slides = Present "fpb-6/html/talk.html"
, audio = NotPresent "Not recorded"
, player = NotPresent "No audio recording"
}
]
, lookingForPresentations = False
, time = Just $ read "2016-10-13 19:00:00 +02:00"
, participants = Just 20
, sponsors = []
}
, Meetup
{ indexM = 5
, presentations =
[ Presentation
{ title = "Types and Higher Groupoids"
, author = "John Bourke"
, language = [En]
, tags = [HoTT, Theory]
, slides = NotYet
, audio = Present "fpb-5/fpb-5.ogg"
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2016-07-27 18:00:00 +02:00"
, participants = Just 12
, sponsors = []
}
, Meetup
{ indexM = 4
, presentations =
[ Presentation
{ title = "Elm - the Best of Functional Programming in Your Browser"
, author = "Adam Kövári"
, language = [En]
, tags = [Elm, Web]
, slides = Present "fpb-4/elm_best_of_fp_in_browser.pdf"
, audio = NotYet
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2016-06-28 18:30:00 +02:00"
, participants = Just 8
, sponsors = [Ixperta]
}
, Meetup
{ indexM = 3
, presentations =
[ Presentation
{ title = "Erlang for Haskellers"
, author = "Hynek Vychodil"
, language = [Cz]
, tags = [Erlang, Concurrent, Reliability, HotCodeSwap]
, slides = Present "fpb-3/erlang_for_haskellers.pdf"
, audio = Present "fpb-3/fpb-3.ogg"
, player = Present "fpb-3/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-11-25 18:30:00 +01:00"
, participants = Just 28
, sponsors = []
}
, Meetup
{ indexM = 2
, presentations =
[ Presentation
{ title =
"Types as values: Derive correctness from practicality"
, author = "Peter"
, language = [Sk]
, tags = [Haskell, Types]
, slides = Present "fpb-2/types-as-values.html"
, audio = NotPresent "I forgot to start recording"
, player = NotPresent "Does not make sense without audio"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-09-30 19:00:00 +02:00"
, participants = Just 14
, sponsors = []
}
, Meetup
{ indexM = 1
, presentations =
[ Presentation
{ title = "Apples and Oranges"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Types]
, slides = Present "fpb-1/fpb-1.html"
, audio = Present "fpb-1/fpb-1.ogg"
, player = Present "fpb-1/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-05-12 18:00:00 +02:00"
, participants = Just $ 4 + 18
, sponsors = []
}
, Meetup
{ indexM = 0
, presentations =
[ Presentation
{ title = "There Is No Compiler"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Compiler]
, slides = Present "fpb-0/fpb-0.html"
, audio = Present "fpb-0/fpb-0.ogg"
, player = Present "fpb-0/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-02-16 19:00:00 +01:00"
, participants = Just 6
, sponsors = []
}
] | 10,083 | meetups = checkMeetupsIndex
[ Meetup
{ indexM = 11
, presentations =
[ Presentation
{ title = "Functional Programming Introduction"
, author = "František Kocun (CEAi)"
, language = [Sk]
, tags =
[ Effects
, Introduction
, PurelyFunctional
, Scala
]
, slides = Present "https://docs.google.com/presentation/d/190Q6FdXV2cziu0_sWR7CRS3t2V3jmj5yRKgNl7rBtQc/edit#slide=id.p"
, audio = NotPresent "Player available"
, player = Present "https://www.youtube.com/watch?v=aue7s8WLwOU"
}
, Presentation
{ title = "DSLs and Generalized Recursion Schemes"
, author = "Marek Kidoň (Tymbe)"
, language = [Cz]
, tags =
[ FixPoint
, RecursionSchemes
, Scala
, Theory
]
, slides = Present "https://github.com/Tr1p0d/talks/tree/master/DSLs-and-Recursion-Schemes/presentation"
, audio = NotPresent "Player available"
, player = Present "https://www.youtube.com/watch?v=Xr9ryB-1U1Q"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-11-22 18:00:00 +01:00"
, participants = Just 20
, sponsors = [CEAI]
}
, Meetup
{ indexM = 10
, presentations =
[ Presentation
{ title = "Reason - krátký úvod do jazyka z pohledu JS vývojáře"
, author = "Pavel Kepka (Blueberry)"
, language = [Cz]
, tags =
[ ReasonML
, Introduction
, Motivation
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20180522-reason-intro"
, audio = Present "https://soundcloud.com/fpbrno/functional-programming-brno-2018-05-22-reasonml-intro-pavel-kepka"
, player = NotPresent "Not recorded"
}
, Presentation
{ title = "Benchmarking in Elixir"
, author = "Antonín Hackenberg (Blueberry)"
, language = [Cz]
, tags =
[ Elixir
, Performance
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20180522-benchmarking-in-elixir"
, audio = Present "https://soundcloud.com/fpbrno/functional-programming-brno-2018-05-22-benchamarking-in-elixir-antonin-hackenberg"
, player = NotPresent "Not recorded"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-05-22 18:00:00 +01:00"
, participants = Just 20
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 9
, presentations =
[ Presentation
{ title = "Elixir"
, author = "Zdeněk Mejzlík (Altworx)"
, language = [Sk]
, tags =
[ Elixir
, Introduction
, Motivation
, Concurrent
]
, slides = Present "https://github.com/altworx/elixir-presentation"
, audio = NotPresent "Not recorded"
, player = NotPresent "Not recorded"
}
]
, lookingForPresentations = False
, time = Just $ read "2018-02-27 18:00:00 +01:00"
, participants = Just 30
, sponsors = [Altworx, KiwiCom]
}
, Meetup
{ indexM = 8
, presentations =
[ Presentation
{ title = "Clojure: A Functional Lisp on the JVM"
, author = "Juraj Martinka"
, language = [Sk]
, tags =
[ Clojure
, Lisp
, Introduction
, Motivation
]
, slides = Present "https://www.slideshare.net/FPBrno/fpbrno-20171024-clojure-a-functional-lisp-on-the-jvm"
, audio = Present "https://soundcloud.com/fpbrno/fpbrno-clojure-presentation-oct-24-1809"
, player = Present "https://www.youtube.com/watch?v=YeUOWaM_Gk8"
}
]
, lookingForPresentations = False
, time = Just $ read "2017-10-24 18:00:00 +02:00"
, participants = Just 18
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 7
, presentations =
[ Presentation
{ title = "Purely Functional Programming Essentials"
, author = "Marek Kidoň"
, language = [Cz]
, tags =
[ Haskell
, Introduction
, Motivation
, PurelyFunctional
, Types
]
, slides = Present "fpb-7/thereIsNoTurningBack.pdf"
, audio = NotYet
, player = NotYet
}
, Presentation
{ title = "Extensible Effects"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Effects]
, slides = Present "fpb-7/freer-effects/slides.html"
, audio = Present "fpb-7/fpb-7-2-extensible-effects.ogg"
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2017-02-22 19:00:00 +01:00"
, participants = Just 55
, sponsors = [KiwiCom]
}
, Meetup
{ indexM = 6
, presentations =
[ Presentation
{ title = "Introduction to Agda"
, author = "Adam Krupicka"
, language = [Sk]
, tags = [Agda, Theory]
, slides = Present "fpb-6/html/talk.html"
, audio = NotPresent "Not recorded"
, player = NotPresent "No audio recording"
}
]
, lookingForPresentations = False
, time = Just $ read "2016-10-13 19:00:00 +02:00"
, participants = Just 20
, sponsors = []
}
, Meetup
{ indexM = 5
, presentations =
[ Presentation
{ title = "Types and Higher Groupoids"
, author = "John Bourke"
, language = [En]
, tags = [HoTT, Theory]
, slides = NotYet
, audio = Present "fpb-5/fpb-5.ogg"
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2016-07-27 18:00:00 +02:00"
, participants = Just 12
, sponsors = []
}
, Meetup
{ indexM = 4
, presentations =
[ Presentation
{ title = "Elm - the Best of Functional Programming in Your Browser"
, author = "Adam Kövári"
, language = [En]
, tags = [Elm, Web]
, slides = Present "fpb-4/elm_best_of_fp_in_browser.pdf"
, audio = NotYet
, player = NotYet
}
]
, lookingForPresentations = False
, time = Just $ read "2016-06-28 18:30:00 +02:00"
, participants = Just 8
, sponsors = [Ixperta]
}
, Meetup
{ indexM = 3
, presentations =
[ Presentation
{ title = "Erlang for Haskellers"
, author = "Hynek Vychodil"
, language = [Cz]
, tags = [Erlang, Concurrent, Reliability, HotCodeSwap]
, slides = Present "fpb-3/erlang_for_haskellers.pdf"
, audio = Present "fpb-3/fpb-3.ogg"
, player = Present "fpb-3/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-11-25 18:30:00 +01:00"
, participants = Just 28
, sponsors = []
}
, Meetup
{ indexM = 2
, presentations =
[ Presentation
{ title =
"Types as values: Derive correctness from practicality"
, author = "Peter"
, language = [Sk]
, tags = [Haskell, Types]
, slides = Present "fpb-2/types-as-values.html"
, audio = NotPresent "I forgot to start recording"
, player = NotPresent "Does not make sense without audio"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-09-30 19:00:00 +02:00"
, participants = Just 14
, sponsors = []
}
, Meetup
{ indexM = 1
, presentations =
[ Presentation
{ title = "Apples and Oranges"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Types]
, slides = Present "fpb-1/fpb-1.html"
, audio = Present "fpb-1/fpb-1.ogg"
, player = Present "fpb-1/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-05-12 18:00:00 +02:00"
, participants = Just $ 4 + 18
, sponsors = []
}
, Meetup
{ indexM = 0
, presentations =
[ Presentation
{ title = "There Is No Compiler"
, author = "Matej"
, language = [Sk]
, tags = [Haskell, Compiler]
, slides = Present "fpb-0/fpb-0.html"
, audio = Present "fpb-0/fpb-0.ogg"
, player = Present "fpb-0/player.html"
}
]
, lookingForPresentations = False
, time = Just $ read "2015-02-16 19:00:00 +01:00"
, participants = Just 6
, sponsors = []
}
] | 10,063 | false | true | 0 | 11 | 4,425 | 1,663 | 1,025 | 638 | null | null |
Paulo-Janrain/timeparsers | Data/Time/Parsers/Util.hs | bsd-3-clause | -- | Use given options and parser to parse a single Timestamp.
-- always feeds empty, so a Partial result is never returned.
-- Ignores preceding and trailing whitespace.
parseWithOptions :: Options -> OptionedParser a ->
B.ByteString -> Result a
parseWithOptions opt p = flip feed B.empty . (parse $ runReaderT p' opt)
where
p' = onlyParse (lift skipSpace *> p <* lift skipSpace)
-- | Use default options to parse single Timestamp with a given parser,
-- ignoring preceding and trailing whitespace | 525 | parseWithOptions :: Options -> OptionedParser a ->
B.ByteString -> Result a
parseWithOptions opt p = flip feed B.empty . (parse $ runReaderT p' opt)
where
p' = onlyParse (lift skipSpace *> p <* lift skipSpace)
-- | Use default options to parse single Timestamp with a given parser,
-- ignoring preceding and trailing whitespace | 354 | parseWithOptions opt p = flip feed B.empty . (parse $ runReaderT p' opt)
where
p' = onlyParse (lift skipSpace *> p <* lift skipSpace)
-- | Use default options to parse single Timestamp with a given parser,
-- ignoring preceding and trailing whitespace | 258 | true | true | 1 | 9 | 109 | 100 | 47 | 53 | null | null |
mapinguari/SC_HS_Proxy | src/Proxy/Query/Unit.hs | mit | tileHeight TerranRefinery = 2 | 29 | tileHeight TerranRefinery = 2 | 29 | tileHeight TerranRefinery = 2 | 29 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
fmthoma/ghc | compiler/typecheck/TcType.hs | bsd-3-clause | isRhoTy (FunTy a r) = not (isPredTy a) && isRhoTy r | 53 | isRhoTy (FunTy a r) = not (isPredTy a) && isRhoTy r | 53 | isRhoTy (FunTy a r) = not (isPredTy a) && isRhoTy r | 53 | false | false | 0 | 8 | 12 | 34 | 15 | 19 | null | null |
arnizamani/occam | Haskell.hs | mit | matchPatExp (HsPVar (HsIdent (x:xs))) (HsVar (UnQual c)) | isUpper x
= HsIdent (x:xs) == c | 98 | matchPatExp (HsPVar (HsIdent (x:xs))) (HsVar (UnQual c)) | isUpper x
= HsIdent (x:xs) == c | 98 | matchPatExp (HsPVar (HsIdent (x:xs))) (HsVar (UnQual c)) | isUpper x
= HsIdent (x:xs) == c | 98 | false | false | 3 | 11 | 22 | 67 | 31 | 36 | null | null |
seereason/ghcjs | utils/updateTestSuite.hs | mit | filterField :: String -> [String] -> [String]
filterField x = filter (not . ((' ':x++":")`isInfixIC`)) | 102 | filterField :: String -> [String] -> [String]
filterField x = filter (not . ((' ':x++":")`isInfixIC`)) | 102 | filterField x = filter (not . ((' ':x++":")`isInfixIC`)) | 56 | false | true | 0 | 11 | 14 | 55 | 31 | 24 | null | null |
phylake/AMF | Data/Amf/Deserialize.hs | bsd-3-clause | fromU29ARef :: U29 -> Parser Amf
fromU29ARef = return . AmfArray . U29A_Ref | 75 | fromU29ARef :: U29 -> Parser Amf
fromU29ARef = return . AmfArray . U29A_Ref | 75 | fromU29ARef = return . AmfArray . U29A_Ref | 42 | false | true | 0 | 6 | 12 | 26 | 13 | 13 | null | null |
ghorn/cs240h-class | Lab2/Rect.hs | bsd-3-clause | getMbr :: Rect -> Rect -> Rect
getMbr a b = Rect { rectMinX = min (rectMinX a) (rectMinX b)
, rectMinY = min (rectMinY a) (rectMinY b)
, rectMaxX = max (rectMaxX a) (rectMaxX b)
, rectMaxY = max (rectMaxY a) (rectMaxY b)
} | 294 | getMbr :: Rect -> Rect -> Rect
getMbr a b = Rect { rectMinX = min (rectMinX a) (rectMinX b)
, rectMinY = min (rectMinY a) (rectMinY b)
, rectMaxX = max (rectMaxX a) (rectMaxX b)
, rectMaxY = max (rectMaxY a) (rectMaxY b)
} | 294 | getMbr a b = Rect { rectMinX = min (rectMinX a) (rectMinX b)
, rectMinY = min (rectMinY a) (rectMinY b)
, rectMaxX = max (rectMaxX a) (rectMaxX b)
, rectMaxY = max (rectMaxY a) (rectMaxY b)
} | 263 | false | true | 0 | 10 | 116 | 123 | 62 | 61 | null | null |
tekul/cryptonite | tests/KAT_AES/KATOCB3.hs | bsd-3-clause | nonce1 = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b" | 59 | nonce1 = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b" | 59 | nonce1 = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b" | 59 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
cgaebel/resource-effect | test/Test.hs | bsd-3-clause | main :: IO ()
main = defaultMain tests | 38 | main :: IO ()
main = defaultMain tests | 38 | main = defaultMain tests | 24 | false | true | 0 | 7 | 7 | 25 | 10 | 15 | null | null |
geekingfrog/advent-of-code | src/Y2018/Day04.hs | bsd-3-clause | parseShift :: Parser Shift
parseShift = do
(d, g) <- parseGuardLine
Shift d g <$> parseStatuses | 99 | parseShift :: Parser Shift
parseShift = do
(d, g) <- parseGuardLine
Shift d g <$> parseStatuses | 99 | parseShift = do
(d, g) <- parseGuardLine
Shift d g <$> parseStatuses | 72 | false | true | 0 | 8 | 19 | 39 | 19 | 20 | null | null |
jaanos/TPJ-2015-16 | microhaskell/Exercise2_mh.hs | mit | n :: Integer ;
n = 42 | 21 | n :: Integer
n = 42 | 19 | n = 42 | 6 | false | true | 2 | 5 | 6 | 19 | 7 | 12 | null | null |
skywind3000/language | haskell/lazy_list.hs | mit | combo (x, y) = [(a + b + c) | (a, b, c) <- (zip3 (every2 x) (every4 y) [0..])] | 78 | combo (x, y) = [(a + b + c) | (a, b, c) <- (zip3 (every2 x) (every4 y) [0..])] | 78 | combo (x, y) = [(a + b + c) | (a, b, c) <- (zip3 (every2 x) (every4 y) [0..])] | 78 | false | false | 0 | 11 | 19 | 71 | 39 | 32 | null | null |
opqdonut/riot | Boot.hs | gpl-2.0 | packages :: [String]
packages = [ "riot" ] | 42 | packages :: [String]
packages = [ "riot" ] | 42 | packages = [ "riot" ] | 21 | false | true | 0 | 7 | 7 | 24 | 11 | 13 | null | null |
crockeo/netwire-pong | src/Config.hs | mit | {-|
The speed of acceleration of a given paddle.
-}
accelSpeed :: Float
accelSpeed = 200 | 90 | accelSpeed :: Float
accelSpeed = 200 | 36 | accelSpeed = 200 | 16 | true | true | 0 | 6 | 17 | 19 | 8 | 11 | null | null |
Solonarv/Zipper | Zipper.hs | mit | zright (Zipper ls c []) = zright (Zipper [] c (reverse ls)) | 59 | zright (Zipper ls c []) = zright (Zipper [] c (reverse ls)) | 59 | zright (Zipper ls c []) = zright (Zipper [] c (reverse ls)) | 59 | false | false | 0 | 9 | 11 | 42 | 20 | 22 | null | null |
ocharles/SSAO-example | src/GLObjects.hs | bsd-3-clause | newRenderbuffer :: GLenum -> GLsizei -> GLsizei -> IO Renderbuffer
newRenderbuffer internalFormat width height =
do name <- create glCreateRenderbuffers
glNamedRenderbufferStorage name internalFormat width height
pure (Renderbuffer name) | 249 | newRenderbuffer :: GLenum -> GLsizei -> GLsizei -> IO Renderbuffer
newRenderbuffer internalFormat width height =
do name <- create glCreateRenderbuffers
glNamedRenderbufferStorage name internalFormat width height
pure (Renderbuffer name) | 249 | newRenderbuffer internalFormat width height =
do name <- create glCreateRenderbuffers
glNamedRenderbufferStorage name internalFormat width height
pure (Renderbuffer name) | 182 | false | true | 0 | 9 | 39 | 67 | 30 | 37 | null | null |
olsner/ghc | compiler/simplCore/SetLevels.hs | bsd-3-clause | destLevel :: LevelEnv -> DVarSet
-> Bool -- True <=> is function
-> Bool -- True <=> is bottom
-> Level
destLevel env fvs is_function is_bot
| is_bot = tOP_LEVEL -- Send bottoming bindings to the top
-- regardless; see Note [Bottoming floats]
-- Esp Bottoming floats (1)
| Just n_args <- floatLams env
, n_args > 0 -- n=0 case handled uniformly by the 'otherwise' case
, is_function
, countFreeIds fvs <= n_args
= tOP_LEVEL -- Send functions to top level; see
-- the comments with isFunction
| otherwise = maxFvLevel isId env fvs | 646 | destLevel :: LevelEnv -> DVarSet
-> Bool -- True <=> is function
-> Bool -- True <=> is bottom
-> Level
destLevel env fvs is_function is_bot
| is_bot = tOP_LEVEL -- Send bottoming bindings to the top
-- regardless; see Note [Bottoming floats]
-- Esp Bottoming floats (1)
| Just n_args <- floatLams env
, n_args > 0 -- n=0 case handled uniformly by the 'otherwise' case
, is_function
, countFreeIds fvs <= n_args
= tOP_LEVEL -- Send functions to top level; see
-- the comments with isFunction
| otherwise = maxFvLevel isId env fvs | 646 | destLevel env fvs is_function is_bot
| is_bot = tOP_LEVEL -- Send bottoming bindings to the top
-- regardless; see Note [Bottoming floats]
-- Esp Bottoming floats (1)
| Just n_args <- floatLams env
, n_args > 0 -- n=0 case handled uniformly by the 'otherwise' case
, is_function
, countFreeIds fvs <= n_args
= tOP_LEVEL -- Send functions to top level; see
-- the comments with isFunction
| otherwise = maxFvLevel isId env fvs | 508 | false | true | 0 | 10 | 211 | 118 | 57 | 61 | null | null |
GaloisInc/saw-script | src/SAWScript/Crucible/LLVM/ResolveSetupValue.hs | bsd-3-clause | toLLVMTypeErrToString :: ToLLVMTypeErr -> String
toLLVMTypeErrToString =
\case
NotYetSupported ty ->
unwords [ "SAW doesn't yet support translating Cryptol's"
, ty
, "type(s) into crucible-llvm's type system."
]
Impossible ty ->
unwords [ "User error: It's impossible to store Cryptol"
, ty
, "values in crucible-llvm's memory model."
] | 442 | toLLVMTypeErrToString :: ToLLVMTypeErr -> String
toLLVMTypeErrToString =
\case
NotYetSupported ty ->
unwords [ "SAW doesn't yet support translating Cryptol's"
, ty
, "type(s) into crucible-llvm's type system."
]
Impossible ty ->
unwords [ "User error: It's impossible to store Cryptol"
, ty
, "values in crucible-llvm's memory model."
] | 442 | toLLVMTypeErrToString =
\case
NotYetSupported ty ->
unwords [ "SAW doesn't yet support translating Cryptol's"
, ty
, "type(s) into crucible-llvm's type system."
]
Impossible ty ->
unwords [ "User error: It's impossible to store Cryptol"
, ty
, "values in crucible-llvm's memory model."
] | 393 | false | true | 0 | 9 | 154 | 59 | 31 | 28 | null | null |
rahulmutt/ghcvm | compiler/Eta/Prelude/PrimOp.hs | bsd-3-clause | primOpInfo WriteByteArrayOp_Int8 = mkGenPrimOp (fsLit "writeInt8Array#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, intPrimTy, mkStatePrimTy deltaTy] (mkStatePrimTy deltaTy) | 190 | primOpInfo WriteByteArrayOp_Int8 = mkGenPrimOp (fsLit "writeInt8Array#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, intPrimTy, mkStatePrimTy deltaTy] (mkStatePrimTy deltaTy) | 190 | primOpInfo WriteByteArrayOp_Int8 = mkGenPrimOp (fsLit "writeInt8Array#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, intPrimTy, mkStatePrimTy deltaTy] (mkStatePrimTy deltaTy) | 190 | false | false | 0 | 7 | 15 | 51 | 26 | 25 | null | null |
AlexeyRaga/eta | compiler/ETA/Prelude/PrelNames.hs | bsd-3-clause | magicDictKey :: Unique
magicDictKey = mkPreludeMiscIdUnique 156 | 80 | magicDictKey :: Unique
magicDictKey = mkPreludeMiscIdUnique 156 | 80 | magicDictKey = mkPreludeMiscIdUnique 156 | 57 | false | true | 0 | 5 | 23 | 14 | 7 | 7 | null | null |
drhodes/jade2hdl | src/Jade/MemUnit.hs | bsd-3-clause | isOutputTerm :: Terminal -> J Bool
isOutputTerm (Terminal _ s) = do
let names = concat $ Bundle.getNames s
return $ DL.isInfixOf "DATA_PORT" names | 151 | isOutputTerm :: Terminal -> J Bool
isOutputTerm (Terminal _ s) = do
let names = concat $ Bundle.getNames s
return $ DL.isInfixOf "DATA_PORT" names | 151 | isOutputTerm (Terminal _ s) = do
let names = concat $ Bundle.getNames s
return $ DL.isInfixOf "DATA_PORT" names | 116 | false | true | 0 | 12 | 28 | 61 | 28 | 33 | null | null |
bruno-cadorette/TheLambdaReactor | src/Backend/Game/Helper.hs | mit | normalize v = (1/ magnitude) *^ v
where magnitude = sqrt ((v ^._x) ** 2 + (v ^._y) ** 2) | 104 | normalize v = (1/ magnitude) *^ v
where magnitude = sqrt ((v ^._x) ** 2 + (v ^._y) ** 2) | 104 | normalize v = (1/ magnitude) *^ v
where magnitude = sqrt ((v ^._x) ** 2 + (v ^._y) ** 2) | 104 | false | false | 0 | 13 | 35 | 59 | 31 | 28 | null | null |
emwap/feldspar-language | src/Feldspar/Core/Types.hs | bsd-3-clause | argType :: TypeRep (a -> b) -> TypeRep a
argType (FunType ta _) = ta | 68 | argType :: TypeRep (a -> b) -> TypeRep a
argType (FunType ta _) = ta | 68 | argType (FunType ta _) = ta | 27 | false | true | 0 | 8 | 14 | 39 | 19 | 20 | null | null |
m-alvarez/jhc | src/Doc/PPrint.hs | mit | printParen :: PPrint d a => a -> d
pprintParen = pprintPrec 11
| 63 | pprintParen :: PPrint d a => a -> d
pprintParen = pprintPrec 11 | 63 | pprintParen = pprintPrec 11 | 27 | false | true | 0 | 8 | 13 | 33 | 14 | 19 | null | null |
spatial-reasoning/zeno | src/Benchmark.hs | bsd-2-clause | checkNetwork scenario rank relations funs tymeout size dens = do
net <- if scenario then
randomScenario rank relations size
else
randomConnectedAtomicNetworkWithDensity rank relations size dens
appendFile "BENCHMARK.NETS" $ show net ++ "\n"
results <- sequence $ map
(\DecisionProcedure{ decProName = desc, decProProc = fun } -> do
res <- timeIt $ timeoutP (tymeout * 1000000) $ fun net
return $ (desc, res)
) funs
return (net, results)
-- find phase transition ------------------------------------------------------
-- d = denominator of resulting ratio (== choose numOfNodes rank),
-- n = numOfNodes, m = map | 734 | checkNetwork scenario rank relations funs tymeout size dens = do
net <- if scenario then
randomScenario rank relations size
else
randomConnectedAtomicNetworkWithDensity rank relations size dens
appendFile "BENCHMARK.NETS" $ show net ++ "\n"
results <- sequence $ map
(\DecisionProcedure{ decProName = desc, decProProc = fun } -> do
res <- timeIt $ timeoutP (tymeout * 1000000) $ fun net
return $ (desc, res)
) funs
return (net, results)
-- find phase transition ------------------------------------------------------
-- d = denominator of resulting ratio (== choose numOfNodes rank),
-- n = numOfNodes, m = map | 734 | checkNetwork scenario rank relations funs tymeout size dens = do
net <- if scenario then
randomScenario rank relations size
else
randomConnectedAtomicNetworkWithDensity rank relations size dens
appendFile "BENCHMARK.NETS" $ show net ++ "\n"
results <- sequence $ map
(\DecisionProcedure{ decProName = desc, decProProc = fun } -> do
res <- timeIt $ timeoutP (tymeout * 1000000) $ fun net
return $ (desc, res)
) funs
return (net, results)
-- find phase transition ------------------------------------------------------
-- d = denominator of resulting ratio (== choose numOfNodes rank),
-- n = numOfNodes, m = map | 734 | false | false | 0 | 19 | 213 | 166 | 82 | 84 | null | null |
cbpark/hep-kinematics | src/HEP/Particle/ID.hs | bsd-3-clause | antiTauNeutrino :: PdgID
antiTauNeutrino = - tauNeutrino | 56 | antiTauNeutrino :: PdgID
antiTauNeutrino = - tauNeutrino | 56 | antiTauNeutrino = - tauNeutrino | 31 | false | true | 0 | 5 | 6 | 13 | 7 | 6 | null | null |
prb/perpubplat | src/Blog/Widgets/StreamOfConsciousness/XmlUtilities.hs | bsd-3-clause | read_dec n (c:s) = read_dec ((10 * n) + (DC.ord c) - (DC.ord '0')) s | 68 | read_dec n (c:s) = read_dec ((10 * n) + (DC.ord c) - (DC.ord '0')) s | 68 | read_dec n (c:s) = read_dec ((10 * n) + (DC.ord c) - (DC.ord '0')) s | 68 | false | false | 0 | 11 | 14 | 57 | 29 | 28 | null | null |
gridaphobe/ghc | compiler/ghci/ByteCodeLink.hs | bsd-3-clause | lookupLiteral :: HscEnv -> ItblEnv -> BCONPtr -> IO Word
lookupLiteral _ _ (BCONPtrWord lit) = return lit | 105 | lookupLiteral :: HscEnv -> ItblEnv -> BCONPtr -> IO Word
lookupLiteral _ _ (BCONPtrWord lit) = return lit | 105 | lookupLiteral _ _ (BCONPtrWord lit) = return lit | 48 | false | true | 0 | 8 | 17 | 42 | 20 | 22 | null | null |
michalkonecny/aern | aern-realfn-plot-gtk/src/Numeric/AERN/RmToRn/Plot/FnView/State.hs | bsd-3-clause | updateZoomPercentAndFnExtents ::
ArithInOut.RoundedReal (Domain f)
=>
ArithInOut.RoundedRealEffortIndicator (Domain f)
-> Double
-> (Domain f, Domain f, Domain f, Domain f)
-> FnViewState f
-> FnViewState f
updateZoomPercentAndFnExtents effFromDouble zoomPercent fnExtents state =
state
{
favstCanvasParams =
(favstCanvasParams state)
{ cnvprmCoordSystem = newCoordSystem },
favstZoomPercent = zoomPercent
}
where
newCoordSystem =
case cnvprmCoordSystem (favstCanvasParams state) of
csys@(CoordSystemLogSqueeze _) ->
csys
CoordSystemLinear _ ->
linearCoordsWithZoomAndCentre effFromDouble zoomPercent centre fnExtents
centre = favstPanCentre state | 805 | updateZoomPercentAndFnExtents ::
ArithInOut.RoundedReal (Domain f)
=>
ArithInOut.RoundedRealEffortIndicator (Domain f)
-> Double
-> (Domain f, Domain f, Domain f, Domain f)
-> FnViewState f
-> FnViewState f
updateZoomPercentAndFnExtents effFromDouble zoomPercent fnExtents state =
state
{
favstCanvasParams =
(favstCanvasParams state)
{ cnvprmCoordSystem = newCoordSystem },
favstZoomPercent = zoomPercent
}
where
newCoordSystem =
case cnvprmCoordSystem (favstCanvasParams state) of
csys@(CoordSystemLogSqueeze _) ->
csys
CoordSystemLinear _ ->
linearCoordsWithZoomAndCentre effFromDouble zoomPercent centre fnExtents
centre = favstPanCentre state | 805 | updateZoomPercentAndFnExtents effFromDouble zoomPercent fnExtents state =
state
{
favstCanvasParams =
(favstCanvasParams state)
{ cnvprmCoordSystem = newCoordSystem },
favstZoomPercent = zoomPercent
}
where
newCoordSystem =
case cnvprmCoordSystem (favstCanvasParams state) of
csys@(CoordSystemLogSqueeze _) ->
csys
CoordSystemLinear _ ->
linearCoordsWithZoomAndCentre effFromDouble zoomPercent centre fnExtents
centre = favstPanCentre state | 575 | false | true | 0 | 11 | 228 | 186 | 92 | 94 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/HTMLObjectElement.hs | mit | -- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement.declare Mozilla HTMLObjectElement.declare documentation>
getDeclare :: (MonadDOM m) => HTMLObjectElement -> m Bool
getDeclare self = liftDOM ((self ^. js "declare") >>= valToBool) | 253 | getDeclare :: (MonadDOM m) => HTMLObjectElement -> m Bool
getDeclare self = liftDOM ((self ^. js "declare") >>= valToBool) | 122 | getDeclare self = liftDOM ((self ^. js "declare") >>= valToBool) | 64 | true | true | 0 | 10 | 25 | 51 | 26 | 25 | null | null |
felipeZ/Dynamics | src/Main.hs | bsd-3-clause | processNVTMolcas :: Options -> IO ()
processNVTMolcas opts = processNVT opts Nothing | 84 | processNVTMolcas :: Options -> IO ()
processNVTMolcas opts = processNVT opts Nothing | 84 | processNVTMolcas opts = processNVT opts Nothing | 47 | false | true | 0 | 7 | 11 | 28 | 13 | 15 | null | null |
antarestrader/sapphire | Parser.hs | gpl-3.0 | appendList :: [a] -> a -> [a]
appendList xs x = xs ++ [x] | 57 | appendList :: [a] -> a -> [a]
appendList xs x = xs ++ [x] | 57 | appendList xs x = xs ++ [x] | 27 | false | true | 0 | 7 | 13 | 37 | 20 | 17 | null | null |
bgamari/text | src/Data/Text/Lazy/Encoding.hs | bsd-2-clause | decodeUtf8With _ _ = empty | 26 | decodeUtf8With _ _ = empty | 26 | decodeUtf8With _ _ = empty | 26 | false | false | 0 | 5 | 4 | 11 | 5 | 6 | null | null |
rabipelais/cloudpoint | src/Point.hs | mit | _z :: Point -> Double
_z (P _ _ z) = realToFrac z | 49 | _z :: Point -> Double
_z (P _ _ z) = realToFrac z | 49 | _z (P _ _ z) = realToFrac z | 27 | false | true | 0 | 9 | 12 | 37 | 16 | 21 | null | null |
GaloisInc/halvm-ghc | compiler/typecheck/TcType.hs | bsd-3-clause | mkNakedAppTy :: Type -> Type -> Type
-- See Note [Type-checking inside the knot] in TcHsType
mkNakedAppTy ty1 ty2 = mkNakedAppTys ty1 [ty2] | 139 | mkNakedAppTy :: Type -> Type -> Type
mkNakedAppTy ty1 ty2 = mkNakedAppTys ty1 [ty2] | 83 | mkNakedAppTy ty1 ty2 = mkNakedAppTys ty1 [ty2] | 46 | true | true | 0 | 6 | 22 | 33 | 17 | 16 | null | null |
forsyde/forsyde-atom | src/ForSyDe/Atom/MoC/DE/Lib.hs | bsd-3-clause | state14 ns i = MoC.state14 ns (unit4 i) | 39 | state14 ns i = MoC.state14 ns (unit4 i) | 39 | state14 ns i = MoC.state14 ns (unit4 i) | 39 | false | false | 1 | 7 | 7 | 28 | 11 | 17 | null | null |
diekmann/Iptables_Semantics | haskell_tool/lib/Network/IPTables/Parser.hs | bsd-2-clause | getTableName = getState >>=
safeJust "No active table." return . rstActive | 78 | getTableName = getState >>=
safeJust "No active table." return . rstActive | 78 | getTableName = getState >>=
safeJust "No active table." return . rstActive | 78 | false | false | 0 | 7 | 14 | 19 | 9 | 10 | null | null |
JakDar/lab6-project | src/Ex1.hs | bsd-3-clause | -- | Operator '>$>' applies second argument (type '(a->b)' ) to first argument ( type 'a') |
(>$>) :: a -> (a -> b) -> b
x >$> f = f x | 135 | (>$>) :: a -> (a -> b) -> b
x >$> f = f x | 41 | x >$> f = f x | 13 | true | true | 0 | 9 | 32 | 39 | 20 | 19 | null | null |
genos/online_problems | prog_praxis/shamir/shamir_threshold_scheme.hs | mit | -- Modular Multiplicative Inverse
-- Note: p _must_ be prime
modInv :: Integer -> Integer -> Integer
modInv x p = expm x (p - 2) p | 130 | modInv :: Integer -> Integer -> Integer
modInv x p = expm x (p - 2) p | 69 | modInv x p = expm x (p - 2) p | 29 | true | true | 0 | 8 | 26 | 47 | 22 | 25 | null | null |
forked-upstream-packages-for-ghcjs/ghcjs | ghcjs/src/Gen2/Compactor.hs | mit | debugShowStat :: (JStat, [ClosureInfo], [StaticInfo]) -> String
debugShowStat (_s, cis, sis) = "closures:\n" ++ unlines (map show cis) ++ "\nstatics:" ++ unlines (map show sis) ++ "\n\n" | 186 | debugShowStat :: (JStat, [ClosureInfo], [StaticInfo]) -> String
debugShowStat (_s, cis, sis) = "closures:\n" ++ unlines (map show cis) ++ "\nstatics:" ++ unlines (map show sis) ++ "\n\n" | 186 | debugShowStat (_s, cis, sis) = "closures:\n" ++ unlines (map show cis) ++ "\nstatics:" ++ unlines (map show sis) ++ "\n\n" | 122 | false | true | 0 | 11 | 26 | 80 | 43 | 37 | null | null |
silkapp/xmlhtml-xpath | src/Xml/XPath/Evaluator.hs | bsd-3-clause | numV :: ArrowF [] (~>) => Value ~> Number
numV = embed . arr (\n -> case n of NumValue m -> [m]; _ -> []) | 105 | numV :: ArrowF [] (~>) => Value ~> Number
numV = embed . arr (\n -> case n of NumValue m -> [m]; _ -> []) | 105 | numV = embed . arr (\n -> case n of NumValue m -> [m]; _ -> []) | 63 | false | true | 0 | 12 | 25 | 74 | 37 | 37 | null | null |
haskell-distributed/network-transport-tcp | src/Network/Transport/TCP.hs | bsd-3-clause | --------------------------------------------------------------------------------
-- API functions --
--------------------------------------------------------------------------------
-- | Close the transport
apiCloseTransport :: TCPTransport -> Maybe ThreadId -> [Event] -> IO ()
apiCloseTransport transport mTransportThread evs =
asyncWhenCancelled return $ do
mTSt <- modifyMVar (transportState transport) $ \st -> case st of
TransportValid vst -> return (TransportClosed, Just vst)
TransportClosed -> return (TransportClosed, Nothing)
forM_ mTSt $ mapM_ (apiCloseEndPoint transport evs) . (^. localEndPoints)
-- This will invoke the termination handler, which in turn will call
-- apiCloseTransport again, but then the transport will already be closed
-- and we won't be passed a transport thread, so we terminate immmediate
forM_ mTransportThread killThread
-- | Create a new endpoint | 991 | apiCloseTransport :: TCPTransport -> Maybe ThreadId -> [Event] -> IO ()
apiCloseTransport transport mTransportThread evs =
asyncWhenCancelled return $ do
mTSt <- modifyMVar (transportState transport) $ \st -> case st of
TransportValid vst -> return (TransportClosed, Just vst)
TransportClosed -> return (TransportClosed, Nothing)
forM_ mTSt $ mapM_ (apiCloseEndPoint transport evs) . (^. localEndPoints)
-- This will invoke the termination handler, which in turn will call
-- apiCloseTransport again, but then the transport will already be closed
-- and we won't be passed a transport thread, so we terminate immmediate
forM_ mTransportThread killThread
-- | Create a new endpoint | 722 | apiCloseTransport transport mTransportThread evs =
asyncWhenCancelled return $ do
mTSt <- modifyMVar (transportState transport) $ \st -> case st of
TransportValid vst -> return (TransportClosed, Just vst)
TransportClosed -> return (TransportClosed, Nothing)
forM_ mTSt $ mapM_ (apiCloseEndPoint transport evs) . (^. localEndPoints)
-- This will invoke the termination handler, which in turn will call
-- apiCloseTransport again, but then the transport will already be closed
-- and we won't be passed a transport thread, so we terminate immmediate
forM_ mTransportThread killThread
-- | Create a new endpoint | 650 | true | true | 0 | 16 | 212 | 158 | 80 | 78 | null | null |
mfine/wolf | src/Network/AWS/Wolf/File.hs | mit | -- | Determine path to data directory and create it.
--
dataDirectory :: MonadIO m => FilePath -> m FilePath
dataDirectory dir = do
let dir' = dir </> "data"
liftIO $ createDirectoryIfMissing True dir'
return dir'
-- | Determine path to store directory and create it.
-- | 277 | dataDirectory :: MonadIO m => FilePath -> m FilePath
dataDirectory dir = do
let dir' = dir </> "data"
liftIO $ createDirectoryIfMissing True dir'
return dir'
-- | Determine path to store directory and create it.
-- | 221 | dataDirectory dir = do
let dir' = dir </> "data"
liftIO $ createDirectoryIfMissing True dir'
return dir'
-- | Determine path to store directory and create it.
-- | 168 | true | true | 0 | 10 | 54 | 63 | 30 | 33 | null | null |
prl-tokyo/MAPE-knowledge-base | Haskell/models/AWSTest.hs | mit | t9 = S.InstanceType {
S.typeID = "m4.4xlarge"
, S.typeCPUs = 16
, S.typeRAM = 64.00
, S.typeCost = 1.391
} | 116 | t9 = S.InstanceType {
S.typeID = "m4.4xlarge"
, S.typeCPUs = 16
, S.typeRAM = 64.00
, S.typeCost = 1.391
} | 116 | t9 = S.InstanceType {
S.typeID = "m4.4xlarge"
, S.typeCPUs = 16
, S.typeRAM = 64.00
, S.typeCost = 1.391
} | 116 | false | false | 1 | 6 | 29 | 45 | 25 | 20 | null | null |
beni55/cartel | lib/Cartel/Ast.hs | bsd-3-clause | -- | A library's exposed modules. 'modules' can help you generate
-- this, without you having to manually list each module and keep the
-- list up to date.
exposedModules :: [NonEmptyString] -> LibraryField
exposedModules = ExposedModules | 239 | exposedModules :: [NonEmptyString] -> LibraryField
exposedModules = ExposedModules | 82 | exposedModules = ExposedModules | 31 | true | true | 0 | 6 | 37 | 21 | 13 | 8 | null | null |
brendanhay/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Languages/List.hs | mpl-2.0 | -- | Upload protocol for media (e.g. \"raw\", \"multipart\").
llUploadProtocol :: Lens' LanguagesList (Maybe Text)
llUploadProtocol
= lens _llUploadProtocol
(\ s a -> s{_llUploadProtocol = a}) | 200 | llUploadProtocol :: Lens' LanguagesList (Maybe Text)
llUploadProtocol
= lens _llUploadProtocol
(\ s a -> s{_llUploadProtocol = a}) | 138 | llUploadProtocol
= lens _llUploadProtocol
(\ s a -> s{_llUploadProtocol = a}) | 85 | true | true | 1 | 9 | 33 | 52 | 25 | 27 | null | null |
seanhess/haskell-tdd-kata-roman-numerals | src/Numerals.hs | mit | fromNumerals (C : D : ns) = Roman10 0 4 0 0 `addRoman` fromNumerals ns | 70 | fromNumerals (C : D : ns) = Roman10 0 4 0 0 `addRoman` fromNumerals ns | 70 | fromNumerals (C : D : ns) = Roman10 0 4 0 0 `addRoman` fromNumerals ns | 70 | false | false | 0 | 8 | 14 | 38 | 19 | 19 | null | null |
lueck/standoff-tools | src/StandOff/AttributesMap.hs | gpl-3.0 | -- | This adds the special attribute "__standoff_special__ns" with the
-- fixed value "unknown" which can be used to add a namespace to the
-- inserted element.
appendNamespace :: a -> ExternalAttributes -> ExternalAttributes
appendNamespace _ attrs = Map.insert "__standoff_special__ns" "unknown" attrs | 303 | appendNamespace :: a -> ExternalAttributes -> ExternalAttributes
appendNamespace _ attrs = Map.insert "__standoff_special__ns" "unknown" attrs | 142 | appendNamespace _ attrs = Map.insert "__standoff_special__ns" "unknown" attrs | 77 | true | true | 0 | 6 | 41 | 36 | 19 | 17 | null | null |
HJvT/hdirect | src/Parser.hs | bsd-3-clause | action_118 (114#) = happyGoto action_232 | 40 | action_118 (114#) = happyGoto action_232 | 40 | action_118 (114#) = happyGoto action_232 | 40 | false | false | 0 | 6 | 4 | 15 | 7 | 8 | null | null |
mettekou/ghc | compiler/coreSyn/CoreSyn.hs | bsd-3-clause | -- | Bind all supplied binders over an expression in a nested lambda expression. Prefer to
-- use 'MkCore.mkCoreLams' if possible
mkLams :: [b] -> Expr b -> Expr b
mkLams binders body = foldr Lam body binders | 216 | mkLams :: [b] -> Expr b -> Expr b
mkLams binders body = foldr Lam body binders | 85 | mkLams binders body = foldr Lam body binders | 44 | true | true | 0 | 8 | 45 | 49 | 22 | 27 | null | null |
joehillen/aura | src/Aura/Pacman.hs | gpl-3.0 | defaultLogFile :: FilePath
defaultLogFile = "/var/log/pacman.log" | 65 | defaultLogFile :: FilePath
defaultLogFile = "/var/log/pacman.log" | 65 | defaultLogFile = "/var/log/pacman.log" | 38 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
arnizamani/occam | Parsing.hs | mit | parseSuccess _ = False | 32 | parseSuccess _ = False | 32 | parseSuccess _ = False | 32 | false | false | 0 | 5 | 13 | 9 | 4 | 5 | null | null |
stephenpascoe/mongo-sql | src/Transfuser/Types.hs | bsd-3-clause | intToBsonType 13 = JavaScript | 30 | intToBsonType 13 = JavaScript | 30 | intToBsonType 13 = JavaScript | 30 | false | false | 0 | 5 | 4 | 9 | 4 | 5 | null | null |
facebook/Haxl | tests/BatchTests.hs | bsd-3-clause | batching6_ = sequence [batching1_,batching2_,batching3_,batching4_,batching5_] | 78 | batching6_ = sequence [batching1_,batching2_,batching3_,batching4_,batching5_] | 78 | batching6_ = sequence [batching1_,batching2_,batching3_,batching4_,batching5_] | 78 | false | false | 1 | 6 | 3 | 27 | 14 | 13 | null | null |
brendanhay/gogol | gogol-remotebuildexecution/gen/Network/Google/RemoteBuildExecution/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'BuildBazelRemoteExecutionV2ExecuteResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'bbreverStatus'
--
-- * 'bbreverServerLogs'
--
-- * 'bbreverResult'
--
-- * 'bbreverCachedResult'
--
-- * 'bbreverMessage'
buildBazelRemoteExecutionV2ExecuteResponse
:: BuildBazelRemoteExecutionV2ExecuteResponse
buildBazelRemoteExecutionV2ExecuteResponse =
BuildBazelRemoteExecutionV2ExecuteResponse'
{ _bbreverStatus = Nothing
, _bbreverServerLogs = Nothing
, _bbreverResult = Nothing
, _bbreverCachedResult = Nothing
, _bbreverMessage = Nothing
} | 680 | buildBazelRemoteExecutionV2ExecuteResponse
:: BuildBazelRemoteExecutionV2ExecuteResponse
buildBazelRemoteExecutionV2ExecuteResponse =
BuildBazelRemoteExecutionV2ExecuteResponse'
{ _bbreverStatus = Nothing
, _bbreverServerLogs = Nothing
, _bbreverResult = Nothing
, _bbreverCachedResult = Nothing
, _bbreverMessage = Nothing
} | 355 | buildBazelRemoteExecutionV2ExecuteResponse =
BuildBazelRemoteExecutionV2ExecuteResponse'
{ _bbreverStatus = Nothing
, _bbreverServerLogs = Nothing
, _bbreverResult = Nothing
, _bbreverCachedResult = Nothing
, _bbreverMessage = Nothing
} | 262 | true | true | 0 | 6 | 106 | 56 | 40 | 16 | null | null |
snoyberg/ghc | compiler/coreSyn/CoreFVs.hs | bsd-3-clause | aFreeVar :: Var -> DVarSet
aFreeVar = unitDVarSet | 49 | aFreeVar :: Var -> DVarSet
aFreeVar = unitDVarSet | 49 | aFreeVar = unitDVarSet | 22 | false | true | 0 | 5 | 7 | 15 | 8 | 7 | null | null |
filib/gh-delta | src/Lib.hs | bsd-3-clause | template :: Delta -> Text
template Delta { .. } = titleTemplate <>
newLine <>
newLine <>
T.intercalate newLine (eventTemplate <$> deltaEvents)
where
eventTemplate :: Event -> Text
eventTemplate Event { .. } = T.intercalate space
["*", eventTitle, "-", "@" <> eventAuthor, eventLink]
newLine :: Text
newLine = "\n"
space :: Text
space = " "
titleTemplate :: Text
titleTemplate = T.intercalate space ["##", labelTemplate, deltaDateSince, "to", deltaDateUntil]
labelTemplate :: Text
labelTemplate = "[" <> fromMaybe "Unreleased" deltaLabel <> "]"
-- | Convert collection of pull requests to internal representation. | 766 | template :: Delta -> Text
template Delta { .. } = titleTemplate <>
newLine <>
newLine <>
T.intercalate newLine (eventTemplate <$> deltaEvents)
where
eventTemplate :: Event -> Text
eventTemplate Event { .. } = T.intercalate space
["*", eventTitle, "-", "@" <> eventAuthor, eventLink]
newLine :: Text
newLine = "\n"
space :: Text
space = " "
titleTemplate :: Text
titleTemplate = T.intercalate space ["##", labelTemplate, deltaDateSince, "to", deltaDateUntil]
labelTemplate :: Text
labelTemplate = "[" <> fromMaybe "Unreleased" deltaLabel <> "]"
-- | Convert collection of pull requests to internal representation. | 766 | template Delta { .. } = titleTemplate <>
newLine <>
newLine <>
T.intercalate newLine (eventTemplate <$> deltaEvents)
where
eventTemplate :: Event -> Text
eventTemplate Event { .. } = T.intercalate space
["*", eventTitle, "-", "@" <> eventAuthor, eventLink]
newLine :: Text
newLine = "\n"
space :: Text
space = " "
titleTemplate :: Text
titleTemplate = T.intercalate space ["##", labelTemplate, deltaDateSince, "to", deltaDateUntil]
labelTemplate :: Text
labelTemplate = "[" <> fromMaybe "Unreleased" deltaLabel <> "]"
-- | Convert collection of pull requests to internal representation. | 740 | false | true | 0 | 8 | 243 | 178 | 97 | 81 | null | null |
ribag/ganeti-experiments | src/Ganeti/Query/Server.hs | gpl-2.0 | handleCall _ _ cfg (QueryTags kind name) = do
let tags = case kind of
TagKindCluster -> Ok . clusterTags $ configCluster cfg
TagKindGroup -> groupTags <$> Config.getGroup cfg name
TagKindNode -> nodeTags <$> Config.getNode cfg name
TagKindInstance -> instTags <$> Config.getInstance cfg name
TagKindNetwork -> networkTags <$> Config.getNetwork cfg name
return (J.showJSON <$> tags) | 485 | handleCall _ _ cfg (QueryTags kind name) = do
let tags = case kind of
TagKindCluster -> Ok . clusterTags $ configCluster cfg
TagKindGroup -> groupTags <$> Config.getGroup cfg name
TagKindNode -> nodeTags <$> Config.getNode cfg name
TagKindInstance -> instTags <$> Config.getInstance cfg name
TagKindNetwork -> networkTags <$> Config.getNetwork cfg name
return (J.showJSON <$> tags) | 485 | handleCall _ _ cfg (QueryTags kind name) = do
let tags = case kind of
TagKindCluster -> Ok . clusterTags $ configCluster cfg
TagKindGroup -> groupTags <$> Config.getGroup cfg name
TagKindNode -> nodeTags <$> Config.getNode cfg name
TagKindInstance -> instTags <$> Config.getInstance cfg name
TagKindNetwork -> networkTags <$> Config.getNetwork cfg name
return (J.showJSON <$> tags) | 485 | false | false | 0 | 15 | 158 | 136 | 64 | 72 | null | null |
romanb/bruce-socket | src/Network/Bruce/Socket.hs | mpl-2.0 | close :: Socket -> IO ()
close (DatagramSocket (N.SockAddrUnix fp) s) = do
bound <- N.isBound s
N.close s
when bound . void $
tryJust (guard . isDoesNotExistError) (removeFile fp) | 199 | close :: Socket -> IO ()
close (DatagramSocket (N.SockAddrUnix fp) s) = do
bound <- N.isBound s
N.close s
when bound . void $
tryJust (guard . isDoesNotExistError) (removeFile fp) | 199 | close (DatagramSocket (N.SockAddrUnix fp) s) = do
bound <- N.isBound s
N.close s
when bound . void $
tryJust (guard . isDoesNotExistError) (removeFile fp) | 174 | false | true | 0 | 12 | 49 | 96 | 43 | 53 | null | null |
andreagenso/java2scala | src/J2s/Parser.hs | apache-2.0 | pForStatement = (\ffs -> ffs) <$ pKeyWord "for" <* pSpecialSimbol "(" <*> pZForStatement | 88 | pForStatement = (\ffs -> ffs) <$ pKeyWord "for" <* pSpecialSimbol "(" <*> pZForStatement | 88 | pForStatement = (\ffs -> ffs) <$ pKeyWord "for" <* pSpecialSimbol "(" <*> pZForStatement | 88 | false | false | 3 | 7 | 12 | 37 | 16 | 21 | null | null |
ulricha/algebra-dag | src/Database/Algebra/Rewrite/PatternConstruction.hs | bsd-3-clause | {-
For every child, generate the matching pattern and - if the child
is to be bound either with a given name or for matching on the child itself -
the name to which it should be bound.
This distinction is necessary because a child that is not to be bound
must be matched anyway with a wildcard pattern so that the operator constructor
has enough parameters in the match.
-}
childMatchPattern :: Child -> Q (Q Pat, Maybe Name)
childMatchPattern WildC =
return (wildP, Nothing) | 480 | childMatchPattern :: Child -> Q (Q Pat, Maybe Name)
childMatchPattern WildC =
return (wildP, Nothing) | 105 | childMatchPattern WildC =
return (wildP, Nothing) | 53 | true | true | 0 | 9 | 90 | 47 | 23 | 24 | null | null |
AlephAlpha/Samau | OldSamau/Eval.hs | gpl-2.0 | -- SmOperator '═'
smEq (x1:x2:s)
| isAtom x1 && isAtom x2 = fromBool (toFloat x2 == toFloat x1):s
| otherwise = toListFunction2 smEq (x1:x2:s) | 159 | smEq (x1:x2:s)
| isAtom x1 && isAtom x2 = fromBool (toFloat x2 == toFloat x1):s
| otherwise = toListFunction2 smEq (x1:x2:s) | 141 | smEq (x1:x2:s)
| isAtom x1 && isAtom x2 = fromBool (toFloat x2 == toFloat x1):s
| otherwise = toListFunction2 smEq (x1:x2:s) | 141 | true | false | 1 | 10 | 40 | 80 | 38 | 42 | null | null |
polyrod/hamexpress | src/Helpers.hs | bsd-3-clause | checkCallsign :: String -> IO (Maybe CallSign)
checkCallsign s = return $ Just s | 80 | checkCallsign :: String -> IO (Maybe CallSign)
checkCallsign s = return $ Just s | 80 | checkCallsign s = return $ Just s | 33 | false | true | 0 | 8 | 13 | 34 | 16 | 18 | null | null |
anttisalonen/starrover2 | src/SDLUtils.hs | mit | -- generic stuff
pollAllSDLEvents :: IO [SDL.Event]
pollAllSDLEvents = pollAllSDLEvents'' True | 94 | pollAllSDLEvents :: IO [SDL.Event]
pollAllSDLEvents = pollAllSDLEvents'' True | 77 | pollAllSDLEvents = pollAllSDLEvents'' True | 42 | true | true | 0 | 7 | 10 | 23 | 12 | 11 | null | null |
hferreiro/replay | compiler/nativeGen/X86/Ppr.hs | bsd-3-clause | pprInstr (GFTOI src dst)
= pprInstr (GDTOI src dst) | 54 | pprInstr (GFTOI src dst)
= pprInstr (GDTOI src dst) | 54 | pprInstr (GFTOI src dst)
= pprInstr (GDTOI src dst) | 54 | false | false | 0 | 7 | 11 | 28 | 13 | 15 | null | null |
MaxGabriel/yesod | yesod-form/Yesod/Helpers/Crud.hs | mit | getCrudEditR :: (Yesod master, Item item, SinglePiece (Key item),
ToForm item master)
=> Text -> GHandler (Crud master item) master RepHtml
getCrudEditR s = do
itemId <- maybe notFound return $ fromSinglePiece s
crud <- getYesodSub
item <- crudGet crud itemId >>= maybe notFound return
crudHelper
"Edit item"
(Just (itemId, item))
False | 406 | getCrudEditR :: (Yesod master, Item item, SinglePiece (Key item),
ToForm item master)
=> Text -> GHandler (Crud master item) master RepHtml
getCrudEditR s = do
itemId <- maybe notFound return $ fromSinglePiece s
crud <- getYesodSub
item <- crudGet crud itemId >>= maybe notFound return
crudHelper
"Edit item"
(Just (itemId, item))
False | 406 | getCrudEditR s = do
itemId <- maybe notFound return $ fromSinglePiece s
crud <- getYesodSub
item <- crudGet crud itemId >>= maybe notFound return
crudHelper
"Edit item"
(Just (itemId, item))
False | 236 | false | true | 0 | 11 | 121 | 142 | 66 | 76 | null | null |
chriseidhof/objc-value-objects | PPObjCSyntax.hs | mit | ppExpr (AtExpr e) = "@" <> (parens $ ppExpr e) | 46 | ppExpr (AtExpr e) = "@" <> (parens $ ppExpr e) | 46 | ppExpr (AtExpr e) = "@" <> (parens $ ppExpr e) | 46 | false | false | 0 | 8 | 9 | 29 | 14 | 15 | null | null |
sdiehl/ghc | libraries/base/GHC/List.hs | bsd-3-clause | flipSeqScanl' :: a -> b -> a
flipSeqScanl' a !_b = a | 52 | flipSeqScanl' :: a -> b -> a
flipSeqScanl' a !_b = a | 52 | flipSeqScanl' a !_b = a | 23 | false | true | 0 | 6 | 11 | 25 | 12 | 13 | null | null |
Jonplussed/purescript-webgl-raw | generator/IDL/Cleaner.hs | gpl-2.0 | getTypes :: IDL -> [Type]
getTypes = map snd . Map.toList . types | 66 | getTypes :: IDL -> [Type]
getTypes = map snd . Map.toList . types | 66 | getTypes = map snd . Map.toList . types | 40 | false | true | 1 | 8 | 13 | 39 | 17 | 22 | null | null |
ony/hledger | hledger-lib/Hledger/Utils.hs | gpl-3.0 | second6 (_,x,_,_,_,_) = x | 25 | second6 (_,x,_,_,_,_) = x | 25 | second6 (_,x,_,_,_,_) = x | 25 | false | false | 0 | 6 | 3 | 27 | 16 | 11 | null | null |
bergmark/haskell-opaleye | opaleye-sqlite/src/Opaleye/SQLite/Internal/Sql.hs | bsd-3-clause | aggregate :: [(Symbol, (Maybe HPQ.AggrOp, HPQ.PrimExpr))] -> Select -> Select
aggregate aggrs s = SelectFrom $ newSelect { attrs = SelectAttrs
(ensureColumns (map attr aggrs))
, tables = [s]
, groupBy = (Just . groupBy') aggrs }
where --- Grouping by an empty list is not the identity function!
--- In fact it forms one single group. Syntactically one
--- cannot group by nothing in SQL, so we just group by a
--- constant instead. Because "GROUP BY 0" means group by the
--- zeroth column, we instead use an expression rather than a
--- constant.
handleEmpty :: [HSql.SqlExpr] -> NEL.NonEmpty HSql.SqlExpr
handleEmpty =
M.fromMaybe (return (SP.deliteral (HSql.ConstSqlExpr "0")))
. NEL.nonEmpty
groupBy' :: [(symbol, (Maybe aggrOp, HPQ.PrimExpr))]
-> NEL.NonEmpty HSql.SqlExpr
groupBy' = (handleEmpty
. map sqlExpr
. map expr
. filter (M.isNothing . aggrOp))
attr = sqlBinding . Arr.second (uncurry aggrExpr)
expr (_, (_, e)) = e
aggrOp (_, (x, _)) = x | 1,284 | aggregate :: [(Symbol, (Maybe HPQ.AggrOp, HPQ.PrimExpr))] -> Select -> Select
aggregate aggrs s = SelectFrom $ newSelect { attrs = SelectAttrs
(ensureColumns (map attr aggrs))
, tables = [s]
, groupBy = (Just . groupBy') aggrs }
where --- Grouping by an empty list is not the identity function!
--- In fact it forms one single group. Syntactically one
--- cannot group by nothing in SQL, so we just group by a
--- constant instead. Because "GROUP BY 0" means group by the
--- zeroth column, we instead use an expression rather than a
--- constant.
handleEmpty :: [HSql.SqlExpr] -> NEL.NonEmpty HSql.SqlExpr
handleEmpty =
M.fromMaybe (return (SP.deliteral (HSql.ConstSqlExpr "0")))
. NEL.nonEmpty
groupBy' :: [(symbol, (Maybe aggrOp, HPQ.PrimExpr))]
-> NEL.NonEmpty HSql.SqlExpr
groupBy' = (handleEmpty
. map sqlExpr
. map expr
. filter (M.isNothing . aggrOp))
attr = sqlBinding . Arr.second (uncurry aggrExpr)
expr (_, (_, e)) = e
aggrOp (_, (x, _)) = x | 1,284 | aggregate aggrs s = SelectFrom $ newSelect { attrs = SelectAttrs
(ensureColumns (map attr aggrs))
, tables = [s]
, groupBy = (Just . groupBy') aggrs }
where --- Grouping by an empty list is not the identity function!
--- In fact it forms one single group. Syntactically one
--- cannot group by nothing in SQL, so we just group by a
--- constant instead. Because "GROUP BY 0" means group by the
--- zeroth column, we instead use an expression rather than a
--- constant.
handleEmpty :: [HSql.SqlExpr] -> NEL.NonEmpty HSql.SqlExpr
handleEmpty =
M.fromMaybe (return (SP.deliteral (HSql.ConstSqlExpr "0")))
. NEL.nonEmpty
groupBy' :: [(symbol, (Maybe aggrOp, HPQ.PrimExpr))]
-> NEL.NonEmpty HSql.SqlExpr
groupBy' = (handleEmpty
. map sqlExpr
. map expr
. filter (M.isNothing . aggrOp))
attr = sqlBinding . Arr.second (uncurry aggrExpr)
expr (_, (_, e)) = e
aggrOp (_, (x, _)) = x | 1,206 | false | true | 2 | 12 | 483 | 324 | 168 | 156 | null | null |
dan3944/emojiscript | src/Transpile.hs | mit | parseFile (c:s) = CharLit c : parseFile s | 41 | parseFile (c:s) = CharLit c : parseFile s | 41 | parseFile (c:s) = CharLit c : parseFile s | 41 | false | false | 0 | 7 | 7 | 26 | 12 | 14 | null | null |
brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/Organizations/Locations/Buckets/Views/List.hs | mpl-2.0 | -- | Creates a value of 'OrganizationsLocationsBucketsViewsList' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'olbvlParent'
--
-- * 'olbvlXgafv'
--
-- * 'olbvlUploadProtocol'
--
-- * 'olbvlAccessToken'
--
-- * 'olbvlUploadType'
--
-- * 'olbvlPageToken'
--
-- * 'olbvlPageSize'
--
-- * 'olbvlCallback'
organizationsLocationsBucketsViewsList
:: Text -- ^ 'olbvlParent'
-> OrganizationsLocationsBucketsViewsList
organizationsLocationsBucketsViewsList pOlbvlParent_ =
OrganizationsLocationsBucketsViewsList'
{ _olbvlParent = pOlbvlParent_
, _olbvlXgafv = Nothing
, _olbvlUploadProtocol = Nothing
, _olbvlAccessToken = Nothing
, _olbvlUploadType = Nothing
, _olbvlPageToken = Nothing
, _olbvlPageSize = Nothing
, _olbvlCallback = Nothing
} | 868 | organizationsLocationsBucketsViewsList
:: Text -- ^ 'olbvlParent'
-> OrganizationsLocationsBucketsViewsList
organizationsLocationsBucketsViewsList pOlbvlParent_ =
OrganizationsLocationsBucketsViewsList'
{ _olbvlParent = pOlbvlParent_
, _olbvlXgafv = Nothing
, _olbvlUploadProtocol = Nothing
, _olbvlAccessToken = Nothing
, _olbvlUploadType = Nothing
, _olbvlPageToken = Nothing
, _olbvlPageSize = Nothing
, _olbvlCallback = Nothing
} | 479 | organizationsLocationsBucketsViewsList pOlbvlParent_ =
OrganizationsLocationsBucketsViewsList'
{ _olbvlParent = pOlbvlParent_
, _olbvlXgafv = Nothing
, _olbvlUploadProtocol = Nothing
, _olbvlAccessToken = Nothing
, _olbvlUploadType = Nothing
, _olbvlPageToken = Nothing
, _olbvlPageSize = Nothing
, _olbvlCallback = Nothing
} | 363 | true | true | 0 | 6 | 152 | 88 | 62 | 26 | null | null |
mrkkrp/stack | src/Stack/Types/Config/Build.hs | bsd-3-clause | buildMonoidBenchmarksArgName :: Text
buildMonoidBenchmarksArgName = "bench" | 75 | buildMonoidBenchmarksArgName :: Text
buildMonoidBenchmarksArgName = "bench" | 75 | buildMonoidBenchmarksArgName = "bench" | 38 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
tjakway/ghcjvm | compiler/prelude/THNames.hs | bsd-3-clause | appEName = libFun (fsLit "appE") appEIdKey | 56 | appEName = libFun (fsLit "appE") appEIdKey | 56 | appEName = libFun (fsLit "appE") appEIdKey | 56 | false | false | 0 | 7 | 19 | 17 | 8 | 9 | null | null |
vzaccaria/bddtool | src/Backend/InductiveGraph/Example.hs | bsd-3-clause | main = pe0 | 10 | main = pe0 | 10 | main = pe0 | 10 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
Chase-C/Flocking-Haskell | src/Utils.hs | gpl-2.0 | getRandom :: (Random a) => a -> a -> IO a
getRandom l u = do
seed <- getStdGen
let (n, s) = randomR (l, u) seed
setStdGen s
return n
| 157 | getRandom :: (Random a) => a -> a -> IO a
getRandom l u = do
seed <- getStdGen
let (n, s) = randomR (l, u) seed
setStdGen s
return n
| 156 | getRandom l u = do
seed <- getStdGen
let (n, s) = randomR (l, u) seed
setStdGen s
return n
| 114 | false | true | 0 | 11 | 55 | 82 | 39 | 43 | null | null |
rueshyna/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/Search/List.hs | mpl-2.0 | -- | The locationRadius parameter, in conjunction with the location
-- parameter, defines a circular geographic area. The parameter value must
-- be a floating point number followed by a measurement unit. Valid
-- measurement units are m, km, ft, and mi. For example, valid parameter
-- values include 1500m, 5km, 10000ft, and 0.75mi. The API does not support
-- locationRadius parameter values larger than 1000 kilometers. Note: See
-- the definition of the location parameter for more information.
slLocationRadius :: Lens' SearchList (Maybe Text)
slLocationRadius
= lens _slLocationRadius
(\ s a -> s{_slLocationRadius = a}) | 635 | slLocationRadius :: Lens' SearchList (Maybe Text)
slLocationRadius
= lens _slLocationRadius
(\ s a -> s{_slLocationRadius = a}) | 135 | slLocationRadius
= lens _slLocationRadius
(\ s a -> s{_slLocationRadius = a}) | 85 | true | true | 0 | 9 | 103 | 54 | 31 | 23 | null | null |
brendanhay/gogol | gogol-iam/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Delete.hs | mpl-2.0 | -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
pUploadType :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
pUploadType
= lens _pUploadType (\ s a -> s{_pUploadType = a}) | 199 | pUploadType :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
pUploadType
= lens _pUploadType (\ s a -> s{_pUploadType = a}) | 128 | pUploadType
= lens _pUploadType (\ s a -> s{_pUploadType = a}) | 64 | true | true | 0 | 9 | 28 | 48 | 25 | 23 | null | null |
spacekitteh/smcghc | testsuite/tests/numeric/should_run/T7014.hs | bsd-3-clause | test_mul1 :: Int -> Int
test_mul1 x = x * 1 | 43 | test_mul1 :: Int -> Int
test_mul1 x = x * 1 | 43 | test_mul1 x = x * 1 | 19 | false | true | 0 | 5 | 10 | 22 | 11 | 11 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.