hsc2hs: Make removeFile more reliable on Windows. (#25)
[hsc2hs.git] / hsc2hs.cabal
1 cabal-version: >=1.10
2 Name: hsc2hs
3 Version: 0.68.5
4
5 Copyright: 2000, Marcin Kowalczyk
6 License: BSD3
7 License-File: LICENSE
8 Author: Marcin Kowalczyk <qrczak@knm.org.pl>
9 Maintainer: ghc-devs@haskell.org
10 Synopsis: A preprocessor that helps with writing Haskell bindings to C code
11 Bug-Reports: https://github.com/haskell/hsc2hs/issues
12 Description:
13     The hsc2hs program can be used to automate some parts of the
14     process of writing Haskell bindings to C code.  It reads an
15     almost-Haskell source file with embedded special constructs, and
16     outputs a real Haskell file with these constructs processed, based
17     on information taken from some C headers.  The extra constructs
18     provide Haskell counterparts of C types, values of C constants,
19     including sizes of C types, and access to fields of C structs.
20     .
21     For more details, see the
22     <http://downloads.haskell.org/~ghc/master/users-guide/utils.html#writing-haskell-interfaces-to-c-code-hsc2hs hsc2hs section>
23     in the GHC User's Guide.
24 Category: Development
25 Data-Files: template-hsc.h
26 build-type: Simple
27 tested-with: GHC==8.6.4, GHC==8.4.4, GHC==8.2.2, 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 extra-source-files:
30   changelog.md
31   test/asm/*.s
32
33 flag in-ghc-tree
34   description: Are we in a GHC tree?
35   default: False
36   manual: True
37
38 source-repository head
39     Type: git
40     Location: https://github.com/haskell/hsc2hs.git
41
42 Executable hsc2hs
43     Default-Language: Haskell2010
44     Main-Is: Main.hs
45     Other-Modules:
46         C
47         Common
48         CrossCodegen
49         DirectCodegen
50         Flags
51         HSCParser
52         ATTParser
53         UtilsCodegen
54         Compat.ResponseFile
55         Paths_hsc2hs
56
57     Other-Extensions: CPP, NoMonomorphismRestriction
58
59     Build-Depends: base       >= 4.3.0 && < 5,
60                    containers >= 0.4.0 && < 0.7,
61                    directory  >= 1.1.0 && < 1.4,
62                    filepath   >= 1.2.0 && < 1.5,
63                    process    >= 1.1.0 && < 1.7
64
65     if os(windows)
66       Build-Depends: process  >= 1.5.0 && < 1.7
67
68     ghc-options:   -Wall
69     if flag(in-ghc-tree)
70        cpp-options: -DIN_GHC_TREE
71
72 test-suite spec
73   main-is:           Spec.hs
74   hs-source-dirs:    .
75   other-modules:     ATTParser
76   ghc-options:       -Wall -threaded
77   type:              exitcode-stdio-1.0
78   build-depends:       base
79                      , tasty
80                      , tasty-hspec
81   default-language: Haskell2010