| Copyright | (c) Matt Noonan 2018 |
|---|---|
| License | BSD-style |
| Maintainer | matt.noonan@gmail.com |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.The
Description
Documentation
class The d a | d -> a where Source #
A class for extracing "the" underlying value.
the should ideally be a coercion from some
newtype wrap of a back to a.
For this common use case, in the module where
newtype New a = New a is defined, an instance
of The can be created with an empty definition:
newtype New a = New a instance The (New a) a