shithub: MicroHs

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