We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Compiling the following code
data Void derive instance genericVoid :: GenericVoid
Throws
psc: Prelude.head: empty list
The derived instance should probably look like
toSignature _ = SigProd [] fromSpine _ = Nothing toSpine = absurd
The text was updated successfully, but these errors were encountered:
Defining Void as
newtype Void = Void Void
doesn't cause that problem (obviously because the constructor list isn't empty anymore :) )
Sorry, something went wrong.
@nicodelpiano Would you mind looking into this? I think it's in the exhaustivity checker.
You can get the length of the list of arguments from the Case statement and pass it as a function argument.
Case
@paf31 Sure! I'm working on this.
No branches or pull requests
Compiling the following code
Throws
The derived instance should probably look like
The text was updated successfully, but these errors were encountered: