[project @ 2001-08-22 11:45:06 by sewardj]
[ghc-hetmet.git] / ghc / tests / reader / should_compile / read023.hs
1 module ShouldCompile where
2
3 -- M.<keyword> isn't a qualified identifier
4 f  = Just.let x=id in x
5
6 -- ---------------------------------------------------------------------------
7 -- we changed the behaviour of this one in GHC, but the following test
8 -- is strictly speaking legal Haskell:
9
10 -- f' = Just.\1 where (.\) = ($)
11
12 -- -----------------------------------------------------
13 -- M.{as,hiding,qualified} *are* qualified identifiers:
14
15 g  = ShouldCompile.as
16
17 -- ---------------------------------------------------------------------------
18 -- special symbols (!, -) can be qualified to make varids.
19
20 g' = (ShouldCompile.!)
21
22 as x = x
23 (!) x = x