packages feed

purescript-0.7.2.0: examples/passing/IfThenElseMaybe.purs

module Main where

import Prelude

data Maybe a = Nothing | Just a

test1 = if true then Just 10 else Nothing

test2 = if true then Nothing else Just 10

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