shithub: MicroHs

ref: e0aea1f7c8371b5a747b2b755dcd0a2af0b8137b
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))