git.iko.soy/rowtype-yoga/purescript-native
on 67d3473 help sign in
19 lines 234 B history raw
1module Main where
3import Prelude
5data A = A B
7data B = B A
9foreign import data S :: *
11f a = case a of A b -> g b
13g :: B -> S
14g b = case b of B a -> f a
16showN :: A -> S
17showN a = f a
19main = Control.Monad.Eff.Console.log "Done"