import Language.Haskell.Liquid.ProofCombinators
-- {-@ type Ix ty R = { val:ty | prop val = R @-}
{-@ foo :: (v::Int, { r:Int | r = v }) @-}
foo :: (Int, Int)
foo = (3, 3)
{-@ bar :: (v::Int, Ix Int v) @-}
bar :: (Int, Int)
bar = (3, 3)
Gives the following error:
Unknown logic name `v`
Cannot resolve name
Maybe you meant one of: snd len fst Max Min
|
13 | {-@ bar :: (v::Int, Ix Int v) @-}