summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_run/drvrun015.hs
blob: b6e10394fa9d7da989036e447e0efc6f638ff5a0 (plain)
1
2
3
4
5
6
7
8
-- The leading underscore killed GHC 5.04

module Main where

data Obj = Obj {_id, p1, p2::Int} deriving (Show, Read)


main = print (show (read "Obj {_id=1,p1=10,p2=20}" :: Obj))