@hackage overloaded-records0.4.2.0

Overloaded Records based on current GHC proposal.

  • Installation

  • Dependencies (4)

  • Dependents (1)

    @hackage/octane
  • Package Flags

      pedantic
       (off by default)

      Pass additional warning flags to GHC.

      force-functor-classes
       (off by default)

      Force dependency on transformers ==0.5.* when compiled with GHC <8 to define Eq1, Ord1 and Show1 instances for Rec data type.

Implementation of Overloaded Record Fields based on current GHC proposal. It is built on top of functionality that is included in GHC 8.0.1, but it works on older GHC versions as well. Most importantly, this library provides Template Haskell functions for automatic deriving of instancess for HasField and ModifyField type classes. With these instances overloaded fields can be used directly as getters and lenses.

See README for usage examples.

More about the current status of OverloadedRecordFields language extension can be found on: GHC Wiki: OverloadedRecordFields.