shithub: MicroHs

ref: 5b912da5cce3fd018e28e61e16ee40a2d501ad03
dir: /tests/RecMdl.hs/

View raw version
module RecMdl where
import RecMdlA

data B = B1 | B2 A
  deriving (Show)

h :: Int -> Int
h x = x + 100

f :: Int -> Int
f x = g (x+1)

main :: IO ()
main = do
  print (f 10)
  print (B2 (A2 B1))