sdiehl / write-you-a-haskell

Building a modern functional compiler from first principles. (http://dev.stephendiehl.com/fun/)
MIT License
3.34k stars 256 forks source link

Either -> Maybe in Basics #29

Closed IanConnolly closed 9 years ago

IanConnolly commented 9 years ago

We define Either but pattern-match on Maybe. Changed the definition.

sdiehl commented 9 years ago

You are correct, the definition of Mayve is more suited.