Skip to content

Commit

Permalink
fix name clashes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gridaphobe committed Apr 20, 2016
1 parent 37764d3 commit 6386a0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/pos/data2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module Range (prop_rng1) where
import Control.Applicative
import Language.Haskell.Liquid.Prelude

data LL a = N | C { head :: a, tail :: (LL a) }
{-@ data LL [llen] a = N | C { head :: a, tail :: (LL a) } @-}
data LL a = N | C { headC :: a, tailC :: (LL a) }
{-@ data LL [llen] a = N | C { headC :: a, tailC :: (LL a) } @-}

{-@ measure llen :: (LL a) -> Int
llen(N) = 0
Expand Down
3 changes: 0 additions & 3 deletions tests/pos/dropwhile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ dropWhile f Emp = Emp
witness :: Eq a => (a -> Bool) -> (a -> Bool -> Bool) -> a -> Bool -> a -> Bool
witness p w = \ y b v -> (not b) ==> w y b ==> (v == y) ==> p v

{-@ measure tail :: forall a. { es : [a] | len es >= 1 } -> [a] @-}
tail :: [a] -> [a]
tail = undefined
-------------------------------------------------------------------------------
-- | Drop elements until you hit a `3`
-------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions tests/pos/stacks0.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Data.Set (Set(..))

data LL a = Nil | Cons { head :: a, tail :: LL a }

{-@ data LL a = Nil | Cons { head :: a
, tail :: {v: LL a | not (Set_mem head (elts v)) } }
{-@ data LL a = Nil | Cons { headC :: a
, tailC :: {v: LL a | not (Set_mem headC (elts v)) } }
@-}

{-@ measure elts :: LL a -> (Set a)
Expand Down

0 comments on commit 6386a0e

Please sign in to comment.