[project @ 1999-08-04 15:43:34 by simonmar]
[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 -- but GHC deviates from the Haskell report here.
15
16 -- g  = ShouldCompile.as
17
18 -- ---------------------------------------------------------------------------
19 -- special symbols (!, -) can be qualified to make varids.
20
21 g' = (ShouldCompile.!)
22
23 as x = x
24 (!) x = x