Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export GDataConstructor. #86

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

kindaro
Copy link
Contributor

@kindaro kindaro commented Jul 26, 2023

Why, because it is exposed in the type signature of mkSumType. So it must be mentioned in the constraints of any polymorphic function that does somethnig with mkSumType.

Example:

makeType :: forall thing. _ => SumType Haskell
makeType = mkSumType (Proxy @thing)

Without this patch, there is no way to fill in the blank!

Why, because it is exposed in the type signature of `mkSumType`. So it
must be mentioned in the constraints of any polymorphic function that
does somethnig with `mkSumType`.

Example:

```Haskell
makeType :: forall thing. _ => SumType Haskell
makeType = mkSumType (Proxy @thing)
```

Without this patch, there is no way to fill in the blank!
@eskimor eskimor merged commit 5ee8778 into eskimor:master Jul 28, 2023
7 checks passed
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