Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
When you have a value of f a
, but you can not possibly have
some constraint on a
, you often can not use type class instances
of f a
, because they require instances for a
. This module
provides type classes that mirror existing type classes but do not
have the constraint on a
, usually at the cost of functionality.
Documentation
Without a Show a
constraint it is impossible to show a value of type
Maybe a
. It is, however, possible to distinguish between the Just _
and @Nothing cases.
This type class provides this functionality. It is similar to Show1
in transformers
' Data.Functor.Classes
, but without the Show a
constraint. Therefore, it can be used on quantified, unconstrained types like forall a. Maybe a
.