summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T10770a.hs
blob: 611c86e35d742c8c1a223f20e904263a60a7ea2d (plain)
1
2
3
4
5
6
7
8
module T10770a where

import Data.Typeable

main = print $ foo $ Just ()

foo :: Typeable (t a) => t a -> String
foo x = let k = show $ typeOf x in k