Closed mpdairy closed 5 years ago
Hi @mpdairy ,
sorry, this is because of some unfortunate name resolution issues we've had with the GHC API -- specifically in the alias
{-@ type VectorN a N = {v:Vector a | vlen v == N} @-}
the name Vector
is resolving to the "wrong" thing.
There are two possible fixes.
V.Vector
in the alias, i.e. make it:{-@ type VectorN a N = {v : V.Vector a | vlen v == N} @-}
{-@ type VectorN a N = {v : _ | vlen v == N} @-}
Either of those should work, can you confirm?
Thanks!
Thanks, both of those options worked!
Hi, I can't get
VectorN
to work fortwoLangs
in the example from chapter 4.Here's a condensed version of my code:
and here's the error I get:
I tried importing Vector from Data.Vector.Generic.Base but that didn't work either.
I'm running liquid haskell with the command: