inline-c 0.5.5.8 → 0.5.5.9
raw patch · 3 files changed
+12/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +2/−1
- inline-c.cabal +1/−1
- test/Language/C/Types/ParseSpec.hs +9/−0
changelog.md view
@@ -1,4 +1,5 @@-- 0.5.5.7: Add workaround for QuickCheck-2.9 bug. See issue #51+- 0.5.5.9: Make tests work with QuickCheck < 2.9+- 0.5.5.8: Add workaround for QuickCheck-2.9 bug. See issue #51 - 0.5.5.2: Add docs regarding internals. See issue #41. - 0.5.5.1: Add support for Interruptible calls. The version skip is simply because I forgot to update the changelog for 0.5.5.0.
inline-c.cabal view
@@ -1,5 +1,5 @@ name: inline-c-version: 0.5.5.8+version: 0.5.5.9 synopsis: Write Haskell source files including C code inline. No FFI required. description: See <https://github.com/fpco/inline-c/blob/master/README.md>. license: MIT
test/Language/C/Types/ParseSpec.hs view
@@ -3,6 +3,7 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-}+{-# LANGUAGE CPP #-} module Language.C.Types.ParseSpec (spec) where @@ -24,14 +25,22 @@ spec :: Hspec.SpecWith () spec = do Hspec.it "parses everything which is pretty-printable (C)" $ do+#if MIN_VERSION_QuickCheck(2,9,0) QC.property $ QC.again $ do -- Work around <https://github.com/nick8325/quickcheck/issues/113>+#else+ QC.property $ do+#endif ParameterDeclarationWithTypeNames typeNames ty <- arbitraryParameterDeclarationWithTypeNames unCIdentifier return $ isGoodType ty QC.==> let ty' = assertParse (cCParserContext typeNames) parameter_declaration (prettyOneLine ty) in Types.untangleParameterDeclaration ty == Types.untangleParameterDeclaration ty' Hspec.it "parses everything which is pretty-printable (Haskell)" $ do+#if MIN_VERSION_QuickCheck(2,9,0) QC.property $ QC.again $ do -- Work around <https://github.com/nick8325/quickcheck/issues/113>+#else+ QC.property $ do+#endif ParameterDeclarationWithTypeNames typeNames ty <- arbitraryParameterDeclarationWithTypeNames unHaskellIdentifier return $ isGoodType ty QC.==>