summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci023.stdout
blob: 010fe508782d6f859d69c489bf220eea57a3caa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- testing ghci multiline commands :{ .. :}
-- via stdin
(1,2,3)
catMaybes :: [Maybe a] -> [a]
fromJust :: Maybe a -> a
fromMaybe :: a -> Maybe a -> a
isJust :: Maybe a -> Bool
isNothing :: Maybe a -> Bool
listToMaybe :: [a] -> Maybe a
mapMaybe :: (a -> Maybe b) -> [a] -> [b]
maybe :: b -> (a -> b) -> Maybe a -> b
maybeToList :: Maybe a -> [a]
data Maybe a = Nothing | Just a
-- via readFile
(True,False)
id :: a -> a