packages feed

liquidhaskell-0.8.10.7: tests/names/pos/Capture02.hs

-- LH issue #1146 

-- tag: rebind 

{-@ exactly :: x:Int -> { n:Int | n = x } @-}
exactly :: Int -> Int 
exactly x = x 

{-@ incr :: n:Int -> {v:_ | v = n + 1 } @-}
incr :: Int -> Int
incr n = exactly (n + 1)

main = pure ()