Ur Rosetta Stone

From Impredicative Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page)
(completed option)

Revision as of 15:20, 24 June 2011

These rough translations are designed to aid understanding, rather than to be rigorous! In some cases the types of the Ur functions and the functions in other languages will correspond exactly; in other cases the Ur function types will be more precise and/or more general.

module option

Ur Haskell
option Maybe
Some Just
None Nothing
eq instance Eq Maybe
ord instance Ord Maybe
isNone isNothing
isSome isJust
mp fmap
bind (=<<)
get fromMaybe
Personal tools