This is a set of macros to be used when writing Haskell FFI. They were designed to be able to fully describe C interfaces, so that hsc2hs can extract from them all Haskell code needed to mimic such interfaces. All Haskell names used are automatically derived from C names, structures are mapped to Haskell instances of Storable, and there are also macros you can use with C code to help write bindings to inline functions or macro functions. Documentation is available in package homepage: http://bitbucket.org/mauricio/bindings-dsl This package contains no Haskell code, only C header files designed for hsc2hs.
12 lines
382 B
Makefile
12 lines
382 B
Makefile
# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/04/20 03:39:04 phonohawk Exp $
|
|
|
|
BUILDLINK_TREE+= hs-bindings-DSL
|
|
|
|
.if !defined(HS_BINDINGS_DSL_BUILDLINK3_MK)
|
|
HS_BINDINGS_DSL_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.hs-bindings-DSL+= hs-bindings-DSL>=1.0
|
|
BUILDLINK_PKGSRCDIR.hs-bindings-DSL?= ../../wip/hs-bindings-DSL
|
|
.endif # HS_BINDINGS_DSL_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -hs-bindings-DSL
|