blob: 3410afe9468b451cf44dc34a9687136d7c29bc33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|