Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
0b36e002
Commit
0b36e002
authored
Jan 24, 1999
by
sof
Browse files
[project @ 19990124 13:45:05 by sof]
Updated desugaring reg. tests
parent
b2170318
Changes
9
Hide whitespace changes
Inline
Sidebyside
ghc/tests/deSugar/should_compile/ds002.stderr
View file @
0b36e002
ds002.hs:
11:
Pattern match(es) are overlapped in the definition of function `g'
x y
z = ...
ds002.hs:7:
Pattern match(es) are overlapped in the definition of function `
f'
y
= ...
z = ...
ds002.hs:
7: Pattern match(es) are overlapped in the definition of function `f':
f y = ...
f
z = ...
ds002.hs:11:
Pattern match(es) are overlapped in the definition of function `
g':
g x y z
= ...
ghc/tests/deSugar/should_compile/ds003.stderr
View file @
0b36e002
ds003.hs:5:
Pattern match(es) are overlapped in the definition of function `f'
(:
x
(: x1 (: x2 x3))) ~(y, ys) z
= ...
x y True = ...
ds003.hs:5:
Pattern match(es) are overlapped in the definition of function `f':
f (x : (x1 : (x2 : x3))) ~(y, ys) z = ...
f
x
y True
= ...
ghc/tests/deSugar/should_compile/ds019.stderr
View file @
0b36e002
ds019.hs:5:
Pattern match(es) are overlapped in the definition of function `f'
d
(
j
,
k
)
p
= ...
(e, f, g) l q
= ...
h (m, n) r = ...
ds019.hs:5:
Pattern match(es) are overlapped in the definition of function `f':
f d (j, k) p = ...
f
(
e, f
,
g
)
l q
= ...
f h (m, n) r
= ...
ghc/tests/deSugar/should_compile/ds020.stderr
View file @
0b36e002
ds020.hs:5:
Pattern match(es) are overlapped in the definition of function `a'
~(~[], ~[], ~[]) = ...
ds020.hs:8:
Pattern match(es) are overlapped in the definition of function `b'
~(: ~x (: ~xs ~ys)) = ...
ds020.hs:13:
Pattern match(es) are overlapped in the definition of function `d'
~(n+
43
) = ...
~(n+999) = ...
ds020.hs:19:
Pattern match(es) are overlapped in the definition of function `f'
(x@~[]) = ...
ds020.hs:5:
Pattern match(es) are overlapped in the definition of function `a':
a ~(~[], ~[], ~[]) = ...
ds020.hs:8:
Pattern match(es) are overlapped in the definition of function `b':
b ~(~x : (~xs : ~ys)) = ...
ds020.hs:13:
Pattern match(es) are overlapped in the definition of function `d':
d ~(n+43) = ...
d
~(n+
999
) = ...
ds020.hs:19:
Pattern match(es) are overlapped in the definition of function `f':
f (x@~[]) = ...
ghc/tests/deSugar/should_compile/ds022.stderr
View file @
0b36e002
ds022.hs:20:
Pattern match(es) are overlapped in the definition of function `i'
1 1.1
= ...
2 2.2 = ...
ds022.hs:20:
Pattern match(es) are overlapped in the definition of function `i':
i 1 1.1 = ...
i 2 2.2
= ...
ghc/tests/deSugar/should_compile/ds033.stderr
View file @
0b36e002
NOTE: Simplifier still going after 4 iterations; bailing out.
ghc/tests/deSugar/should_compile/ds034.stderr
View file @
0b36e002
NOTE: Simplifier still going after 4 iterations; baling out.
ghc/tests/deSugar/should_compile/ds040.stderr
View file @
0b36e002
ds040.hs:7:
Pattern match(es) are overlapped
in the definition of function `^^^^'
_ _ = ...
ds040.hs:7: Pattern match(es) are overlapped in the definition of function `^^^^':
^^^^ _ _ = ...
ghc/tests/deSugar/should_compile/ds042.hs
0 → 100644
View file @
0b36e002
 !!! Guard on a tuple pattern, broke 4.01 due to the
 !!! special handling of unboxed tuples in desugarer.
module
ShouldCompile
where
f
::
Int
>
(
Int
,
Int
)
f
x
=
case
f
x
of
(
a
,
b
)

a
>
0
>
f
(
x

1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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