Skip to content

Instantly share code, notes, and snippets.


Christopher Vollick psycotica0

View GitHub Profile
psycotica0 / test.hs
Last active Aug 29, 2015
Demo of Either as a Monad for annotated return types.
View test.hs
meow = Right "Meow"
greeting = Right "Hi"
sub_meow input = do
value <- integer_meow input
if value > 7 then
Right "Big Meow"
Left "Too Small"