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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
phadej/patches-vector | Data/Patch/Internal.hs | bsd-3-clause | -- | Internal: Eliminate conflicting edits
normalise :: [Edit a] -> [Edit a]
normalise grp = let (inserts, deletes, replaces) = partition3 grp
in normalise' inserts deletes replaces
where partition3 (x@(Insert {}):xs) = let (i,d,r) = partition3 xs in (x:i,d,r)
partition3 (x@(Delete {}):xs) ... | 658 | normalise :: [Edit a] -> [Edit a]
normalise grp = let (inserts, deletes, replaces) = partition3 grp
in normalise' inserts deletes replaces
where partition3 (x@(Insert {}):xs) = let (i,d,r) = partition3 xs in (x:i,d,r)
partition3 (x@(Delete {}):xs) = let (i,d,r) = partition3 xs in (i,x:d,r)
... | 615 | normalise grp = let (inserts, deletes, replaces) = partition3 grp
in normalise' inserts deletes replaces
where partition3 (x@(Insert {}):xs) = let (i,d,r) = partition3 xs in (x:i,d,r)
partition3 (x@(Delete {}):xs) = let (i,d,r) = partition3 xs in (i,x:d,r)
partition3 (x@(Replace {})... | 581 | true | true | 8 | 17 | 170 | 383 | 200 | 183 | null | null |
slpopejoy/fadno-xml | src/Fadno/MusicXml/MusicXml20.hs | bsd-2-clause | -- | Smart constructor for 'MeasureRepeat'
mkMeasureRepeat :: PositiveIntegerOrEmpty -> StartStop -> MeasureRepeat
mkMeasureRepeat a b = MeasureRepeat a b Nothing | 162 | mkMeasureRepeat :: PositiveIntegerOrEmpty -> StartStop -> MeasureRepeat
mkMeasureRepeat a b = MeasureRepeat a b Nothing | 119 | mkMeasureRepeat a b = MeasureRepeat a b Nothing | 47 | true | true | 0 | 8 | 20 | 37 | 17 | 20 | null | null |
dysinger/amazonka | amazonka-cloudhsm/gen/Network/AWS/CloudHSM/DescribeHsm.hs | mpl-2.0 | -- | The HSM model type.
dhr2HsmType :: Lens' DescribeHsmResponse (Maybe Text)
dhr2HsmType = lens _dhr2HsmType (\s a -> s { _dhr2HsmType = a }) | 143 | dhr2HsmType :: Lens' DescribeHsmResponse (Maybe Text)
dhr2HsmType = lens _dhr2HsmType (\s a -> s { _dhr2HsmType = a }) | 118 | dhr2HsmType = lens _dhr2HsmType (\s a -> s { _dhr2HsmType = a }) | 64 | true | true | 0 | 9 | 24 | 46 | 25 | 21 | null | null |
PhDP/Manticore | Akarui/FOL/FOL.hs | apache-2.0 | -- | The 'exclusive or' (exclusive disjunction) binary operator.
lxor :: FOL -> FOL -> FOL
lxor x y
| y == bot = x
| x == bot = y
| y == top = lneg x
| x == top = lneg y
| otherwise = BinOp Xor x y | 281 | lxor :: FOL -> FOL -> FOL
lxor x y
| y == bot = x
| x == bot = y
| y == top = lneg x
| x == top = lneg y
| otherwise = BinOp Xor x y | 216 | lxor x y
| y == bot = x
| x == bot = y
| y == top = lneg x
| x == top = lneg y
| otherwise = BinOp Xor x y | 190 | true | true | 0 | 8 | 135 | 112 | 49 | 63 | null | null |
SeanTater/albemarle | src/NLP/Albemarle/Dict.hs | bsd-3-clause | find' :: Ord a
=> [(Int, a)] -- ^ Left sorted list X
-> [(Int, a)] -- ^ Right sorted list Y
-> [(Int, Int)] -- ^ Indices into X, Y representing the sorted intersection
find' [] new = [] | 192 | find' :: Ord a
=> [(Int, a)] -- ^ Left sorted list X
-> [(Int, a)] -- ^ Right sorted list Y
-> [(Int, Int)]
find' [] new = [] | 132 | find' [] new = [] | 18 | true | true | 0 | 11 | 46 | 71 | 39 | 32 | null | null |
foreverbell/parakeet | src/Parakeet/Linguistics/Romaji.hs | mit | -- ++ "gzdbh"
sokuonizeInternal :: String -> Choice [String]
sokuonizeInternal [] = return [] | 94 | sokuonizeInternal :: String -> Choice [String]
sokuonizeInternal [] = return [] | 79 | sokuonizeInternal [] = return [] | 32 | true | true | 0 | 7 | 14 | 32 | 16 | 16 | null | null |
batterseapower/chsc | Termination/Terminate.hs | bsd-3-clause | equal :: Finite a => WQO a ()
equal = WQO id $ \x y -> guard (x == y) >> return () | 82 | equal :: Finite a => WQO a ()
equal = WQO id $ \x y -> guard (x == y) >> return () | 82 | equal = WQO id $ \x y -> guard (x == y) >> return () | 52 | false | true | 2 | 9 | 22 | 64 | 29 | 35 | null | null |
eryx67/haskell-libtorrent | src/Network/Libtorrent/TorrentHandle/TorrentStatus.hs | bsd-3-clause | getTotalWanted :: MonadIO m => TorrentStatus -> m Int64
getTotalWanted ho =
liftIO . withPtr ho $ \hoPtr ->
[CU.exp| int64_t { $(torrent_status * hoPtr)->total_wanted } |] | 176 | getTotalWanted :: MonadIO m => TorrentStatus -> m Int64
getTotalWanted ho =
liftIO . withPtr ho $ \hoPtr ->
[CU.exp| int64_t { $(torrent_status * hoPtr)->total_wanted } |] | 176 | getTotalWanted ho =
liftIO . withPtr ho $ \hoPtr ->
[CU.exp| int64_t { $(torrent_status * hoPtr)->total_wanted } |] | 119 | false | true | 0 | 7 | 31 | 50 | 26 | 24 | null | null |
valderman/selda | selda/src/Database/Selda/Nullable.hs | mit | a ?- b = cast $ fromNullable a - fromNullable b | 50 | a ?- b = cast $ fromNullable a - fromNullable b | 50 | a ?- b = cast $ fromNullable a - fromNullable b | 50 | false | false | 5 | 6 | 13 | 31 | 12 | 19 | null | null |
23Skidoo/heist | src/Heist/Compiled/Internal.hs | bsd-3-clause | parseAttr :: (Text, Text) -> (Text, Text)
parseAttr (k,v) = (k, T.concat $! map cvt ast)
where
!ast = case AP.feed (AP.parse attParser v) "" of
(AP.Done _ res) -> res
(AP.Fail _ _ _) -> []
(AP.Partial _ ) -> []
cvt (Literal x) = x
cvt (Ident i) = T.concat ["${", i, "}"]... | 493 | parseAttr :: (Text, Text) -> (Text, Text)
parseAttr (k,v) = (k, T.concat $! map cvt ast)
where
!ast = case AP.feed (AP.parse attParser v) "" of
(AP.Done _ res) -> res
(AP.Fail _ _ _) -> []
(AP.Partial _ ) -> []
cvt (Literal x) = x
cvt (Ident i) = T.concat ["${", i, "}"]... | 493 | parseAttr (k,v) = (k, T.concat $! map cvt ast)
where
!ast = case AP.feed (AP.parse attParser v) "" of
(AP.Done _ res) -> res
(AP.Fail _ _ _) -> []
(AP.Partial _ ) -> []
cvt (Literal x) = x
cvt (Ident i) = T.concat ["${", i, "}"]
----------------------------------------... | 451 | false | true | 0 | 10 | 125 | 181 | 95 | 86 | null | null |
phischu/fragnix | builtins/base/GHC.Int.hs | bsd-3-clause | (I16# x) `ltInt16` (I16# y) = isTrue# (x <# y) | 47 | (I16# x) `ltInt16` (I16# y) = isTrue# (x <# y) | 47 | (I16# x) `ltInt16` (I16# y) = isTrue# (x <# y) | 47 | false | false | 0 | 7 | 10 | 36 | 18 | 18 | null | null |
bitemyapp/ganeti | src/Ganeti/Config.hs | bsd-2-clause | getAllLVs :: ConfigData -> ErrorResult (S.Set LogicalVolume)
getAllLVs cd = mconcat <$> mapM (liftM MM.values . getInstanceLVsByNode cd)
(F.toList $ configInstances cd) | 200 | getAllLVs :: ConfigData -> ErrorResult (S.Set LogicalVolume)
getAllLVs cd = mconcat <$> mapM (liftM MM.values . getInstanceLVsByNode cd)
(F.toList $ configInstances cd) | 200 | getAllLVs cd = mconcat <$> mapM (liftM MM.values . getInstanceLVsByNode cd)
(F.toList $ configInstances cd) | 139 | false | true | 0 | 10 | 53 | 65 | 31 | 34 | null | null |
databrary/databrary | src/Model/Segment.hs | agpl-3.0 | lowerBound, upperBound :: Range.Range a -> Maybe a
lowerBound = Range.bound . Range.lowerBound | 94 | lowerBound, upperBound :: Range.Range a -> Maybe a
lowerBound = Range.bound . Range.lowerBound | 94 | lowerBound = Range.bound . Range.lowerBound | 43 | false | true | 2 | 7 | 12 | 38 | 17 | 21 | null | null |
cs383-final/cs383-finalproject | src/Model.hs | mit | inSphere :: V3 Float -> Radius -> V3 Float -> Bool
-- :: V3 Float -> Float -> V3 Float -> Bool
inSphere p_0 r p_i = ((x_i - x)^n + (y_i - y)^n + (z_i - z)^n) <= r^n
where x_i = p_i ^._x
y_i = p_i ^._y
z_i = p_i ^._z
x = p_0 ^._x
y = p_0 ^._y
z = p_0 ^._z... | 435 | inSphere :: V3 Float -> Radius -> V3 Float -> Bool
inSphere p_0 r p_i = ((x_i - x)^n + (y_i - y)^n + (z_i - z)^n) <= r^n
where x_i = p_i ^._x
y_i = p_i ^._y
z_i = p_i ^._z
x = p_0 ^._x
y = p_0 ^._y
z = p_0 ^._z
n = 2 :: Integer
-- |Check if a poin... | 385 | inSphere p_0 r p_i = ((x_i - x)^n + (y_i - y)^n + (z_i - z)^n) <= r^n
where x_i = p_i ^._x
y_i = p_i ^._y
z_i = p_i ^._z
x = p_0 ^._x
y = p_0 ^._y
z = p_0 ^._z
n = 2 :: Integer
-- |Check if a point in a 2D space is within a given radius of
-- ano... | 334 | true | true | 6 | 14 | 168 | 168 | 84 | 84 | null | null |
jaanos/TPJ-2015-16 | microhaskell/MH_Evaluator.hs | mit | evaluate env (Op("+", exp1, exp2)) =
let val1 = evaluate env exp1
val2 = evaluate env exp2
in case (val1, val2) of
(Num m, Num n) -> Num (m+n)
_ -> error "Runtime type error" | 201 | evaluate env (Op("+", exp1, exp2)) =
let val1 = evaluate env exp1
val2 = evaluate env exp2
in case (val1, val2) of
(Num m, Num n) -> Num (m+n)
_ -> error "Runtime type error" | 201 | evaluate env (Op("+", exp1, exp2)) =
let val1 = evaluate env exp1
val2 = evaluate env exp2
in case (val1, val2) of
(Num m, Num n) -> Num (m+n)
_ -> error "Runtime type error" | 201 | false | false | 0 | 12 | 61 | 99 | 50 | 49 | null | null |
xmonad/xmonad-contrib | XMonad/Actions/DynamicWorkspaces.hs | bsd-3-clause | -- | Add a new hidden workspace with the given name, or do nothing if
-- a workspace with the given name already exists. Takes a function to insert
-- the workspace at an arbitrary spot in the list.
addHiddenWorkspaceAt :: (WindowSpace -> [WindowSpace] -> [WindowSpace]) -> String -> X ()
addHiddenWorkspaceAt add ne... | 590 | addHiddenWorkspaceAt :: (WindowSpace -> [WindowSpace] -> [WindowSpace]) -> String -> X ()
addHiddenWorkspaceAt add newtag =
whenX (gets (not . tagMember newtag . windowset)) $ do
l <- asks (layoutHook . config)
windows (addHiddenWorkspace' add newtag l)
-- | Add a new hidden workspace with the given name, or... | 387 | addHiddenWorkspaceAt add newtag =
whenX (gets (not . tagMember newtag . windowset)) $ do
l <- asks (layoutHook . config)
windows (addHiddenWorkspace' add newtag l)
-- | Add a new hidden workspace with the given name, or do nothing if
-- a workspace with the given name already exists. | 297 | true | true | 0 | 12 | 116 | 116 | 58 | 58 | null | null |
SamirTalwar/advent-of-code | 2015/AOC_08_1.hs | mit | main = do
stringLiterals <- Text.lines <$> IO.getContents
let strings = map parseInput stringLiterals
let sizeOfStringLiterals = sum $ map Text.length stringLiterals
let sizeOfStrings = sum $ map Text.length strings
print sizeOfStringLiterals
print sizeOfStrings
print $ sizeOfStringLiterals - sizeOfString... | 321 | main = do
stringLiterals <- Text.lines <$> IO.getContents
let strings = map parseInput stringLiterals
let sizeOfStringLiterals = sum $ map Text.length stringLiterals
let sizeOfStrings = sum $ map Text.length strings
print sizeOfStringLiterals
print sizeOfStrings
print $ sizeOfStringLiterals - sizeOfString... | 321 | main = do
stringLiterals <- Text.lines <$> IO.getContents
let strings = map parseInput stringLiterals
let sizeOfStringLiterals = sum $ map Text.length stringLiterals
let sizeOfStrings = sum $ map Text.length strings
print sizeOfStringLiterals
print sizeOfStrings
print $ sizeOfStringLiterals - sizeOfString... | 321 | false | false | 1 | 12 | 52 | 102 | 43 | 59 | null | null |
mzero/barley | src/Barley/AltLoad.hs | apache-2.0 | ------------------------------------------------------------------------
--
-- | unload a module and its dependencies
-- we have the dependencies, so cascaded unloading is possible
--
unloadAll :: Module -> IO ()
unloadAll m = do moduleDeps <- getModuleDeps m
rmModuleDeps m
mapM_ unloa... | 635 | unloadAll :: Module -> IO ()
unloadAll m = do moduleDeps <- getModuleDeps m
rmModuleDeps m
mapM_ unloadAll moduleDeps
unload m
--
-- | this will be nice for panTHeon, needs thinking about the interface
-- reload a single object file. don't care about depends, assume ... | 451 | unloadAll m = do moduleDeps <- getModuleDeps m
rmModuleDeps m
mapM_ unloadAll moduleDeps
unload m
--
-- | this will be nice for panTHeon, needs thinking about the interface
-- reload a single object file. don't care about depends, assume they
-- are loaded. (should u... | 422 | true | true | 0 | 8 | 145 | 67 | 36 | 31 | null | null |
mrlovre/super-memory | Pro3/src/LinguisticVariables/DistanceLinguisticVariables.hs | gpl-3.0 | distance :: ADomain
distance = ADomain $ simpleDomain 0 1300 | 60 | distance :: ADomain
distance = ADomain $ simpleDomain 0 1300 | 60 | distance = ADomain $ simpleDomain 0 1300 | 40 | false | true | 0 | 6 | 9 | 20 | 10 | 10 | null | null |
dysinger/amazonka | amazonka-swf/gen/Network/AWS/SWF/ListOpenWorkflowExecutions.hs | mpl-2.0 | -- | 'ListOpenWorkflowExecutions' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'loweDomain' @::@ 'Text'
--
-- * 'loweExecutionFilter' @::@ 'Maybe' 'WorkflowExecutionFilter'
--
-- * 'loweMaximumPageSize' @::@ 'Maybe' 'Natural'
--
-- * 'loweNextPageToken' @::@ 'Maybe' 'Text'
--
-- * ... | 1,067 | listOpenWorkflowExecutions :: Text -- ^ 'loweDomain'
-> ExecutionTimeFilter -- ^ 'loweStartTimeFilter'
-> ListOpenWorkflowExecutions
listOpenWorkflowExecutions p1 p2 = ListOpenWorkflowExecutions
{ _loweDomain = p1
, _loweStartTimeFilter = p2
, _... | 540 | listOpenWorkflowExecutions p1 p2 = ListOpenWorkflowExecutions
{ _loweDomain = p1
, _loweStartTimeFilter = p2
, _loweTypeFilter = Nothing
, _loweTagFilter = Nothing
, _loweNextPageToken = Nothing
, _loweMaximumPageSize = Nothing
, _loweReverseOrder = Nothing
, _lo... | 353 | true | true | 0 | 8 | 233 | 105 | 69 | 36 | null | null |
alanz/Blobs | lib/DData/Set.hs | lgpl-2.1 | -- | /O(n)/. Partition the set into two sets, one with all elements that satisfy
-- the predicate and one with all elements that don't satisfy the predicate.
-- See also 'split'.
partition :: Ord a => (a -> Bool) -> Set a -> (Set a,Set a)
partition p Tip = (Tip,Tip) | 266 | partition :: Ord a => (a -> Bool) -> Set a -> (Set a,Set a)
partition p Tip = (Tip,Tip) | 87 | partition p Tip = (Tip,Tip) | 27 | true | true | 0 | 9 | 51 | 62 | 33 | 29 | null | null |
yi-editor/yi | yi-keymap-vim/tests/Vim/TestExCommandParsers.hs | gpl-2.0 | expectedParserSelected :: CommandParser -> TestTree
expectedParserSelected expectedCommandParser =
testProperty testName $
forAll (commandString expectedCommandParser) $ \s ->
let expectedName = expectedCommandName (Ev $ T.pack s)
actualName = actualCommandName (Ev $ T.pack s)
... | 1,130 | expectedParserSelected :: CommandParser -> TestTree
expectedParserSelected expectedCommandParser =
testProperty testName $
forAll (commandString expectedCommandParser) $ \s ->
let expectedName = expectedCommandName (Ev $ T.pack s)
actualName = actualCommandName (Ev $ T.pack s)
... | 1,130 | expectedParserSelected expectedCommandParser =
testProperty testName $
forAll (commandString expectedCommandParser) $ \s ->
let expectedName = expectedCommandName (Ev $ T.pack s)
actualName = actualCommandName (Ev $ T.pack s)
in counterexample (errorMessage s actual... | 1,078 | false | true | 5 | 15 | 279 | 220 | 109 | 111 | null | null |
ckaestne/CIDE | other/CaseStudies/fgl/CIDEfgl/Data/Graph/Inductive/Query/MaxFlow2.hs | gpl-3.0 | ekFusedStep g s t
= case maybePath of
{ Just _
-> Just ((insEdges (integrateDelta es delta) newg), delta);
Nothing -> Nothing}
where { maybePath = augPathFused g s t;
(es, newg) = extractPathFused g (fromJust maybePath);
delta = minimum $ getPathDeltas... | 324 | ekFusedStep g s t
= case maybePath of
{ Just _
-> Just ((insEdges (integrateDelta es delta) newg), delta);
Nothing -> Nothing}
where { maybePath = augPathFused g s t;
(es, newg) = extractPathFused g (fromJust maybePath);
delta = minimum $ getPathDeltas... | 324 | ekFusedStep g s t
= case maybePath of
{ Just _
-> Just ((insEdges (integrateDelta es delta) newg), delta);
Nothing -> Nothing}
where { maybePath = augPathFused g s t;
(es, newg) = extractPathFused g (fromJust maybePath);
delta = minimum $ getPathDeltas... | 324 | false | false | 0 | 13 | 110 | 113 | 60 | 53 | null | null |
alanz/vh-play | src/A.hs | bsd-3-clause | showExport :: Show a => ABExport a -> String
showExport (ABE poly mono _wrap _prags) = "(ABE " ++ (show poly) ++ "," ++ (show mono) ++ ")" | 138 | showExport :: Show a => ABExport a -> String
showExport (ABE poly mono _wrap _prags) = "(ABE " ++ (show poly) ++ "," ++ (show mono) ++ ")" | 138 | showExport (ABE poly mono _wrap _prags) = "(ABE " ++ (show poly) ++ "," ++ (show mono) ++ ")" | 93 | false | true | 0 | 10 | 27 | 68 | 33 | 35 | null | null |
badp/ganeti | src/Ganeti/Constants.hs | gpl-2.0 | becDefaults :: Map String PyValueEx
becDefaults =
Map.fromList
[ (beMinmem, PyValueEx (128 :: Int))
, (beMaxmem, PyValueEx (128 :: Int))
, (beVcpus, PyValueEx (1 :: Int))
, (beAutoBalance, PyValueEx True)
, (beAlwaysFailover, PyValueEx False)
, (beSpindleUse, PyValueEx (1 :: Int))
] | 299 | becDefaults :: Map String PyValueEx
becDefaults =
Map.fromList
[ (beMinmem, PyValueEx (128 :: Int))
, (beMaxmem, PyValueEx (128 :: Int))
, (beVcpus, PyValueEx (1 :: Int))
, (beAutoBalance, PyValueEx True)
, (beAlwaysFailover, PyValueEx False)
, (beSpindleUse, PyValueEx (1 :: Int))
] | 299 | becDefaults =
Map.fromList
[ (beMinmem, PyValueEx (128 :: Int))
, (beMaxmem, PyValueEx (128 :: Int))
, (beVcpus, PyValueEx (1 :: Int))
, (beAutoBalance, PyValueEx True)
, (beAlwaysFailover, PyValueEx False)
, (beSpindleUse, PyValueEx (1 :: Int))
] | 263 | false | true | 0 | 8 | 56 | 117 | 68 | 49 | null | null |
green-haskell/ghc | compiler/nativeGen/X86/CodeGen.hs | bsd-3-clause | if_sse2 :: NatM a -> NatM a -> NatM a
if_sse2 sse2 x87 = do
b <- sse2Enabled
if b then sse2 else x87 | 104 | if_sse2 :: NatM a -> NatM a -> NatM a
if_sse2 sse2 x87 = do
b <- sse2Enabled
if b then sse2 else x87 | 104 | if_sse2 sse2 x87 = do
b <- sse2Enabled
if b then sse2 else x87 | 66 | false | true | 0 | 7 | 27 | 51 | 24 | 27 | null | null |
netvl/alpmhs | lib/Distribution/ArchLinux/Libalpm/Wrapper/TH.hs | bsd-3-clause | transformName :: Name -> Name
transformName name = mkName $ case nameBase name of
('_':rest) -> rest
sname -> "set" ++ capitalize sname | 144 | transformName :: Name -> Name
transformName name = mkName $ case nameBase name of
('_':rest) -> rest
sname -> "set" ++ capitalize sname | 144 | transformName name = mkName $ case nameBase name of
('_':rest) -> rest
sname -> "set" ++ capitalize sname | 114 | false | true | 2 | 9 | 31 | 61 | 28 | 33 | null | null |
alexbiehl/StringMap | Data/StringMap/Strict.hs | mit | -- | /O(min(n,L))/ Insert with a combining function. If the key is already present in the map,
-- the value of @f new_value old_value@ will be inserted.
insertWith :: (a -> a -> a) -> Key -> a -> StringMap a -> StringMap a
insertWith f !k v t = insert' f v k t | 295 | insertWith :: (a -> a -> a) -> Key -> a -> StringMap a -> StringMap a
insertWith f !k v t = insert' f v k t | 141 | insertWith f !k v t = insert' f v k t | 50 | true | true | 0 | 11 | 89 | 71 | 34 | 37 | null | null |
d0kt0r0/estuary | client/src/Estuary/Widgets/Reflex.hs | gpl-3.0 | repDivWidget'::MonadWidget t m => RepOrDiv -> Event t () -> m (Event t RepOrDiv)
repDivWidget' iVal _ = elClass "span" "repOrDiv" $ mdo
repDivButton <- clickableSpanClass showRep "repDivSpan" ()
repTog <- toggle iToggle repDivButton
let showRep = fmap (\x-> if x then " * " else " / ") repTog
let textAttrs = con... | 957 | repDivWidget'::MonadWidget t m => RepOrDiv -> Event t () -> m (Event t RepOrDiv)
repDivWidget' iVal _ = elClass "span" "repOrDiv" $ mdo
repDivButton <- clickableSpanClass showRep "repDivSpan" ()
repTog <- toggle iToggle repDivButton
let showRep = fmap (\x-> if x then " * " else " / ") repTog
let textAttrs = con... | 957 | repDivWidget' iVal _ = elClass "span" "repOrDiv" $ mdo
repDivButton <- clickableSpanClass showRep "repDivSpan" ()
repTog <- toggle iToggle repDivButton
let showRep = fmap (\x-> if x then " * " else " / ") repTog
let textAttrs = constDyn $ fromList $ zip ["min", "class"] ["1","repOrDivInput"]
textField <- text... | 876 | false | true | 0 | 20 | 185 | 398 | 200 | 198 | null | null |
zenhack/dedup-backup | tests/TestUtil.hs | gpl-3.0 | lStatTree :: String -> IO (DDB.FileTree FileStatus)
lStatTree path = mapStatus fromDDBFileStatus <$> DDB.lStatTree path | 119 | lStatTree :: String -> IO (DDB.FileTree FileStatus)
lStatTree path = mapStatus fromDDBFileStatus <$> DDB.lStatTree path | 119 | lStatTree path = mapStatus fromDDBFileStatus <$> DDB.lStatTree path | 67 | false | true | 0 | 9 | 14 | 41 | 19 | 22 | null | null |
solatis/haskell-base32string | src/Data/Base32String.hs | mit | -- | Smart constructor which validates that all the text are actually
-- base-32 characters.
b32String :: BS.ByteString -- ^ Our Base32 mapping table
-> BS.ByteString -- ^ Our Base32 string
-> Base32String
b32String table bs =
if BS.all (isValidBase32 table) bs
then Base32String bs
else er... | 366 | b32String :: BS.ByteString -- ^ Our Base32 mapping table
-> BS.ByteString -- ^ Our Base32 string
-> Base32String
b32String table bs =
if BS.all (isValidBase32 table) bs
then Base32String bs
else error ("Not a valid base32 string: " ++ show bs) | 271 | b32String table bs =
if BS.all (isValidBase32 table) bs
then Base32String bs
else error ("Not a valid base32 string: " ++ show bs) | 138 | true | true | 0 | 8 | 85 | 75 | 37 | 38 | null | null |
cordawyn/rdf4h | src/Text/RDF/RDF4H/TurtleSerializer.hs | bsd-3-clause | _writeRdf :: RDF rdf => Handle -> Maybe T.Text -> rdf -> IO ()
_writeRdf h mdUrl rdf =
writeHeader h bUrl pms' >> writeTriples h mdUrl pms' ts >> hPutChar h '\n'
where
bUrl = baseUrl rdf
-- a merged set of prefix mappings using those from the standard_ns_mappings
-- that are not defined already (union... | 495 | _writeRdf :: RDF rdf => Handle -> Maybe T.Text -> rdf -> IO ()
_writeRdf h mdUrl rdf =
writeHeader h bUrl pms' >> writeTriples h mdUrl pms' ts >> hPutChar h '\n'
where
bUrl = baseUrl rdf
-- a merged set of prefix mappings using those from the standard_ns_mappings
-- that are not defined already (union... | 495 | _writeRdf h mdUrl rdf =
writeHeader h bUrl pms' >> writeTriples h mdUrl pms' ts >> hPutChar h '\n'
where
bUrl = baseUrl rdf
-- a merged set of prefix mappings using those from the standard_ns_mappings
-- that are not defined already (union is left-biased).
pms' = PrefixMappings $ Map.union (asMa... | 432 | false | true | 0 | 10 | 114 | 143 | 69 | 74 | null | null |
phischu/fragnix | benchmarks/containers/Data.Map.Base.hs | bsd-3-clause | findMax Tip = error "Map.findMax: empty map has no maximal element" | 83 | findMax Tip = error "Map.findMax: empty map has no maximal element" | 83 | findMax Tip = error "Map.findMax: empty map has no maximal element" | 83 | false | false | 0 | 5 | 26 | 13 | 5 | 8 | null | null |
homam/fsm-conversational-ui | src/TestFMS6.hs | bsd-3-clause | runApp :: FlowId -> App -> String -> UserState -> SerializableState -> IO ()
runApp flowId oApp input userState rest = case parser oApp input of
Nothing -> do
print "Invalid Input"
case oApp of
Await{} -> print $ message oApp userState
_ -> error "Input received for a non-Await app... | 368 | runApp :: FlowId -> App -> String -> UserState -> SerializableState -> IO ()
runApp flowId oApp input userState rest = case parser oApp input of
Nothing -> do
print "Invalid Input"
case oApp of
Await{} -> print $ message oApp userState
_ -> error "Input received for a non-Await app... | 368 | runApp flowId oApp input userState rest = case parser oApp input of
Nothing -> do
print "Invalid Input"
case oApp of
Await{} -> print $ message oApp userState
_ -> error "Input received for a non-Await app"
Just e -> run e flowId oApp userState rest | 291 | false | true | 0 | 14 | 101 | 127 | 58 | 69 | null | null |
sethfowler/pygmalion | src/Pygmalion/RPC/Server.hs | bsd-3-clause | route (RPCGetCallees sl) = sendQuery $ DBGetCallees sl | 74 | route (RPCGetCallees sl) = sendQuery $ DBGetCallees sl | 74 | route (RPCGetCallees sl) = sendQuery $ DBGetCallees sl | 74 | false | false | 0 | 7 | 27 | 22 | 10 | 12 | null | null |
romanb/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DescribeRdsDbInstances.hs | mpl-2.0 | describeRdsDbInstancesResponse :: DescribeRdsDbInstancesResponse
describeRdsDbInstancesResponse = DescribeRdsDbInstancesResponse
{ _drdirRdsDbInstances = mempty
} | 170 | describeRdsDbInstancesResponse :: DescribeRdsDbInstancesResponse
describeRdsDbInstancesResponse = DescribeRdsDbInstancesResponse
{ _drdirRdsDbInstances = mempty
} | 170 | describeRdsDbInstancesResponse = DescribeRdsDbInstancesResponse
{ _drdirRdsDbInstances = mempty
} | 105 | false | true | 0 | 7 | 18 | 23 | 12 | 11 | null | null |
green-haskell/ghc | compiler/basicTypes/Module.hs | bsd-3-clause | rtsPackageKey = fsToPackageKey (fsLit "rts") | 52 | rtsPackageKey = fsToPackageKey (fsLit "rts") | 52 | rtsPackageKey = fsToPackageKey (fsLit "rts") | 52 | false | false | 0 | 7 | 12 | 15 | 7 | 8 | null | null |
SeanRBurton/aeson | tests/Properties.hs | bsd-3-clause | --------------------------------------------------------------------------------
-- Value properties
--------------------------------------------------------------------------------
isString :: Value -> Bool
isString (String _) = True | 235 | isString :: Value -> Bool
isString (String _) = True | 52 | isString (String _) = True | 26 | true | true | 0 | 7 | 15 | 27 | 15 | 12 | null | null |
prl-tokyo/bigul-configuration-adaptation | Transformations/src/Generics/BiGUL/AST.hs | mit | checkUPat' (UElem upath upatt) = checkUPat' upath >> checkUPat' upatt | 69 | checkUPat' (UElem upath upatt) = checkUPat' upath >> checkUPat' upatt | 69 | checkUPat' (UElem upath upatt) = checkUPat' upath >> checkUPat' upatt | 69 | false | false | 0 | 7 | 9 | 27 | 12 | 15 | null | null |
haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/lens/hc-usage/src/Lib.hs | unlicense | hasBar :: (Monad m, HasBar x) => RWST () [Text] x m Text
hasBar = do
fx <- use barX
barX .= "bx/hasBar"
fy <- use barY
barY .= "by/hasBar"
pure (fx <> fy) | 169 | hasBar :: (Monad m, HasBar x) => RWST () [Text] x m Text
hasBar = do
fx <- use barX
barX .= "bx/hasBar"
fy <- use barY
barY .= "by/hasBar"
pure (fx <> fy) | 169 | hasBar = do
fx <- use barX
barX .= "bx/hasBar"
fy <- use barY
barY .= "by/hasBar"
pure (fx <> fy) | 112 | false | true | 0 | 9 | 48 | 89 | 42 | 47 | null | null |
y-usuzumi/goblin-workshop | src/Goblin/Workshop/Scheduler.hs | bsd-3-clause | newSchedulerBus :: STM (SchedulerBus m)
newSchedulerBus = newTChan | 66 | newSchedulerBus :: STM (SchedulerBus m)
newSchedulerBus = newTChan | 66 | newSchedulerBus = newTChan | 26 | false | true | 0 | 7 | 7 | 20 | 10 | 10 | null | null |
hpacheco/jasminv | src/Language/Jasmin/Parser/Parser.hs | gpl-3.0 | peop2 HAT = toK HAT BXor2 | 40 | peop2 HAT = toK HAT BXor2 | 40 | peop2 HAT = toK HAT BXor2 | 40 | false | false | 0 | 5 | 20 | 14 | 6 | 8 | null | null |
bigs/7inch | Text/Parsers/IRC.hs | mit | commandToString PONG [response] = "PONG :" ++ response | 54 | commandToString PONG [response] = "PONG :" ++ response | 54 | commandToString PONG [response] = "PONG :" ++ response | 54 | false | false | 0 | 6 | 7 | 18 | 9 | 9 | null | null |
fmthoma/ghc | compiler/deSugar/DsCCall.hs | bsd-3-clause | maybeNarrow :: DynFlags -> TyCon -> (CoreExpr -> CoreExpr)
maybeNarrow dflags tycon
| tycon `hasKey` int8TyConKey = \e -> App (Var (mkPrimOpId Narrow8IntOp)) e
| tycon `hasKey` int16TyConKey = \e -> App (Var (mkPrimOpId Narrow16IntOp)) e
| tycon `hasKey` int32TyConKey
&& wORD_SIZE dflags > 4 =... | 691 | maybeNarrow :: DynFlags -> TyCon -> (CoreExpr -> CoreExpr)
maybeNarrow dflags tycon
| tycon `hasKey` int8TyConKey = \e -> App (Var (mkPrimOpId Narrow8IntOp)) e
| tycon `hasKey` int16TyConKey = \e -> App (Var (mkPrimOpId Narrow16IntOp)) e
| tycon `hasKey` int32TyConKey
&& wORD_SIZE dflags > 4 =... | 691 | maybeNarrow dflags tycon
| tycon `hasKey` int8TyConKey = \e -> App (Var (mkPrimOpId Narrow8IntOp)) e
| tycon `hasKey` int16TyConKey = \e -> App (Var (mkPrimOpId Narrow16IntOp)) e
| tycon `hasKey` int32TyConKey
&& wORD_SIZE dflags > 4 = \e -> App (Var (mkPrimOpId Narrow32IntOp)) e
| tycon `h... | 632 | false | true | 4 | 11 | 170 | 284 | 144 | 140 | null | null |
FranklinChen/Idris-dev | src/IRTS/CodegenC.hs | bsd-3-clause | doOp v (LFloatInt ITNative) [x] = v ++ "idris_castFloatInt(" ++ creg x ++ ")" | 77 | doOp v (LFloatInt ITNative) [x] = v ++ "idris_castFloatInt(" ++ creg x ++ ")" | 77 | doOp v (LFloatInt ITNative) [x] = v ++ "idris_castFloatInt(" ++ creg x ++ ")" | 77 | false | false | 0 | 7 | 13 | 40 | 18 | 22 | null | null |
mstruebing/todo.hs | app/Main.hs | mit | todoApp :: Parser TodoApp
todoApp = TodoApp
<$> (optional $ strOption
(long "add"
<> short 'a'
<> metavar "<TODO>"
<> help "add todo"))
<*> (optional $ option auto
(long "remove"
<> short 'r'
<> metavar "<TODONUMBER>"
<> help "remove todo"))
<... | 414 | todoApp :: Parser TodoApp
todoApp = TodoApp
<$> (optional $ strOption
(long "add"
<> short 'a'
<> metavar "<TODO>"
<> help "add todo"))
<*> (optional $ option auto
(long "remove"
<> short 'r'
<> metavar "<TODONUMBER>"
<> help "remove todo"))
<... | 414 | todoApp = TodoApp
<$> (optional $ strOption
(long "add"
<> short 'a'
<> metavar "<TODO>"
<> help "add todo"))
<*> (optional $ option auto
(long "remove"
<> short 'r'
<> metavar "<TODONUMBER>"
<> help "remove todo"))
<*> switch
(long "... | 388 | false | true | 8 | 12 | 153 | 138 | 63 | 75 | null | null |
abuiles/turbinado-blog | Config/Master.hs | bsd-3-clause | componentViewStub = "Turbinado/Stubs/ComponentView.hs" | 60 | componentViewStub = "Turbinado/Stubs/ComponentView.hs" | 60 | componentViewStub = "Turbinado/Stubs/ComponentView.hs" | 60 | false | false | 1 | 5 | 8 | 10 | 3 | 7 | null | null |
jwiegley/ghc-release | libraries/Cabal/cabal-install/Distribution/Client/Init.hs | gpl-3.0 | getHomepage :: InitFlags -> IO InitFlags
getHomepage flags = do
hp <- queryHomepage
hp' <- return (flagToMaybe $ homepage flags)
?>> maybePrompt flags (promptStr "Project homepage URL" hp)
?>> return hp
return $ flags { homepage = maybeToFlag hp' }
-- | Right now this does nothing, but it... | 375 | getHomepage :: InitFlags -> IO InitFlags
getHomepage flags = do
hp <- queryHomepage
hp' <- return (flagToMaybe $ homepage flags)
?>> maybePrompt flags (promptStr "Project homepage URL" hp)
?>> return hp
return $ flags { homepage = maybeToFlag hp' }
-- | Right now this does nothing, but it... | 375 | getHomepage flags = do
hp <- queryHomepage
hp' <- return (flagToMaybe $ homepage flags)
?>> maybePrompt flags (promptStr "Project homepage URL" hp)
?>> return hp
return $ flags { homepage = maybeToFlag hp' }
-- | Right now this does nothing, but it could be changed to do some
-- intelli... | 334 | false | true | 0 | 13 | 90 | 92 | 44 | 48 | null | null |
Porges/stringprep-hs | Text/CharRanges.hs | bsd-3-clause | single :: Char -> Range
single = Single | 39 | single :: Char -> Range
single = Single | 39 | single = Single | 15 | false | true | 0 | 7 | 7 | 22 | 9 | 13 | null | null |
tom-szczarkowski/matasano-crypto-puzzles-solutions | set6/NumberTheory.hs | mit | -- uniform random k-bit prime
cryptoRandomPrime k = do
n <- cryptoRandomInteger (2^(k-1)) (2^k)
prime <- rabinMiller n 128
if prime then return n else cryptoRandomPrime k
-- for Diffie-Hellman | 201 | cryptoRandomPrime k = do
n <- cryptoRandomInteger (2^(k-1)) (2^k)
prime <- rabinMiller n 128
if prime then return n else cryptoRandomPrime k
-- for Diffie-Hellman | 170 | cryptoRandomPrime k = do
n <- cryptoRandomInteger (2^(k-1)) (2^k)
prime <- rabinMiller n 128
if prime then return n else cryptoRandomPrime k
-- for Diffie-Hellman | 170 | true | false | 1 | 13 | 38 | 77 | 36 | 41 | null | null |
Miguel-Fontes/hs-file-watcher | src/Watcher/Filter.hs | mit | noPoints :: Filter
noPoints = Filter ("noPoints", \x -> nome x /="." && nome x /="..") | 86 | noPoints :: Filter
noPoints = Filter ("noPoints", \x -> nome x /="." && nome x /="..") | 86 | noPoints = Filter ("noPoints", \x -> nome x /="." && nome x /="..") | 67 | false | true | 0 | 11 | 15 | 43 | 22 | 21 | null | null |
bitemyapp/ghc | compiler/basicTypes/SrcLoc.hs | bsd-3-clause | -- | Raises an error when used on a "bad" 'SrcLoc'
srcLocCol :: RealSrcLoc -> Int
srcLocCol (SrcLoc _ _ c) = c | 110 | srcLocCol :: RealSrcLoc -> Int
srcLocCol (SrcLoc _ _ c) = c | 59 | srcLocCol (SrcLoc _ _ c) = c | 28 | true | true | 0 | 7 | 22 | 29 | 15 | 14 | null | null |
tismith/tlisp | src/Eval.hs | mit | apply e _ = throwError $ TypeMismatch "function" e | 50 | apply e _ = throwError $ TypeMismatch "function" e | 50 | apply e _ = throwError $ TypeMismatch "function" e | 50 | false | false | 0 | 6 | 8 | 22 | 9 | 13 | null | null |
forste/haReFork | tools/hs2html/MyDoc.hs | bsd-3-clause | ppC x = env ppCode x | 20 | ppC x = env ppCode x | 20 | ppC x = env ppCode x | 20 | false | false | 1 | 5 | 5 | 19 | 6 | 13 | null | null |
llelf/prose | Prose/Segmentation/Graphemes.hs | bsd-3-clause | -- Vowel_Jamo
t = (⊙)['\x11A8'..'\x11FF'] ∪ (⊙)['\xD7CB'..'\xD7FB'] | 67 | t = (⊙)['\x11A8'..'\x11FF'] ∪ (⊙)['\xD7CB'..'\xD7FB'] | 53 | t = (⊙)['\x11A8'..'\x11FF'] ∪ (⊙)['\xD7CB'..'\xD7FB'] | 53 | true | false | 1 | 7 | 6 | 30 | 16 | 14 | null | null |
jgm/haddock | src/Haddock/Utils.hs | bsd-2-clause | mainFrameName = "main" | 22 | mainFrameName = "main" | 22 | mainFrameName = "main" | 22 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
fmapfmapfmap/amazonka | amazonka-ec2/test/Test/AWS/Gen/EC2.hs | mpl-2.0 | testDeleteNetworkACLResponse :: DeleteNetworkACLResponse -> TestTree
testDeleteNetworkACLResponse = res
"DeleteNetworkACLResponse"
"fixture/DeleteNetworkACLResponse.proto"
eC2
(Proxy :: Proxy DeleteNetworkACL) | 225 | testDeleteNetworkACLResponse :: DeleteNetworkACLResponse -> TestTree
testDeleteNetworkACLResponse = res
"DeleteNetworkACLResponse"
"fixture/DeleteNetworkACLResponse.proto"
eC2
(Proxy :: Proxy DeleteNetworkACL) | 225 | testDeleteNetworkACLResponse = res
"DeleteNetworkACLResponse"
"fixture/DeleteNetworkACLResponse.proto"
eC2
(Proxy :: Proxy DeleteNetworkACL) | 156 | false | true | 0 | 7 | 30 | 33 | 17 | 16 | null | null |
spechub/Hets | OWL2/XMLKeywords.hs | gpl-2.0 | inverseObjectPropertiesK :: String
inverseObjectPropertiesK = "InverseObjectProperties" | 87 | inverseObjectPropertiesK :: String
inverseObjectPropertiesK = "InverseObjectProperties" | 87 | inverseObjectPropertiesK = "InverseObjectProperties" | 52 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
aelyasov/Haslog | src/Eu/Fittest/Logging/Compression/RawlogParser_withUUParsers.hs | bsd-3-clause | -- | To parse a string containing raw log entries.
--
strParseRawLog :: String -> [RawLogEntry UTCTimeStamp1970 String [String]]
strParseRawLog input = runParser "Error when parsing a raw-log."
parseLog
input | 281 | strParseRawLog :: String -> [RawLogEntry UTCTimeStamp1970 String [String]]
strParseRawLog input = runParser "Error when parsing a raw-log."
parseLog
input | 224 | strParseRawLog input = runParser "Error when parsing a raw-log."
parseLog
input | 149 | true | true | 0 | 8 | 102 | 40 | 21 | 19 | null | null |
apyrgio/snf-ganeti | src/Ganeti/Constants.hs | bsd-2-clause | instanceRebootFull :: String
instanceRebootFull = Types.rebootTypeToRaw RebootFull | 82 | instanceRebootFull :: String
instanceRebootFull = Types.rebootTypeToRaw RebootFull | 82 | instanceRebootFull = Types.rebootTypeToRaw RebootFull | 53 | false | true | 0 | 6 | 6 | 16 | 8 | 8 | null | null |
rahulmutt/ghcvm | compiler/Eta/DeSugar/DsArrows.hs | bsd-3-clause | dsCmd ids local_vars stack_ty res_ty
(HsCmdCase exp (MG { mg_alts = matches, mg_arg_tys = arg_tys, mg_origin = origin }))
env_ids = do
stack_id <- newSysLocalDs stack_ty
-- Extract and desugar the leaf commands in the case, building tuple
-- expressions that will (after tagging) replace these l... | 2,644 | dsCmd ids local_vars stack_ty res_ty
(HsCmdCase exp (MG { mg_alts = matches, mg_arg_tys = arg_tys, mg_origin = origin }))
env_ids = do
stack_id <- newSysLocalDs stack_ty
-- Extract and desugar the leaf commands in the case, building tuple
-- expressions that will (after tagging) replace these l... | 2,644 | dsCmd ids local_vars stack_ty res_ty
(HsCmdCase exp (MG { mg_alts = matches, mg_arg_tys = arg_tys, mg_origin = origin }))
env_ids = do
stack_id <- newSysLocalDs stack_ty
-- Extract and desugar the leaf commands in the case, building tuple
-- expressions that will (after tagging) replace these l... | 2,644 | false | false | 0 | 17 | 746 | 571 | 299 | 272 | null | null |
plow-technologies/cabal | cabal-install/Distribution/Client/HttpUtils.hs | bsd-3-clause | remoteRepoTryUpgradeToHttps :: HttpTransport -> RemoteRepo -> IO RemoteRepo
remoteRepoTryUpgradeToHttps transport repo
| remoteRepoShouldTryHttps repo
, uriScheme (remoteRepoURI repo) == "http:"
, not (transportSupportsHttps transport)
, not (transportManuallySelected transport)
= die $ "The builtin HTTP impl... | 1,262 | remoteRepoTryUpgradeToHttps :: HttpTransport -> RemoteRepo -> IO RemoteRepo
remoteRepoTryUpgradeToHttps transport repo
| remoteRepoShouldTryHttps repo
, uriScheme (remoteRepoURI repo) == "http:"
, not (transportSupportsHttps transport)
, not (transportManuallySelected transport)
= die $ "The builtin HTTP impl... | 1,262 | remoteRepoTryUpgradeToHttps transport repo
| remoteRepoShouldTryHttps repo
, uriScheme (remoteRepoURI repo) == "http:"
, not (transportSupportsHttps transport)
, not (transportManuallySelected transport)
= die $ "The builtin HTTP implementation does not support HTTPS, but using "
++ "HTTPS for authenti... | 1,186 | false | true | 20 | 11 | 272 | 239 | 110 | 129 | null | null |
nushio3/ghc | compiler/typecheck/TcRnTypes.hs | bsd-3-clause | exprCtOrigin (RecordCon {}) = Shouldn'tHappenOrigin "record construction" | 77 | exprCtOrigin (RecordCon {}) = Shouldn'tHappenOrigin "record construction" | 77 | exprCtOrigin (RecordCon {}) = Shouldn'tHappenOrigin "record construction" | 77 | false | false | 0 | 6 | 10 | 20 | 9 | 11 | null | null |
intolerable/reddit | test/Reddit/Types/PostSpec.hs | bsd-2-clause | main :: IO ()
main = hspec spec | 31 | main :: IO ()
main = hspec spec | 31 | main = hspec spec | 17 | false | true | 1 | 6 | 7 | 22 | 9 | 13 | null | null |
ekmett/wxHaskell | wxdirect/src/CompileClasses.hs | lgpl-2.1 | haskellTypeArg _decl _i (Arg ["_stl"] (Int _)) = "Style" | 58 | haskellTypeArg _decl _i (Arg ["_stl"] (Int _)) = "Style" | 58 | haskellTypeArg _decl _i (Arg ["_stl"] (Int _)) = "Style" | 58 | false | false | 0 | 8 | 10 | 33 | 15 | 18 | null | null |
ezyang/ghc | compiler/typecheck/TcGenDeriv.hs | bsd-3-clause | ------------
gen_Ord_binds :: SrcSpan -> TyCon -> TcM (LHsBinds GhcPs, BagDerivStuff)
gen_Ord_binds loc tycon = do
dflags <- getDynFlags
return $ if null tycon_data_cons -- No data-cons => invoke bale-out case
then ( unitBag $ mkFunBindEC 2 loc compare_RDR (const eqTag_Expr) []
, emptyBag)
... | 5,844 | gen_Ord_binds :: SrcSpan -> TyCon -> TcM (LHsBinds GhcPs, BagDerivStuff)
gen_Ord_binds loc tycon = do
dflags <- getDynFlags
return $ if null tycon_data_cons -- No data-cons => invoke bale-out case
then ( unitBag $ mkFunBindEC 2 loc compare_RDR (const eqTag_Expr) []
, emptyBag)
else ( unit... | 5,831 | gen_Ord_binds loc tycon = do
dflags <- getDynFlags
return $ if null tycon_data_cons -- No data-cons => invoke bale-out case
then ( unitBag $ mkFunBindEC 2 loc compare_RDR (const eqTag_Expr) []
, emptyBag)
else ( unitBag (mkOrdOp dflags OrdCompare) `unionBags` other_ops dflags
,... | 5,758 | true | true | 85 | 14 | 1,857 | 1,395 | 722 | 673 | null | null |
bgamari/text | tests/Tests/Properties.hs | bsd-2-clause | tl_decimal (n::Int) s =
TL.signed TL.decimal (TL.pack (show n) `TL.append` t) === Right (n,t)
where t = TL.dropWhile isDigit s | 134 | tl_decimal (n::Int) s =
TL.signed TL.decimal (TL.pack (show n) `TL.append` t) === Right (n,t)
where t = TL.dropWhile isDigit s | 134 | tl_decimal (n::Int) s =
TL.signed TL.decimal (TL.pack (show n) `TL.append` t) === Right (n,t)
where t = TL.dropWhile isDigit s | 134 | false | false | 0 | 11 | 27 | 77 | 39 | 38 | null | null |
Minoru/hakyll | src/Hakyll/Check.hs | bsd-3-clause | checkFile :: FilePath -> Checker ()
checkFile filePath = do
logger <- checkerLogger <$> ask
contents <- liftIO $ readFile filePath
Logger.header logger $ "Checking file " ++ filePath
let urls = getUrls $ TS.parseTags contents
forM_ urls $ \url -> do
Logger.debug logger $ "Checking link " ... | 439 | checkFile :: FilePath -> Checker ()
checkFile filePath = do
logger <- checkerLogger <$> ask
contents <- liftIO $ readFile filePath
Logger.header logger $ "Checking file " ++ filePath
let urls = getUrls $ TS.parseTags contents
forM_ urls $ \url -> do
Logger.debug logger $ "Checking link " ... | 439 | checkFile filePath = do
logger <- checkerLogger <$> ask
contents <- liftIO $ readFile filePath
Logger.header logger $ "Checking file " ++ filePath
let urls = getUrls $ TS.parseTags contents
forM_ urls $ \url -> do
Logger.debug logger $ "Checking link " ++ url
checkUrl filePath url... | 403 | false | true | 0 | 14 | 94 | 122 | 55 | 67 | null | null |
AlexanderPankiv/ghc | compiler/typecheck/TcTypeNats.hs | bsd-3-clause | {-------------------------------------------------------------------------------
Built-in type constructors for functions on type-level nats
-}
typeNatTyCons :: [TyCon]
typeNatTyCons =
[ typeNatAddTyCon
, typeNatMulTyCon
, typeNatExpTyCon
, typeNatLeqTyCon
, typeNatSubTyCon
, typeNatCmpTyCon
, typeSymbol... | 332 | typeNatTyCons :: [TyCon]
typeNatTyCons =
[ typeNatAddTyCon
, typeNatMulTyCon
, typeNatExpTyCon
, typeNatLeqTyCon
, typeNatSubTyCon
, typeNatCmpTyCon
, typeSymbolCmpTyCon
] | 187 | typeNatTyCons =
[ typeNatAddTyCon
, typeNatMulTyCon
, typeNatExpTyCon
, typeNatLeqTyCon
, typeNatSubTyCon
, typeNatCmpTyCon
, typeSymbolCmpTyCon
] | 162 | true | true | 0 | 5 | 46 | 36 | 23 | 13 | null | null |
JacquesCarette/literate-scientific-software | code/drasil-example/Drasil/GlassBR/DataDefs.hs | bsd-2-clause | anGlass :: Sentence
anGlass = getAcc annealed `sIs` phrase annealed +:+. phrase glass | 85 | anGlass :: Sentence
anGlass = getAcc annealed `sIs` phrase annealed +:+. phrase glass | 85 | anGlass = getAcc annealed `sIs` phrase annealed +:+. phrase glass | 65 | false | true | 0 | 7 | 12 | 30 | 15 | 15 | null | null |
brendanhay/gogol | gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Create.hs | mpl-2.0 | -- | OAuth access token.
acccAccessToken :: Lens' AccountsContainersCreate (Maybe Text)
acccAccessToken
= lens _acccAccessToken
(\ s a -> s{_acccAccessToken = a}) | 170 | acccAccessToken :: Lens' AccountsContainersCreate (Maybe Text)
acccAccessToken
= lens _acccAccessToken
(\ s a -> s{_acccAccessToken = a}) | 145 | acccAccessToken
= lens _acccAccessToken
(\ s a -> s{_acccAccessToken = a}) | 82 | true | true | 0 | 8 | 29 | 49 | 25 | 24 | null | null |
peterokagey/haskellOEIS | test/Braxton/A282165Spec.hs | apache-2.0 | spec :: Spec
spec = describe "A282165" $
it "correctly computes the first 20 elements" $
take 20 (map a282165 [1..]) `shouldBe` expectedValue where
expectedValue = [1,2,4,12,36,144,576,2304,11520,57600,345600,2073600,12441600,74649600,522547200,3657830400,29262643200,234101145600,1872809164800,1498247331840... | 322 | spec :: Spec
spec = describe "A282165" $
it "correctly computes the first 20 elements" $
take 20 (map a282165 [1..]) `shouldBe` expectedValue where
expectedValue = [1,2,4,12,36,144,576,2304,11520,57600,345600,2073600,12441600,74649600,522547200,3657830400,29262643200,234101145600,1872809164800,1498247331840... | 322 | spec = describe "A282165" $
it "correctly computes the first 20 elements" $
take 20 (map a282165 [1..]) `shouldBe` expectedValue where
expectedValue = [1,2,4,12,36,144,576,2304,11520,57600,345600,2073600,12441600,74649600,522547200,3657830400,29262643200,234101145600,1872809164800,14982473318400] | 309 | false | true | 0 | 10 | 38 | 114 | 68 | 46 | null | null |
plow-technologies/keter-node | src/Keter/Node/Internal.hs | bsd-3-clause | defBackgroundConfig :: FilePath -> BackgroundConfig
defBackgroundConfig fp = BackgroundConfig
{ bgconfigExec = fp
, bgconfigArgs = V.empty
, bgconfigEnvironment = Map.empty
, bgconfigRestartCount = LimitedRestarts 2
... | 384 | defBackgroundConfig :: FilePath -> BackgroundConfig
defBackgroundConfig fp = BackgroundConfig
{ bgconfigExec = fp
, bgconfigArgs = V.empty
, bgconfigEnvironment = Map.empty
, bgconfigRestartCount = LimitedRestarts 2
... | 384 | defBackgroundConfig fp = BackgroundConfig
{ bgconfigExec = fp
, bgconfigArgs = V.empty
, bgconfigEnvironment = Map.empty
, bgconfigRestartCount = LimitedRestarts 2
, bgconfigRestartDelaySeconds = 10
... | 332 | false | true | 0 | 7 | 162 | 57 | 33 | 24 | null | null |
ihc/futhark | src/Futhark/Pass/ExtractKernels.hs | isc | -- | Returns the sizes of immediate nested parallelism.
nestedParallelism :: Body -> [SubExp]
nestedParallelism = concatMap (parallelism . stmExp) . bodyStms
where parallelism (Op (Reduce w _ _ _)) = [w]
parallelism (Op (Scan w _ _)) = [w]
parallelism (Op (Scanomap w _ _ _ _)) = [w]
parallelis... | 709 | nestedParallelism :: Body -> [SubExp]
nestedParallelism = concatMap (parallelism . stmExp) . bodyStms
where parallelism (Op (Reduce w _ _ _)) = [w]
parallelism (Op (Scan w _ _)) = [w]
parallelism (Op (Scanomap w _ _ _ _)) = [w]
parallelism (Op (Redomap w _ _ _ _ _)) = [w]
parallelism (... | 653 | nestedParallelism = concatMap (parallelism . stmExp) . bodyStms
where parallelism (Op (Reduce w _ _ _)) = [w]
parallelism (Op (Scan w _ _)) = [w]
parallelism (Op (Scanomap w _ _ _ _)) = [w]
parallelism (Op (Redomap w _ _ _ _ _)) = [w]
parallelism (Op (Map w _ _)) = [w]
parallel... | 615 | true | true | 2 | 14 | 216 | 310 | 147 | 163 | null | null |
KarimxD/Evolverbetert | src/PipeLines.hs | mit | parseConverter "dot" _ = Just $ T.pack . Anal.chromosomeToDot | 71 | parseConverter "dot" _ = Just $ T.pack . Anal.chromosomeToDot | 71 | parseConverter "dot" _ = Just $ T.pack . Anal.chromosomeToDot | 71 | false | false | 0 | 7 | 18 | 23 | 11 | 12 | null | null |
haskell/haddock | html-test/src/IgnoreExports.hs | bsd-2-clause | -- ^ Documentation for Bar
-- | documentation for foo
foo :: Int
foo = 23 | 74 | foo :: Int
foo = 23 | 19 | foo = 23 | 8 | true | true | 0 | 6 | 16 | 20 | 9 | 11 | null | null |
nionita/chessNet | Common.hs | lgpl-3.0 | doCd h x = B8.hPutStrLn h $ B8.append cd x | 45 | doCd h x = B8.hPutStrLn h $ B8.append cd x | 45 | doCd h x = B8.hPutStrLn h $ B8.append cd x | 45 | false | false | 0 | 7 | 12 | 28 | 12 | 16 | null | null |
cnc-patch/disass | src/Language/Assembly/X86/Parse.hs | bsd-3-clause | parseSCAS :: (Num t, Eq t, Stream s m Word8, Monad m) => t -> ParsecT s PState m Instr
parseSCAS 0xae = return $ Instr SCAS OP8 [] | 130 | parseSCAS :: (Num t, Eq t, Stream s m Word8, Monad m) => t -> ParsecT s PState m Instr
parseSCAS 0xae = return $ Instr SCAS OP8 [] | 130 | parseSCAS 0xae = return $ Instr SCAS OP8 [] | 43 | false | true | 0 | 7 | 28 | 71 | 35 | 36 | null | null |
alexbiehl/mysql-haskell-simple | src/Database/MySQL/Simple/Encoder.hs | bsd-3-clause | -- | Encodes a 0-length column.
unit :: Params ()
unit = Params 0 (Value (\_ _ _ _ -> return ())) | 97 | unit :: Params ()
unit = Params 0 (Value (\_ _ _ _ -> return ())) | 65 | unit = Params 0 (Value (\_ _ _ _ -> return ())) | 47 | true | true | 1 | 11 | 21 | 50 | 24 | 26 | null | null |
google/codeworld | codeworld-auth/app/Main.hs | apache-2.0 | readTokenId :: String -> Either String TokenId
readTokenId s = case readMaybe s of
Just tokenIdRaw -> Right $ TokenId tokenIdRaw
Nothing -> Left $ "Invalid token ID \"" ++ s ++ "\"" | 221 | readTokenId :: String -> Either String TokenId
readTokenId s = case readMaybe s of
Just tokenIdRaw -> Right $ TokenId tokenIdRaw
Nothing -> Left $ "Invalid token ID \"" ++ s ++ "\"" | 221 | readTokenId s = case readMaybe s of
Just tokenIdRaw -> Right $ TokenId tokenIdRaw
Nothing -> Left $ "Invalid token ID \"" ++ s ++ "\"" | 174 | false | true | 0 | 10 | 72 | 69 | 31 | 38 | null | null |
koulakis/FiletreeAnalyser | test/Spec.hs | bsd-3-clause | dir31 = combine dir3 "nested_dir" | 33 | dir31 = combine dir3 "nested_dir" | 33 | dir31 = combine dir3 "nested_dir" | 33 | false | false | 0 | 5 | 4 | 11 | 5 | 6 | null | null |
puffnfresh/blimp | Blimp/Generate.hs | mit | generateCodeLength :: Generate (Caught SomeException NoExceptions) a -> Word32
generateCodeLength = encodedCodeLength . execGenerate [] | 135 | generateCodeLength :: Generate (Caught SomeException NoExceptions) a -> Word32
generateCodeLength = encodedCodeLength . execGenerate [] | 135 | generateCodeLength = encodedCodeLength . execGenerate [] | 56 | false | true | 0 | 8 | 14 | 37 | 18 | 19 | null | null |
fnoble/structured-matrix | MWE.hs | bsd-3-clause | shapeOf :: SMatrix i j a -> SMatrix i j b -> SMatrix i j a
shapeOf a b = a | 74 | shapeOf :: SMatrix i j a -> SMatrix i j b -> SMatrix i j a
shapeOf a b = a | 74 | shapeOf a b = a | 15 | false | true | 0 | 8 | 20 | 50 | 22 | 28 | null | null |
bergey/level | examples/sphere.hs | bsd-3-clause | main = putStrLn . render . prettySTL . polygonize 0.01 $ sphere | 63 | main = putStrLn . render . prettySTL . polygonize 0.01 $ sphere | 63 | main = putStrLn . render . prettySTL . polygonize 0.01 $ sphere | 63 | false | false | 0 | 8 | 11 | 25 | 12 | 13 | null | null |
zeekay/lambdabot | Plugin/Seen.hs | mit | -- | Update a user who is not present. We just convert absolute missing time
-- into relative time (i.e. start the "watch").
updateNP :: ClockTime -> Channel -> UserStatus -> UserStatus
updateNP now _ (NotPresent ct missed c)
= NotPresent ct (stopWatch now missed) c | 270 | updateNP :: ClockTime -> Channel -> UserStatus -> UserStatus
updateNP now _ (NotPresent ct missed c)
= NotPresent ct (stopWatch now missed) c | 143 | updateNP now _ (NotPresent ct missed c)
= NotPresent ct (stopWatch now missed) c | 82 | true | true | 0 | 7 | 49 | 57 | 29 | 28 | null | null |
DavidAlphaFox/darcs | src/Darcs/Repository/Internal.hs | gpl-2.0 | prefsUrl :: Repository p wR wU wT -> String
prefsUrl (Repo r _ _ _) = r ++ "/"++darcsdir++"/prefs" | 98 | prefsUrl :: Repository p wR wU wT -> String
prefsUrl (Repo r _ _ _) = r ++ "/"++darcsdir++"/prefs" | 98 | prefsUrl (Repo r _ _ _) = r ++ "/"++darcsdir++"/prefs" | 54 | false | true | 0 | 7 | 18 | 51 | 25 | 26 | null | null |
uwedeportivo/NikePlus-Cocoa-RunLog | haskell/nikepub/Codemanic/NumericLists.hs | mit | gaussianKernel :: (Floating a) => Int -> [a]
gaussianKernel n =
map (g . fromIntegral) [(-n)..n]
where
y = fromIntegral n
g x = (exp (-(x^2) / (2 * y^2))) / ((y * sqrt (2 * pi))) | 193 | gaussianKernel :: (Floating a) => Int -> [a]
gaussianKernel n =
map (g . fromIntegral) [(-n)..n]
where
y = fromIntegral n
g x = (exp (-(x^2) / (2 * y^2))) / ((y * sqrt (2 * pi))) | 193 | gaussianKernel n =
map (g . fromIntegral) [(-n)..n]
where
y = fromIntegral n
g x = (exp (-(x^2) / (2 * y^2))) / ((y * sqrt (2 * pi))) | 148 | false | true | 1 | 13 | 51 | 128 | 68 | 60 | null | null |
diku-dk/futhark | src/Futhark/Analysis/PrimExp.hs | isc | (.&&.) :: TPrimExp Bool v -> TPrimExp Bool v -> TPrimExp Bool v
TPrimExp x .&&. TPrimExp y = TPrimExp $ constFoldPrimExp $ BinOpExp LogAnd x y | 142 | (.&&.) :: TPrimExp Bool v -> TPrimExp Bool v -> TPrimExp Bool v
TPrimExp x .&&. TPrimExp y = TPrimExp $ constFoldPrimExp $ BinOpExp LogAnd x y | 142 | TPrimExp x .&&. TPrimExp y = TPrimExp $ constFoldPrimExp $ BinOpExp LogAnd x y | 78 | false | true | 0 | 7 | 26 | 63 | 29 | 34 | null | null |
HIPERFIT/futhark | src/Language/Futhark/Interpreter.hs | isc | valueShape :: Value -> ValueShape
valueShape (ValueArray shape _) = shape | 73 | valueShape :: Value -> ValueShape
valueShape (ValueArray shape _) = shape | 73 | valueShape (ValueArray shape _) = shape | 39 | false | true | 0 | 7 | 10 | 26 | 13 | 13 | null | null |
hpacheco/jasminv | src/Text/Parsec/Exts.hs | gpl-3.0 | apA :: Applicative f => f a -> (a -> b) -> f b
apA m f = pure f <*> m | 69 | apA :: Applicative f => f a -> (a -> b) -> f b
apA m f = pure f <*> m | 69 | apA m f = pure f <*> m | 22 | false | true | 0 | 9 | 21 | 56 | 25 | 31 | null | null |
andir/ganeti | src/Ganeti/WConfd/TempRes.hs | bsd-2-clause | reserveLV
:: (MonadError GanetiException m, MonadState TempResState m, Functor m)
=> ClientId -> LogicalVolume -> ConfigData -> m ()
reserveLV jobId lv cd = do
existing <- toError $ getAllLVs cd
when (S.member lv existing)
$ resError "MAC already in use"
modifyM $ traverseOf trsLVsL (reserve jobId lv)
--... | 399 | reserveLV
:: (MonadError GanetiException m, MonadState TempResState m, Functor m)
=> ClientId -> LogicalVolume -> ConfigData -> m ()
reserveLV jobId lv cd = do
existing <- toError $ getAllLVs cd
when (S.member lv existing)
$ resError "MAC already in use"
modifyM $ traverseOf trsLVsL (reserve jobId lv)
--... | 399 | reserveLV jobId lv cd = do
existing <- toError $ getAllLVs cd
when (S.member lv existing)
$ resError "MAC already in use"
modifyM $ traverseOf trsLVsL (reserve jobId lv)
-- ** IPv4 addresses
-- | Lists all IPv4 addresses reserved for a given network. | 262 | false | true | 0 | 12 | 78 | 123 | 58 | 65 | null | null |
diku-dk/futhark | src/Futhark/Pass/ExplicitAllocations/GPU.hs | isc | handleSegOp ::
SegOp SegLevel GPU ->
AllocM GPU GPUMem (SegOp SegLevel GPUMem)
handleSegOp op = do
num_threads <-
letSubExp "num_threads" $
BasicOp $
BinOp
(Mul Int64 OverflowUndef)
(unCount (segNumGroups lvl))
(unCount (segGroupSize lvl))
allocAtLevel lvl $ mapSe... | 883 | handleSegOp ::
SegOp SegLevel GPU ->
AllocM GPU GPUMem (SegOp SegLevel GPUMem)
handleSegOp op = do
num_threads <-
letSubExp "num_threads" $
BasicOp $
BinOp
(Mul Int64 OverflowUndef)
(unCount (segNumGroups lvl))
(unCount (segGroupSize lvl))
allocAtLevel lvl $ mapSe... | 883 | handleSegOp op = do
num_threads <-
letSubExp "num_threads" $
BasicOp $
BinOp
(Mul Int64 OverflowUndef)
(unCount (segNumGroups lvl))
(unCount (segGroupSize lvl))
allocAtLevel lvl $ mapSegOpM (mapper num_threads) op
where
scope = scopeOfSegSpace $ segSpace op
... | 800 | false | true | 0 | 13 | 266 | 257 | 126 | 131 | null | null |
josefs/sbv | SBVTestSuite/Utils/SBVTestFramework.hs | bsd-3-clause | goldenVsStringShow :: Show a => TestName -> IO a -> TestTree
goldenVsStringShow n res = goldenVsString n (goldFile n) (fmap (LBC.pack . show) res) | 146 | goldenVsStringShow :: Show a => TestName -> IO a -> TestTree
goldenVsStringShow n res = goldenVsString n (goldFile n) (fmap (LBC.pack . show) res) | 146 | goldenVsStringShow n res = goldenVsString n (goldFile n) (fmap (LBC.pack . show) res) | 85 | false | true | 0 | 10 | 23 | 64 | 31 | 33 | null | null |
narrative/stack | src/Stack/Constants.hs | bsd-3-clause | -- | The filename used for the stack config file.
stackDotYaml :: Path Rel File
stackDotYaml = $(mkRelFile "stack.yaml") | 120 | stackDotYaml :: Path Rel File
stackDotYaml = $(mkRelFile "stack.yaml") | 70 | stackDotYaml = $(mkRelFile "stack.yaml") | 40 | true | true | 0 | 7 | 18 | 24 | 12 | 12 | null | null |
arnihermann/timedreb2erl | src/Language/Erlang/Fold/Identity.hs | mit | identityAlgebra = ErlangAlgebra {
programF = Program
, moduleF = Module
, exportF = Export
, importF = Import
, defineF = Define
, functionF = Function
, atomicLiteralF = AtomicLiteral
, stringLiteralF = StringLiteral
, numberLiteralF = NumberLiteral
, processLiteralF = ProcessLiteral
, opLT... | 1,180 | identityAlgebra = ErlangAlgebra {
programF = Program
, moduleF = Module
, exportF = Export
, importF = Import
, defineF = Define
, functionF = Function
, atomicLiteralF = AtomicLiteral
, stringLiteralF = StringLiteral
, numberLiteralF = NumberLiteral
, processLiteralF = ProcessLiteral
, opLT... | 1,180 | identityAlgebra = ErlangAlgebra {
programF = Program
, moduleF = Module
, exportF = Export
, importF = Import
, defineF = Define
, functionF = Function
, atomicLiteralF = AtomicLiteral
, stringLiteralF = StringLiteral
, numberLiteralF = NumberLiteral
, processLiteralF = ProcessLiteral
, opLT... | 1,180 | false | false | 1 | 7 | 331 | 333 | 217 | 116 | null | null |
nushio3/distributed-state | src/Control/Distributed/Application/State.hs | bsd-3-clause | onMsgQuery :: (Serializable a) => Internal a -> MsgQuery -> Process ()
onMsgQuery Internal{..} msg@(MsgQuery pid) = do
nid <- getSelfNode
x <- liftIO $ atomically $ readTVar $ myState
send pid $ MsgUpdate nid x | 216 | onMsgQuery :: (Serializable a) => Internal a -> MsgQuery -> Process ()
onMsgQuery Internal{..} msg@(MsgQuery pid) = do
nid <- getSelfNode
x <- liftIO $ atomically $ readTVar $ myState
send pid $ MsgUpdate nid x | 216 | onMsgQuery Internal{..} msg@(MsgQuery pid) = do
nid <- getSelfNode
x <- liftIO $ atomically $ readTVar $ myState
send pid $ MsgUpdate nid x | 145 | false | true | 1 | 11 | 41 | 109 | 48 | 61 | null | null |
nevrenato/Hets_Fork | Temporal/NuSmv.hs | gpl-2.0 | showElement (Invar expr) = concat [ "INVAR ", showBasicExpr expr True, ";\n" ] | 79 | showElement (Invar expr) = concat [ "INVAR ", showBasicExpr expr True, ";\n" ] | 79 | showElement (Invar expr) = concat [ "INVAR ", showBasicExpr expr True, ";\n" ] | 79 | false | false | 0 | 7 | 13 | 33 | 16 | 17 | null | null |
spechub/Hets | OWL2/XMLKeywords.hs | gpl-2.0 | annotationValueList :: [String]
annotationValueList = [literalK, iriK, abbreviatedIRI, anonymousIndividualK] | 108 | annotationValueList :: [String]
annotationValueList = [literalK, iriK, abbreviatedIRI, anonymousIndividualK] | 108 | annotationValueList = [literalK, iriK, abbreviatedIRI, anonymousIndividualK] | 76 | false | true | 0 | 5 | 8 | 26 | 16 | 10 | null | null |
forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/typecheck/should_run/testeq2.hs | bsd-3-clause | typeEq :: TypeEq t t' b => t -> t' -> b
typeEq = undefined | 58 | typeEq :: TypeEq t t' b => t -> t' -> b
typeEq = undefined | 58 | typeEq = undefined | 18 | false | true | 0 | 9 | 14 | 37 | 16 | 21 | null | null |
jclee/cartparse | parse.hs | bsd-2-clause | -- Better signature?
agsStyle :: P.GenLanguageDef String u Identity
agsStyle
= javaStyle
{ P.nestedComments = False
, P.reservedNames = [
"else",
"enum",
"export",
"false",
"function",
"if",
"import",
"new",
"retur... | 435 | agsStyle :: P.GenLanguageDef String u Identity
agsStyle
= javaStyle
{ P.nestedComments = False
, P.reservedNames = [
"else",
"enum",
"export",
"false",
"function",
"if",
"import",
"new",
"return",
"static... | 414 | agsStyle
= javaStyle
{ P.nestedComments = False
, P.reservedNames = [
"else",
"enum",
"export",
"false",
"function",
"if",
"import",
"new",
"return",
"static",
"struct",
"this",
... | 367 | true | true | 0 | 8 | 205 | 87 | 51 | 36 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.