forked from ghc/hsc2hs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hsc2hs.cabal
44 lines (41 loc) · 1.53 KB
/
hsc2hs.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
Name: hsc2hs
Version: 0.67
Copyright: 2000, Marcin Kowalczyk
Build-Depends: base, directory, process
License: BSD3
License-File: LICENSE
Author: Marcin Kowalczyk <[email protected]>
Maintainer: [email protected]
Synopsis: A preprocessor that helps with writing Haskell bindings to C code
Description:
The hsc2hs program can be used to automate some parts of the
process of writing Haskell bindings to C code. It reads an
almost-Haskell source file with embedded special constructs, and
outputs a real Haskell file with these constructs processed, based
on information taken from some C headers. The extra constructs
provide Haskell counterparts of C types, values of C constants,
including sizes of C types, and access to fields of C structs.
.
For more details, see
<http://www.haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html>.
Category: Development
Data-Files: template-hsc.h
build-type: Simple
cabal-version: >=1.2
Executable hsc2hs
Main-Is: Main.hs
Other-Modules: HSCParser,
DirectCodegen,
CrossCodegen,
UtilsCodegen,
Common,
C,
Flags
-- needed for ReadP (used by Data.Version)
Hugs-Options: -98
Extensions: CPP, ForeignFunctionInterface
Build-Depends: base >= 4 && < 5,
containers >= 0.2 && < 0.6,
directory >= 1 && < 1.3,
filepath >= 1 && < 1.4,
process >= 1 && < 1.3