liquidhaskell-0.7.0.0: tests/tmp/Class3.hs
-- | LH refuses to parse the `allPos` measure
module Class3 where
{-@ class Pos s where
allPos :: x:s Int -> {v:Bool | Prop v <=> allPos x}
@-}
class Pos s where
allPos :: s Int -> Bool
instance Pos [] where
{-@ instance measure allPos :: [Int] -> Bool
allPos ([]) = true
allPos (x:xs) = ((x > 0) && (allPos xs)) @-}
allPos [] = True
allPos (x:xs) = (x > 0) && (allPos xs)