shithub: MicroHs

ref: e14da1c39ec588e4a18ebdc05fb523ce1f0c7147
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]