diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-06-24 12:52:16 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-06-26 13:22:27 +0200 |
commit | 7c8ffd3d8c328d5ca145fe15638ec5c952782132 (patch) | |
tree | 0e47d3e53f16c8781f330305c314ec2708a7496e /testsuite/tests/ghci/scripts/ghci023.stdout | |
parent | 111ba4beda4ffc48381723da12e5b237d7f9ac59 (diff) | |
download | haskell-7c8ffd3d8c328d5ca145fe15638ec5c952782132.tar.gz |
GHCi docs: layout rule is respected inside :{ :}
Summary:
I don't know if or when this changed, but the documentation on :{ :}
(multiline input) seems out of date. Layout rule works fine. I added a
regression test.
Reviewers: austin
Subscribers: thomie, bgamari
Differential Revision: https://phabricator.haskell.org/D1013
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci023.stdout')
-rw-r--r-- | testsuite/tests/ghci/scripts/ghci023.stdout | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci023.stdout b/testsuite/tests/ghci/scripts/ghci023.stdout index 010fe50878..61a859a73c 100644 --- a/testsuite/tests/ghci/scripts/ghci023.stdout +++ b/testsuite/tests/ghci/scripts/ghci023.stdout @@ -1,16 +1,18 @@ --- 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
+-- testing ghci multiline commands :{ .. :} +-- via stdin +(1,2,3) +-- layout rule instead of explicit braces and semicolons works too +(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 |