packages feed

liquid-prelude 0.9.14.1 → 0.9.14.1.1

raw patch · 2 files changed

+7/−7 lines, 2 files

Files

liquid-prelude.cabal view
@@ -1,6 +1,6 @@ cabal-version:      1.24 name:               liquid-prelude-version:            0.9.14.1+version:            0.9.14.1.1 synopsis:           General utility modules for LiquidHaskell description:        General utility modules for LiquidHaskell. license:            BSD3
src/Language/Haskell/Liquid/ProofCombinators.hs view
@@ -115,7 +115,7 @@ _ =>= y  = y  ---------------------------------------------------------------------------------- | @e ? lemma@ lets you use the type of @lemma@ when checking that @e@ haskell+-- | @e ? lemma@ lets you use the type of @lemma@ when checking that @e@ -- has some expected refinement type. -- -- Schematically, @?@ allows to use @q x@ to check that @e@ satisfies @p x e@@@ -127,14 +127,14 @@ -- >     lemma :: y:t0 -> { q y } -- >     lemma = ... ----- While @?@ is defined as Haskell's 'const', @?@ is optimized by Liquid--- Haskell. The 'const' function, on the other hand, would incur some extra--- verification overhead because Liquid Haskell needs to go through the trouble--- of checking that @const e lemma@ is actually @e@.+-- @?@ is defined as Haskell's 'const' and both are interchangeable. @?@ is+-- a bit more convenient to use in infix form. Liquid Haskell optimizes both+-- forms to avoid extra verification overhead that would otherwise require+-- of checking that @const e lemma@ or @e ? lemma@ is actually @e@. -- -- === At a lower level ----- Liquid Haskell treats @e ? lemma@ as+-- Liquid Haskell treats @e ? lemma@ and @const e lemma@ as -- -- > let fresh0 = e -- >  in let fresh1 = lemma