MissingH-1.6.0.1: Large utility library
CopyrightCopyright (C) 2005-2011 John Goerzen
LicenseBSD-3-Clause
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Maybe.Utils

Description

Utilities for working with the Maybe data type.

Synopsis

Documentation

forceMaybe :: Maybe a -> a Source #

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

Alias of fromJust.

forceMaybeMsg :: String -> Maybe a -> a Source #

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