cabal-version: >= 1.2.3
name: bindings-common
homepage: http://bitbucket.org/mauricio/bindings-common
synopsis:
Support package for low-level FFI.
description:
Packages named @bindings-*@ contain low level bindings to well
known libraries, as a resource to be used by developers of
higher level modules. This @bindings-common@ package provides
@hsc2hs@ macros that allows writing code for such low level
bindings that is easy to read an maintain, while keeping names
and functionality as close as possible to the base library.
These macros can be used as a simple alternative to, say,
@c2hs@, or to @hsc2hs@ original macros. At this moment, there's
no good documentation on how to use them, so please
read the code for "Bindings.C" to understand how they work, or
just fill question\/sugestion reports in the bug tracking web
site.
(/Caveat/: fields of a struct declared as arrays are
not properly supported in this release. Pointer fieds, of course,
are okay.)
version: 1.0
license: BSD3
license-file: LICENSE
maintainer: Maurício C. Antunes <mauricio.antunes@gmail.com>
author: Maurício C. Antunes
stability: Very close to API stability.
build-type: Simple
bug-reports: http://bitbucket.org/mauricio/bindings-common/issues
category: FFI
library
hs-source-dirs: src
include-dirs: src
install-includes:
bindings.macros.h
extensions:
ForeignFunctionInterface
build-depends: base >=3 && <5
exposed-modules:
Bindings.C
Bindings.C.Errno
Bindings.C.Math
Bindings.C.Stddef
Bindings.C.Stdio
Bindings.C.String
Bindings.C.Time
cc-options:
"-D_ISOC99_SOURCE"