shithub: MicroHs

ref: 37a178d694b1d62b93c38ea883c9b2df2c632f25
dir: /tests/StandDer.hs/

View raw version
module StandDer where

data X = X
deriving instance Show X

data T a = A | B | C a | D (T a)

deriving instance (Show a) => Show (T a)

main :: IO ()
main = do
  print X
  print [A, B, C True, D A]