packages feed

inline-c 0.5.5.3 → 0.5.5.4

raw patch · 3 files changed

+10/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

inline-c.cabal view
@@ -1,5 +1,5 @@ name:                inline-c-version:             0.5.5.3+version:             0.5.5.4 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.hs view
@@ -228,6 +228,7 @@ --     } --   } |] --   'return' vec+-- @ -- -- == How it works --
src/Language/C/Inline/Context.hs view
@@ -302,6 +302,14 @@ -- -- Does not include the 'baseCtx', since most of the time it's going to -- be included as part of larger contexts.+--+-- IMPORTANT: When using the @fun@ anti quoter, one must be aware that+-- the function pointer which is automatically generated is freed when+-- the code contained in the block containing the anti quoter exits.+-- Thus, if you need the function pointer to be longer-lived, you must+-- allocate it and free it manually using 'freeHaskellFunPtr'.+-- We provide utilities to easily+-- allocate them (see 'Language.C.Inline.mkFunPtr'). funCtx :: Context funCtx = mempty   { ctxAntiQuoters = Map.fromList [("fun", SomeAntiQuoter funPtrAntiQuoter)]