packages feed

purescript-0.9.1: examples/passing/IfThenElseMaybe.purs

module Main where

import Prelude
import Control.Monad.Eff.Console (log)

data Maybe a = Nothing | Just a

test1 = if true then Just 10 else Nothing

test2 = if true then Nothing else Just 10

main = log "Done"