summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T5821.hs
blob: 762254cb548d69c4a704dd61e2f2ccd514cd0db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
module T5821 where

type family T a
type instance T Int = Bool

foo :: Num a => a -> T a
foo = undefined

{-# SPECIALISE foo :: Int -> Bool #-}