shithub: MicroHs

ref: 2dc297eb6a2d48cf1e8baae60e3f9edfc54a340a
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]