Skip to content

Add NFDataX instances for types in Data.Functor.* modules #2218

@alex-mckenna

Description

@alex-mckenna

In base there are several types exposed in the Data.Functor.* hierarchy which can have instances for NFDataX but have been overlooked in Clash:

  • Identity
  • Const
  • Product
  • Sum
  • Compose (since minimum supported GHC is 8.6 we have -XQuantifiedConstraints and can do this too)

We should add instances for these for the users that like to use these types (this issue motivated by a request on the functional programming slack for NFDataX (Identity a))

Metadata

Metadata

Assignees

No one assigned

    Labels

    easyRequires virtually no knowledge of the clash compilerenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions