projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c21813d
)
[project @ 1999-07-31 18:43:48 by sof]
author
sof
<unknown>
Sat, 31 Jul 1999 18:43:48 +0000
(18:43 +0000)
committer
sof
<unknown>
Sat, 31 Jul 1999 18:43:48 +0000
(18:43 +0000)
nullary recpat reg. test
ghc/tests/deSugar/should_compile/ds047.hs
[new file with mode: 0644]
patch
|
blob
diff --git a/ghc/tests/deSugar/should_compile/ds047.hs
b/ghc/tests/deSugar/should_compile/ds047.hs
new file mode 100644
(file)
index 0000000..
90078e0
--- /dev/null
+++ b/
ghc/tests/deSugar/should_compile/ds047.hs
@@ -0,0
+1,9
@@
+-- !!! Nullary rec-pats for constructors that hasn't got any labelled
+-- !!! fields is legal Haskell, and requires extra care in the desugarer.
+module Test where
+
+data X = X Int [Int]
+
+f :: X -> Int
+f (X _ []) = 0
+f X{} = 1