haskell-gi-base

Foundation for libraries generated by haskell-gi

https://github.com/haskell-gi/haskell-gi-base

Version on this page:0.21.5
LTS Haskell 22.39:0.26.8
Stackage Nightly 2024-10-31:0.26.8
Latest on Hackage:0.26.8

See all snapshots haskell-gi-base appears in

LGPL-2.1-only licensed by Will Thompson, Iñaki García Etxebarria, Jonas Platte
Maintained by Iñaki García Etxebarria ([email protected])
This version can be pinned in stack with:haskell-gi-base-0.21.5@sha256:f6f62623b1eb6040eda2835fa924f36e1be8f994b2068cbb90d8b45ce191e459,2343

Foundation for libraries generated by haskell-gi

Changes

0.21.5

  • Add releaseObject, a function useful for manually releasing memory associated to GObjects.

0.21.4

  • Add support for callback-valued properties.

0.21.3

  • Fix a compilation error on Windows, see issue 193.

0.21.2

0.21.1

  • Remove the ::= and ::~ constructors in AttrOp, since they cannot really be used for anything, as they are pure functions.

0.21.0

  • New release to keep major version parity with the haskell-gi package, no changes otherwise.

0.20.8

  • Fix a bug which could lead to crashes when releasing boxed objects, see issue #130.

0.20.7

  • Fix a memory leak in doConstructGObject.

0.20.6

  • Use g_object_new_with_properties instead of g_object_newv in GLib versions 2.54 or later, to avoid a deprecation warning.

0.20.5

  • Run object finalizers in the main loop. The reason is that for some types the destructor is not thread safe, and assumes that it is being run from the same thread as the thread that created the object, which can lead to crashes when using the threaded runtime.

0.20.4

0.20.3

  • Fixes for GHC 8.2.1 (and the corresponding base-4.10.0).

0.20.2

  • Fix fromGVariant for empty arrays, see #91 for details.

0.20.1

  • Add Data.GI.Base.CallStack, abstracting (and backporting to the extent possible) the HasCallStack constraint present in newer GHCs. Using this, we now include callstacks pervasively in the generated code.

  • Improve the WrappedPtr implementation.

  • Deprecate nulltoNothing, it is better to simply fix the overrides when necessary.

  • Make the semantics of GObject ownership transfer closer to those used by the Python bindings.