@hackage / wrapped

Newtypes to carry DerivingVia instances

Latest0.1.0.1

About

Metadata

  • Last updated , by AndrewPritchard
  • License Apache-2.0
  • Categories Generics
  • Maintained by: Andrew Pritchard <awpritchard@gmail.com>

  • Lottery factor: 0

Links

Installation

Readme

This exports the newtypes Wrapped and Wrapped1, which are meant to hold typeclass implementations derived from other classes (most frequently, Generic and Generic1). If you implement a general instance of a class, add it as an instance for Wrapped or Wrapped1, and users will be able to derive it uniformly as deriving TheClass via Wrapped TheType.