liquidhaskell-0.9.0.2.1: tests/pos/Elim_ex_map_1.hs
{-@ LIQUID "--no-termination" @-}
{-# LANGUAGE QuasiQuotes #-}
module Elim_ex_map_1 (prop) where
import LiquidHaskell
import Prelude hiding (map)
--------------------------------------------------------------------------
[lq| prop :: List Even -> List Even |]
prop xs = map (+ 1) (map (+ 1) xs)
--------------------------------------------------------------------------
[lq| type Even = {v:Int | v mod 2 == 0 } |]
data List a = Nil | Cons a (List a)
map f Nil = Nil
map f (Cons x xs) = Cons (f x) (map f xs)