Data.MaybeLike (original) (raw)

Portability non-portable (multi-param classes, functional dependencies)
Stability experimental
Maintainer eduard.sergeev@gmail.com
Safe Haskell Safe-Inferred

Data.MaybeLike

Description

Defines MaybeLike typeclass - a generic way to look at some types as if they were Maybe

It is currently used to add maybe-ness to unboxed primitive types in cases when it isn't possuble to just use `Maybe a` (e.g. unboxed arrays)

Synopsis

Documentation

class MaybeLike a v | a -> v whereSource

An abstract interface to a type which may not have a value