Ah duh. That makes sense.
Would it also make sense to use Maybe monad for converting a [Char] to an Integer?
stringToInt :: [Char] -> Maybe Integer
Re:Why isn't Haskell popular in industry?
by naradaellis on Monday August 02, 2010 @07:26AM
(#1567388)
Yeah it would. I think there was a Real World Haskell exercise that involved that actually.
Not very impressive, but monads aren't anything groundbreaking after all, they're just utilities that make our lives easier. There are more complicated operations that come in handy later, but they are quite straightforward once you get a grasp of the container metaphor.