summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T3638.hs
blob: c299fa963779f1453e21157cf0effffb7419c919 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE GADTs #-}

module T3638 where

data T a where TInt :: T Int

foo :: T Int -> Int
{-# NOINLINE [1] foo #-}
foo TInt = 0

{-# RULES "foo"  forall x. foo x = case x of { TInt -> 0 } #-}