1 module ShouldCompile where
3 -- M.<keyword> isn't a qualified identifier
6 -- ---------------------------------------------------------------------------
7 -- we changed the behaviour of this one in GHC, but the following test
8 -- is strictly speaking legal Haskell:
10 -- f' = Just.\1 where (.\) = ($)
12 -- -----------------------------------------------------
13 -- M.{as,hiding,qualified} *are* qualified identifiers,
14 -- but GHC deviates from the Haskell report here.
16 -- g = ShouldCompile.as
18 -- ---------------------------------------------------------------------------
19 -- special symbols (!, -) can be qualified to make varids.
21 g' = (ShouldCompile.!)