Skip to content

Add quantified superclasses to NFData(1,2) #88

Closed

Description

@Icelandjack

In line with base: Relax instances for Functor combinators; put superclass on Class1 to make non-breaking we should add superclasses to NFData(1,2)

class (forall a. NFData (f a)) => NFData1 f

class (forall a. NFData a => NFData1 (bi a)) => NFData2 bi

Activity

  1. phadej commented on Sep 20, 2022

    @phadej
    Contributor

    I'll wait until the above changed in base is released and ecosystem learned how well it works. (E.g. some weird code using constraints: We cannot have a Dict of forall a. NFData a, can we?)

    Also this is technically a breaking change, so that's another good reason to not hurry.

  2. Ericson2314 commented on Sep 20, 2022

    @Ericson2314

    I agree this looks like a good idea. Thanks for proposing, @Icelandjack!

  3. Icelandjack commented on Sep 21, 2022

    @Icelandjack
    Author

    Hm with ImpredicativeTypes can we not have Dict (forall a. NFData a)?

  4. phadej commented on Sep 21, 2022

    @phadej
    Contributor

    @Icelandjack I let someone else experiment and figure out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions