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 try to replicate measure definitions as in https://github.com/ucsd-progsys/liquidhaskell/blob/develop/tests/pos/Class2.hs .
{-@ class measure sz :: forall a. a -> Int @-} {-@ instance measure sz :: () -> Int sz () = 1 @-} {-@ instance measure sz :: Int -> Int sz n = n @-}
LiquidHaskell says:
src/Example/Size.hs:5:13: error: Cannot parse specification: unexpected ')' expecting '[', '_', dataConNameP, or lowercase letter | 5 | sz () = 1 | ^ src/Example/Size.hs:8:12: error: Cannot parse specification: unexpected 'n' expecting measurePatP | 8 | sz n = n | ^
The examples define measures on user defined ADTs only. Are measures restricted to those?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I try to replicate measure definitions as in https://github.com/ucsd-progsys/liquidhaskell/blob/develop/tests/pos/Class2.hs .
LiquidHaskell says:
The examples define measures on user defined ADTs only. Are measures restricted to those?
The text was updated successfully, but these errors were encountered: