MissingH-1.2.0.2: Large utility library

Portabilityportable
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Safe HaskellNone

Data.Maybe.Utils

Description

Utilities for working with the Either data type

Synopsis

Documentation

forceMaybe :: Maybe a -> aSource

Pulls a Just value out of a Maybe value. If the Maybe value is Nothing, raises an exception with error.

forceMaybeMsg :: String -> Maybe a -> aSource

Like forceMaybe, but lets you customize the error message raised if Nothing is supplied.