blob: 0e6ab4e9f78b6236acdbdc656040f15476e6d030 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{-# OPTIONS_GHC -fwarn-unused-binds #-}
module ShouldCompile() where
-- Trac #2497; test should compile without language
-- pragmas to swith on the forall
{-# RULES "id" forall (x :: a). id x = x #-}
-- Trac #2213; eq should not be reported as unused
eq,beq :: Eq a => a -> a -> Bool
eq = (==) -- Used
beq = (==) -- Unused
{-# RULES
"rule 1" forall x y. x == y = y `eq` x
#-}
|