packages feed

purescript-0.7.2.0: examples/passing/MutRec3.purs

module Main where

import Prelude

data A = A B

data B = B A

foreign import data S :: *

f a = case a of A b -> g b

g :: B -> S
g b = case b of B a -> f a

showN :: A -> S
showN a = f a

main = Control.Monad.Eff.Console.log "Done"