Skip to content

Liquid Haskell: type constructor or class not in scope #341

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

Closed
raptazure opened this issue Feb 8, 2021 · 3 comments
Closed

Liquid Haskell: type constructor or class not in scope #341

raptazure opened this issue Feb 8, 2021 · 3 comments
Labels
type: enhancement An enhancement to an already existing feature

Comments

@raptazure
Copy link

raptazure commented Feb 8, 2021

The following code gives error: Not in scope: type constructor or class ‘Int’. Perhaps you meant ‘Int’ (imported from Prelude) while stack ghci works fine. The related setting: value of haskell.liquidOn is set to true.

{-@ type Pos = {v : Int | 0 < v} @-}

{-@ incr :: Pos -> Pos @-}
incr :: Int -> Int
incr x = x + 1

image

Is there a way to fix this or simply disable the error messages? Thanks for answering!

@jneira
Copy link
Member

jneira commented Feb 8, 2021

hi, thanks for the bug report, I am afraid liquid Haskell is not supported despite the config option (it was inherited from hie, the previous Haskell LSP backend server)
the support in hls is tracked here: haskell/haskell-language-server#367

@jneira jneira added type: enhancement An enhancement to an already existing feature responsibility: server labels Feb 8, 2021
@raptazure
Copy link
Author

raptazure commented Feb 8, 2021

hi, thanks for the bug report, I am afraid liquid Haskell is not supported despite the config option (it was inherited from hie, the previous Haskell LSP backend server)
the support in gold is tracked here: haskell/haskell-language-server#367

Oh, thanks. Subscribed to that issue. :)

@jneira
Copy link
Member

jneira commented Mar 9, 2021

closing this as the progress to add the liquid plugin is tracked in the linked hls issue

@jneira jneira closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement An enhancement to an already existing feature
Projects
None yet
Development

No branches or pull requests

2 participants