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
I have defined the following interface:
interface Failable c where Failure : Type initWithFailure : Failure -> c
Then I proceeded to create an implementation:
Failable (Maybe a) where Failure = ({T:Type} -> T) initWithFailure _ = Nothing
This was accepted by the compiler, but when I tried to use it in the following manner...
main :: IO () main = do let smth : ({K:Type} -> Maybe K) = initWithFailure ()
...the compiler said that there is a type mismatch between () and Failure.
()
Failure
This not suppose to happen, right?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have defined the following interface:
Then I proceeded to create an implementation:
This was accepted by the compiler, but when I tried to use it in the following manner...
...the compiler said that there is a type mismatch between
()
andFailure
.This not suppose to happen, right?
The text was updated successfully, but these errors were encountered: