nullary-0.1.0.0: A package for working with nullary type classes.

Safe HaskellNone
LanguageHaskell2010

Class.Partial

Synopsis

Documentation

class Partial Source

Nullary type class to mark partial functions, e.g. head.

data PartialTag Source

Prefer partial. However, if you want to disable Partial wholesale, make an orphan instance of Tag for this type. NEVER put an instance of this in a library.

partial :: (Partial => a) -> a Source

Accept the possibility of partiality.