Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
b9ce2d57
Commit
b9ce2d57
authored
Sep 30, 2013
by
Simon Marlow
Browse files
new test cases for MultiWayIf w/ layout
parent
82cd258f
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/parser/should_run/ParserMultiWayIf.hs
View file @
b9ce2d57
...
...
@@ -7,9 +7,14 @@ x1 = if | x < 10 -> "< 10" | otherwise -> ""
x2
=
if
|
x
<
10
->
"< 10"
|
otherwise
->
""
x3
=
if
|
x
<
10
->
"< 10"
|
otherwise
->
""
|
otherwise
->
""
x4
=
if
|
True
->
"yes"
x5
=
if
|
True
->
if
|
False
->
1
|
True
->
2
main
=
print
$
x5
==
2
x6
=
if
|
x
<
10
->
if
|
True
->
"yes"
|
False
->
"no"
|
otherwise
->
"maybe"
x7
=
(
if
|
True
->
0
)
main
=
print
$
x5
==
2
&&
x6
==
"maybe"
&&
x7
==
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment