summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_run/drvrun018.hs
blob: a0b9f2436240349fdce938f8923c37c00d78aa88 (plain)
1
2
3
4
5
6
7
8
9

-- Test Show on unboxed types

module Main where

data Foo = Int `MkFoo` Int deriving( Read, Show )

main = do { print (MkFoo 4 5)
	  ; print (read "3 `MkFoo` 5" :: Foo) }