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

module T3638 where

data T a where TInt :: T Int

foo :: T Int -> Int
foo TInt = 0

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