X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftests%2Freader%2Fexpr001.hs;fp=ghc%2Fcompiler%2Ftests%2Freader%2Fexpr001.hs;h=49853a74cfbffdaf75c20472f30c5d7e267aad0f;hb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;hp=0000000000000000000000000000000000000000;hpb=e48474bff05e6cfb506660420f025f694c870d38;p=ghc-hetmet.git diff --git a/ghc/compiler/tests/reader/expr001.hs b/ghc/compiler/tests/reader/expr001.hs new file mode 100644 index 0000000..49853a7 --- /dev/null +++ b/ghc/compiler/tests/reader/expr001.hs @@ -0,0 +1,14 @@ +{- +From: Kevin Hammond +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!