Open ranjitjhala opened 3 years ago
See http://goto.ucsd.edu:8090/index.html#?demo=permalink%2F1626278397_36999.hs
{-@ type UList a = [a]<{\x y -> x /= y}> @-} reverse :: [a] -> [a] reverse = go seed where {-@ seed :: UList a @-} seed = [] go acc [] = acc go acc (x:xs) = go (x:acc) xs
Due to @jllang https://github.com/ucsd-progsys/liquidhaskell-tutorial/issues/111
I cannot reproduce this in latest LH. It does require to move seed to the top level in order to give it a spec.
seed
See http://goto.ucsd.edu:8090/index.html#?demo=permalink%2F1626278397_36999.hs
Due to @jllang https://github.com/ucsd-progsys/liquidhaskell-tutorial/issues/111