Skip to content

Instantly share code, notes, and snippets.

@dumconstantin
Last active July 26, 2016 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dumconstantin/989b60e3db8068ca88d88d6dcdb06569 to your computer and use it in GitHub Desktop.
Save dumconstantin/989b60e3db8068ca88d88d6dcdb06569 to your computer and use it in GitHub Desktop.
For medium article
module Main (result) where
import Prelude ((+), (<$>), (<*>))
import Data.Maybe
add x y = x + y
result = add <$> Just 1 <*> Just 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment