cabal-version: >= 1.2.3
name: bindings-common
homepage: http://bitbucket.org/mauricio/bindings-common
synopsis:
Preprocessor DSL 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 write, read and 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. Bindings
for the standard C library are also provided, and its source
code shows how most macros are supposed to be used. More
examples and reference documentation can be found at project
homepage.
version: 1.3.3
license: BSD3
license-file: LICENSE
maintainer: Maurício C. Antunes <mauricio.antunes@gmail.com>
author: Maurício C. Antunes
stability: Stable, tested, maintained.
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.Ctype
Bindings.C.Errno
Bindings.C.Locale
Bindings.C.Math
Bindings.C.Signal
Bindings.C.Stddef
Bindings.C.Stdio
Bindings.C.String
Bindings.C.Time
cc-options:
"-D_ISOC99_SOURCE"