summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/T1981.hs
blob: 658821ea73e5cf0523287427bbe0f018fdd36b65 (plain)
1
2
3
4
5
6
7
8
{-# OPTIONS_GHC -XTypeFamilies #-}

module ShouldCompile where

type family T a

f :: T a -> Int
f x = x `seq` 3