diff options
Diffstat (limited to 'testsuite/tests/parser/should_compile/read023.hs')
-rw-r--r-- | testsuite/tests/parser/should_compile/read023.hs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read023.hs b/testsuite/tests/parser/should_compile/read023.hs new file mode 100644 index 0000000000..3410afe946 --- /dev/null +++ b/testsuite/tests/parser/should_compile/read023.hs @@ -0,0 +1,23 @@ +module ShouldCompile where + +-- M.<keyword> isn't a qualified identifier +f = Just.let x=id in x + +-- --------------------------------------------------------------------------- +-- we changed the behaviour of this one in GHC, but the following test +-- is strictly speaking legal Haskell: + +-- f' = Just.\1 where (.\) = ($) + +-- ----------------------------------------------------- +-- M.{as,hiding,qualified} *are* qualified identifiers: + +g = ShouldCompile.as + +-- --------------------------------------------------------------------------- +-- special symbols (!, -) can be qualified to make varids. + +g' = (ShouldCompile.!) + +as x = x +(!) x = x |