shithub: MicroHs

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