summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/NewTyCo1.hs
blob: 9af6d9ee926629c44d6c7e55a82afd029c0e77d4 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE TypeFamilies #-}

module NewTyCo1 where

data family T a
newtype instance T Int = TInt Int

foo :: T Int -> Int
foo (TInt n) = n