Alternatively you can pattern match:
case maybeValue of
Just value -> ...
Nothing -> ...
More Related Contents:
- Why give me error? [closed]
- Good examples of Not a Functor/Functor/Applicative/Monad?
- Haskell ranges and floats
- Defining a function by equations with different number of arguments
- :sprint for polymorphic values?
- Small Haskell program compiled with GHC into huge binary
- Multi-line commands in GHCi
- Writing foldl using foldr
- DatatypeContexts Deprecated in Latest GHC: Why?
- What does the exclamation mark mean in a Haskell declaration?
- Haskell function composition operator of type (c→d) → (a→b→c) → (a→b→d)
- Unwrapping a monad
- Haskell: Lists, Arrays, Vectors, Sequences
- What are “n+k patterns” and why are they banned from Haskell 2010?
- Haskell read raw keyboard input
- Currying 3 Arguments in Haskell
- Why do we need monads?
- What constitutes a fold for types other than list?
- Defining a new monad in haskell raises no instance for Applicative
- What are Alternative’s “some” and “many” useful for?
- How to make a CAF not a CAF in Haskell?
- Check whether a type is an instance of Show in Haskell at runtime?
- Typeclass constraints on data declarations
- Foldr/Foldl for free when Tree is implementing Foldable foldMap?
- What characters are permitted for Haskell operators?
- Converting IO Int to Int
- Convert String to Integer/Float in Haskell?
- Haskell – depth for each node in binary tree using Reader monad
- Functional lenses
- How does Haskell printf work?