deriving-compat-0.5.7: Backports of GHC deriving extensions

Data.Bounded.Deriving.Internal

Contents

Description

Exports functions to mechanically derive Bounded instances.

Note: this is an internal module, and as such, the API presented here is not guaranteed to be stable, even between minor releases of this library.

Synopsis

Bounded

Generates a Bounded instance declaration for the given data type or data family instance.

Generates a lambda expression which behaves like minBound (without requiring a Bounded instance).

Generates a lambda expression which behaves like maxBound (without requiring a Bounded instance).