summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T12925.hs
blob: 986aa5125263f9c8146cc64199c3426940a671a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Bug where

data Foo a x = Foo x

refoo :: Foo a x -> Foo b x
{-# NOINLINE refoo #-}
refoo (Foo x) = Foo x

{-# RULES

"refoo/refoo" forall s.
  refoo (refoo s) = s  #-}