inline-c 0.8 → 0.8.0.1
raw patch · 4 files changed
+16/−7 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +2/−0
- inline-c.cabal +4/−4
- src/Language/C/Inline/Internal.hs +7/−3
- src/Language/C/Types/Parse.hs +3/−0
changelog.md view
@@ -1,3 +1,5 @@+- 0.8.0.1: Compatibility with GHC 8.8+- 0.8: Add code locations. - 0.7.0.1: Add more docs for `funPtr` - 0.7.0.0: Add `funPtr` quasi-quoter - 0.6.0.6: Support GHC 8.4
inline-c.cabal view
@@ -1,14 +1,14 @@ name: inline-c-version: 0.8+version: 0.8.0.1 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 license-file: LICENSE author: Francesco Mazzoli, Mathieu Boespflug-maintainer: francesco@fpcomplete.com-copyright: (c) 2015-2016 FP Complete Corporation, (c) 2017-2018 Francesco Mazzoli+maintainer: f@mazzo.li+copyright: (c) 2015-2016 FP Complete Corporation, (c) 2017-2019 Francesco Mazzoli category: FFI-tested-with: GHC == 8.2.2, GHC == 8.4.3, GHC == 8.6.1+tested-with: GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5 build-type: Simple cabal-version: >=1.10 Extra-Source-Files: README.md, changelog.md
src/Language/C/Inline/Internal.hs view
@@ -539,7 +539,11 @@ -- The @m@ is polymorphic because we use this both for the plain -- parser and the StateT parser we use above. We only need 'fail'. purgeHaskellIdentifiers+#if MIN_VERSION_base(4,13,0)+ :: forall n. MonadFail n+#else :: forall n. (Applicative n, Monad n)+#endif => C.Type HaskellIdentifier -> n (C.Type C.CIdentifier) purgeHaskellIdentifiers cTy = for cTy $ \hsIdent -> do let hsIdentS = unHaskellIdentifier hsIdent@@ -555,9 +559,9 @@ -> TH.QuasiQuoter quoteCode p = TH.QuasiQuoter { TH.quoteExp = p- , TH.quotePat = fail "inline-c: quotePat not implemented (quoteCode)"- , TH.quoteType = fail "inline-c: quoteType not implemented (quoteCode)"- , TH.quoteDec = fail "inline-c: quoteDec not implemented (quoteCode)"+ , TH.quotePat = const $ fail "inline-c: quotePat not implemented (quoteCode)"+ , TH.quoteType = const $ fail "inline-c: quoteType not implemented (quoteCode)"+ , TH.quoteDec = const $ fail "inline-c: quoteDec not implemented (quoteCode)" } genericQuote
src/Language/C/Types/Parse.hs view
@@ -175,6 +175,9 @@ , TokenParsing m , LookAheadParsing m , MonadReader (CParserContext i) m+#if (MIN_VERSION_base(4,13,0))+ , MonadFail m+#endif , Hashable i )