bindings-common 0.1.2 → 0.1.3
raw patch · 3 files changed
+4/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- bindings-common.cabal +1/−1
- src/Bindings.hs +1/−1
- src/Bindings/Utilities.hs +2/−3
bindings-common.cabal view
@@ -9,7 +9,7 @@ level modules that can use it as foundation. They all mimic the exact names and functionality of the original libraries. For a specific library, look for package @bindings-library_name@.-version: 0.1.2+version: 0.1.3 license: BSD3 license-file: LICENSE maintainer: Maurício C. Antunes
src/Bindings.hs view
@@ -1,6 +1,6 @@ {-| - | Modules under "Bindings" are supposed to be low level+ Modules under "Bindings" are supposed to be low level links to well-known libraries. All of them follow the same style for consistency and predictability. Here are a few rules that have been followed:
src/Bindings/Utilities.hs view
@@ -49,15 +49,14 @@ -- | 'freeCallback' should be called on all values returned -- by 'makeCallback' after they are no longer going to be -- used. Most of the time this class method will just use- -- 'Foreign.Ptr.freeHaskellFunPtr'. of a foreign function- -- type after they are no longer going to be used.+ -- 'Foreign.Ptr.freeHaskellFunPtr'. freeCallback :: cb -> IO () -- | 'withCallback' just inserts an action between -- calls to 'makeCallback' and 'freeCallback'. -- Of course, it can't be used when foreign code- -- will save the function for latter use.+ -- will save such action for latter use. withCallback :: F cb -> (cb -> IO a) -> IO a withCallback f c = do