packages feed

liquidhaskell-0.9.0.2.1: tests/pos/Elim00.hs

{-@ LIQUID "--no-totality" @-}
{-@ LIQUID "--short-names"  @-}

module Elim00 where

data Pair a b = PP a b | Emp

data Foo = Foo { xx :: Int, yy :: Int }

{-@ data Foo = Foo {xx :: Int, yy :: {v:Int | xx < v} }  @-}

foo :: Foo -> Foo
foo (Foo xig yog) = Foo wink cow
  where
    PP wink cow   = PP xig yog