shithub: MicroHs

ref: 4bdb0c1286e7999f0dda6df5160337c02bc089b3
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]