When newtype won't cut it; a polyvariadic instance

This page summarizes the projects mentioned and recommended in the original post on /r/haskell

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ghc-proposals

    Proposed compiler and language changes for GHC and GHC/Haskell

  • To me it seems like the solution is to define an unsaturated type family instead of a newtype and wait for /u/kcsongor to allow attaching instances to and deriving via them. This solves both 1. (allows a polymorphic return type) and 2. (doesn't require coercing through the arguments of Discrete). Any thoughts on this?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts