inline-c 0.5.4.2 → 0.5.4.3
raw patch · 3 files changed
+6/−5 lines, 3 files
Files
- changelog.md +1/−0
- inline-c.cabal +1/−1
- src/Language/C/Inline/Internal.hs +4/−4
changelog.md view
@@ -1,3 +1,4 @@+- 0.5.4.3: Fix haddock docs. - 0.5.4.2: Generate unique C names by prefixing the already generated name with the Haskell module name. See issue #25. - 0.5.4.1: Do not generate C code when haddock is type checking. See
inline-c.cabal view
@@ -1,5 +1,5 @@ name: inline-c-version: 0.5.4.2+version: 0.5.4.3 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
src/Language/C/Inline/Internal.hs view
@@ -283,10 +283,10 @@ -- inline_c_MODULE_INDEX_HASH -- -- Where:- -- * MODULE is the module name but with _s instead of .s;- -- * INDEX is a counter that keeps track of how many names we're generating- -- for each module;- -- * HASH is the SHA1 hash of the contents.+ -- * MODULE is the module name but with _s instead of .s;+ -- * INDEX is a counter that keeps track of how many names we're generating+ -- for each module;+ -- * HASH is the SHA1 hash of the contents. c' <- bumpGeneratedNames let unique :: CryptoHash.Digest CryptoHash.SHA1 = CryptoHash.hashlazy $ Binary.encode x module_ <- TH.loc_module <$> TH.location