-
Notifications
You must be signed in to change notification settings - Fork 23
/
hsc2hs.cabal
106 lines (93 loc) · 2.94 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
cabal-version: >=1.10
Name: hsc2hs
Version: 0.68.10
x-revision: 3
Copyright: 2000, Marcin Kowalczyk
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
Bug-Reports: https://github.com/haskell/hsc2hs/issues
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 the
<http://downloads.haskell.org/~ghc/master/users-guide/utils.html#writing-haskell-interfaces-to-c-code-hsc2hs hsc2hs section>
in the GHC User's Guide.
Category: Development
Data-Dir: data/
Data-Files: template-hsc.h
build-type: Simple
tested-with:
GHC == 9.12.0
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.6
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
extra-source-files:
changelog.md
test/asm/*.s
flag in-ghc-tree
description: Are we in a GHC tree?
default: False
manual: True
source-repository head
Type: git
Location: https://github.com/haskell/hsc2hs.git
Executable hsc2hs
Default-Language: Haskell2010
Main-Is: Main.hs
Hs-Source-Dirs: src/
Other-Modules:
C
Common
CrossCodegen
DirectCodegen
Flags
HSCParser
ATTParser
UtilsCodegen
Compat.ResponseFile
Compat.TempFile
Paths_hsc2hs
c-sources:
cbits/utils.c
Other-Extensions: CPP, NoMonomorphismRestriction
Build-Depends: base >= 4.3.0 && < 4.22,
containers >= 0.4.0 && < 0.8,
directory >= 1.1.0 && < 1.4,
filepath >= 1.2.0 && < 1.6,
process >= 1.1.0 && < 1.7
if os(windows)
-- N.B. Job object support was irreparably broken prior to 1.6.8.
-- See https://github.com/haskell/process/issues/167.
Build-Depends: process >= 1.6.8 && < 1.7
ghc-options: -Wall
if flag(in-ghc-tree)
cpp-options: -DIN_GHC_TREE
test-suite spec
main-is: Spec.hs
hs-source-dirs: src/ test/
other-modules: ATTParser Flags BDD
ghc-options: -Wall -threaded
type: exitcode-stdio-1.0
build-depends: base >= 4.3.0 && < 4.22,
test-framework >= 0.8.2.0 && < 0.9,
test-framework-hunit >= 0.3.0.2 && < 0.4,
HUnit >= 1.3.1.2 && < 1.4 || >= 1.6.0.0 && < 1.7
default-language: Haskell2010