liquidhaskell-0.9.0.2.1: tests/pos/Meas11.hs
module Meas11 () where
import Data.Set (Set(..))
{-@ myfilter :: (a -> Bool) -> xs:[a] -> {v:[a] | Set_sub (listElts v) (listElts xs) } @-}
myfilter :: (a -> Bool) -> [a] -> [a]
myfilter f [] = []
myfilter f (x:xs) = if f x
then x : myfilter f xs
else myfilter f xs