Using Maybe type in Haskell

Alternatively you can pattern match:

case maybeValue of
  Just value -> ...
  Nothing    -> ...

Leave a Comment