summaryrefslogtreecommitdiff
path: root/ghc/compiler/tests/reader/expr001.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/compiler/tests/reader/expr001.hs')
-rw-r--r--ghc/compiler/tests/reader/expr001.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/ghc/compiler/tests/reader/expr001.hs b/ghc/compiler/tests/reader/expr001.hs
new file mode 100644
index 0000000000..49853a74cf
--- /dev/null
+++ b/ghc/compiler/tests/reader/expr001.hs
@@ -0,0 +1,14 @@
+{-
+From: Kevin Hammond <kh>
+To: partain
+Subject: Re: parsing problem w/ queens
+Date: Wed, 9 Oct 91 17:31:46 BST
+
+OK, I've fixed that little problem by disallowing,
+-}
+
+f x = x + if c then 1 else 2
+f x = x + 1::Int
+
+-- (the conditional/sig need to be parenthesised). If this is
+-- problematic, let me know!