packages feed

purescript-0.7.2.0: examples/passing/810.purs

module Main where

import Prelude

data Maybe a = Nothing | Just a

test :: forall a. Maybe a -> Maybe a
test m = o.x
  where
    o = case m of Nothing -> { x : Nothing }
                  Just a  -> { x : Just a }

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