-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgreencard.cabal
executable file
·90 lines (88 loc) · 3.26 KB
/
greencard.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Name: greencard
Version: 3.0.4.2
Synopsis: GreenCard, a foreign function pre-processor for Haskell.
Description:
Green Card is a foreign function interface preprocessor for Haskell, simplifying the
task of interfacing Haskell programs to external libraries (which are normally
exposed via C interfaces).
.
To interface to an external function using Green Card, you write a small procedure
specification. The specification tells Green Card what (Haskell) type you want to
give the function together with details of how the arguments (and results) to the
Haskell function should be marshalled to and from the data representation used by
the external function. Green Card will then generate gobs of low-level boilerplate
code that takes care of all the details.
.
For an example of a simple GreenCard module, have a look at @examples\/world\/World.gc@
.
Along with the @greencard@ application binary, this package also supplies the @greencard@
library/package, consisting of the single module @Foreign.GreenCard@ containing the default
GreenCard marshalling functions.
Category: Foreign
License: BSD3
License-file: LICENSE
Author: Alastair Reid <[email protected]>, Sigbjorn Finne <[email protected]>, Thomas Nordin.
Maintainer: Sigbjorn Finne <[email protected]>
Homepage: https://github.com/sof/greencard
Cabal-version: >= 1.2
Build-type: Simple
Extra-source-files: README
INSTALL
ANNOUNCE
Makefile
examples/Makefile
examples/world/Makedefs.ghc
examples/world/Makefile.hugs-linux
examples/world/Makefile.hugs-win32
examples/world/Makefile.ghc-win32
examples/world/Makefile.ghc-linux
examples/world/World.gc
examples/world/README.txt
examples/world/Makedeps
examples/world/Main.hs
examples/Gdbm/Makefile
examples/Gdbm/Main.hs
examples/Gdbm/Gdbm.gc
examples/Gdbm/diffs
examples/Gdbm/gdbmplus.h
examples/Gdbm/README
lib/package.conf.in
lib/Makefile
src/greencard.hugs.in
src/greencard.ghc.in
src/Parse.ly
src/Package.lhs.in
src/Makefile
library {
hs-source-dirs: lib
Exposed-Modules: Foreign.GreenCard
include-dirs: lib
install-includes: GreenCard.gc
build-depends: base >= 4.7 && <= 5
}
executable greencard {
main-is: GreenCard.lhs
build-depends: base >= 4.7 && <= 5, pretty, containers, array
hs-source-dirs: src
c-sources: src/ErrorHook.c
other-modules: Process
Package
Lex
Proc
Parse
Type
Target
PrettyUtils
MarshallMonad
ListUtils
LexM
FillIn
ErrMonad
DIS
Decl
Casm
GCToken
NameSupply
FillInMonad
Name
}