Skip to content

Conversation

@Ericson2314
Copy link
Contributor

@Ericson2314 Ericson2314 commented Jan 27, 2020

GShow t is isomorphic to forall a. Show (t a), but we don't need the
quantified constraint to write a function to be used to define the
method.

The more specific type should make a nicer error if one didn't derive
the necessary polymorphic Show instance.

@Ericson2314
Copy link
Contributor Author

Ping?

@phadej
Copy link
Collaborator

phadej commented Feb 21, 2020

Is this holding up having dependent-sum-0.7 (depending on some) to be released on Hackage?

I'll probably make a scan on my libraries when GHC-8.10 is released, so I'm deliberately holding up from merging & releasing stuff.

Copy link
Collaborator

@phadej phadej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentoned in other PR review. I'm not a fan of default definitions. (define newtype, use DerivingVia).

Also don't stack PRs.

@Ericson2314 Ericson2314 changed the title Add default method for GShow -- contains #18 Add defaultGshowsPrec using showsPrec Apr 8, 2022
@Ericson2314
Copy link
Contributor Author

This no longer makes a default method. It also no longer depends on #18.

`GShow t` is isomorphic to `forall a. Show (t a)`, but we don't need the
quantified constraint to write a function to be used to define the
method.

The more specific type should make a nicer error if one didn't derive
the necessary polymorphic `Show` instance.
@Ericson2314
Copy link
Contributor Author

@phadej Please review this.

@phadej
Copy link
Collaborator

phadej commented Jun 17, 2022

Amdended and merged in #48 and released https://hackage.haskell.org/package/some-1.0.4

@phadej phadej closed this Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants