summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T20609.hs
blob: 7e8955f29ffceb3e3afd95f4da3f291ad743aef6 (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 T20609 where

-- Triggers the warning (definition/binding sites):
-- ------------------------------------------------

forall x = ()

(∀) x = ()

fparam forall = ()

asPattern forall@Nothing = ()

localLet = let forall = () in forall

{-# RULES "rule" forall forall. id forall = forall #-}

{-# RULES "rule_sig" forall a. forall (forall :: a). id forall = forall #-}

-- Does not trigger the warning (use sites):
-- -----------------------------------------

other = forall