packages feed

liquidhaskell-0.8.0.0: tests/pos/DepTriples.hs

module DependentTriples  where

{-@ LIQUID "--savequery" @-}

{-@ type INCR3 = (Int, Int, Int)<{\a b -> a < b}, {\b a c -> b < c }>@-}

{-@ assume incr3 :: INCR3 @-}
incr3 :: (Int, Int, Int)
incr3 = undefined 

{-@ uincr3 :: INCR3 @-}
uincr3 :: (Int, Int, Int)
uincr3 = let (x, y, z) = incr3 in (x + 1, y + 1, z +1 )