You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error:
Illegal type specification for `test`
test :: {v : [GHC.Types.Int] | 0 < len v}
Sort Error in Refinement: {v : [GHC.Types.Int] | 0 < len v}
Unbound symbol len --- perhaps you meant: head, v ?
Just
I assume that this is because the "base" assumptions/measures are not being loaded. I've tried explicitly importing GHC.Types and GHC.Types_LHAssumptions (both of which are found by GHC, and which seem to contain the definition of the len measure).
Is there a way I could diagnose why the LiquidHaskell plugin does not appear to find the necessary modules?
is going to have the effect that no specifications are included in the interface files of the liquidhaskell package, and that could explain why they aren't found when verifying your test.
I see the following error on a simple test:
I assume that this is because the "base" assumptions/measures are not being loaded. I've tried explicitly importing
GHC.Types
andGHC.Types_LHAssumptions
(both of which are found by GHC, and which seem to contain the definition of thelen
measure).Is there a way I could diagnose why the LiquidHaskell plugin does not appear to find the necessary modules?
I am using Nix and
ghcWithPackages
with theliquidhaskell
package (version 0.9.6.3). I see that there was an issue regarding Nix (#1099) but that was prior to the change to loading assumptions (https://github.com/ucsd-progsys/liquidhaskell/pull/2166/files).If it's any help, here in my Nix overlay for the liquidhaskell packages:
where
liquidhaskell-src-patched
is patched with the following to allow it to compile (#2261):The text was updated successfully, but these errors were encountered: