Drop Paths_hsc2hs module from ghc.mk
[hsc2hs.git] / hsc2hs.cabal
1 Name: hsc2hs
2 Version: 0.68.3
3 Copyright: 2000, Marcin Kowalczyk
4 License: BSD3
5 License-File: LICENSE
6 Author: Marcin Kowalczyk <qrczak@knm.org.pl>
7 Maintainer: ghc-devs@haskell.org
8 Synopsis: A preprocessor that helps with writing Haskell bindings to C code
9 Bug-Reports: https://ghc.haskell.org/trac/ghc/newticket?component=hsc2hs
10 Description:
11     The hsc2hs program can be used to automate some parts of the
12     process of writing Haskell bindings to C code.  It reads an
13     almost-Haskell source file with embedded special constructs, and
14     outputs a real Haskell file with these constructs processed, based
15     on information taken from some C headers.  The extra constructs
16     provide Haskell counterparts of C types, values of C constants,
17     including sizes of C types, and access to fields of C structs.
18     .
19     For more details, see the
20     <http://downloads.haskell.org/~ghc/master/users-guide/utils.html#writing-haskell-interfaces-to-c-code-hsc2hs hsc2hs section>
21     in the GHC User's Guide.
22 Category: Development
23 Data-Files: template-hsc.h
24 build-type: Simple
25 cabal-version: >=1.10
26 extra-source-files: changelog.md
27 tested-with: GHC==8.2.1, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4
28
29 flag in-ghc-tree
30   description: Are we in a GHC tree?
31   default: False
32   manual: True
33
34 source-repository head
35     Type: git
36     Location: http://git.haskell.org/hsc2hs.git
37
38 Executable hsc2hs
39     Default-Language: Haskell2010
40     Main-Is: Main.hs
41     Other-Modules:
42         C
43         Common
44         CrossCodegen
45         DirectCodegen
46         Flags
47         HSCParser
48         UtilsCodegen
49         Paths_hsc2hs
50
51     Other-Extensions: CPP, NoMonomorphismRestriction
52
53     Build-Depends: base       >= 4   && < 5,
54                    containers >= 0.2 && < 0.6,
55                    directory  >= 1   && < 1.4,
56                    filepath   >= 1   && < 1.5,
57                    process    >= 1.1 && < 1.7
58     if flag(in-ghc-tree)
59        cpp-options: -DIN_GHC_TREE
60