inline-c 0.9.1.1 → 0.9.1.2
raw patch · 3 files changed
+10/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +1/−0
- inline-c.cabal +1/−1
- src/Language/C/Inline/Interruptible.hs +8/−2
changelog.md view
@@ -1,3 +1,4 @@+- 0.9.1.2: Update haddock for `Language.C.Inline.Interruptible.pure`. - 0.9.1.1: Use `unsafeDupablePerformIO` rather than `unsafePerformIO`. See issue #115 and PR #117. - 0.9.1.0: Add `Language.C.Inline.substitute` and `Language.C.Inline.getHaskellType`. - 0.9.0.0: Add support for C++ namespace and template.
inline-c.cabal view
@@ -1,5 +1,5 @@ name: inline-c-version: 0.9.1.1+version: 0.9.1.2 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/Interruptible.hs view
@@ -34,10 +34,16 @@ -- | Variant of 'exp', for use with expressions known to have no side effects. ----- BEWARE: use this function with caution, only when you know what you are+-- __BEWARE__: Use this function with caution, only when you know what you are -- doing. If an expression does in fact have side-effects, then indiscriminate -- use of 'pure' may endanger referential transparency, and in principle even--- type safety.+-- type safety. Also note that the function may run more than once and that it+-- may run in parallel with itself, given that+-- 'System.IO.Unsafe.unsafeDupablePerformIO' is used to call the provided C+-- code [to ensure good performance using the threaded+-- runtime](https://github.com/fpco/inline-c/issues/115). Please refer to the+-- documentation for 'System.IO.Unsafe.unsafeDupablePerformIO' for more+-- details. pure :: TH.QuasiQuoter pure = genericQuote Pure $ inlineExp TH.Interruptible