Regenerate .travis.yml
[hsc2hs.git] / hsc2hs.cabal
1 cabal-version: >=1.10
2 Name: hsc2hs
3 Version: 0.68.4
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.1, 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         Paths_hsc2hs
55
56     Other-Extensions: CPP, NoMonomorphismRestriction
57
58     Build-Depends: base       >= 4.3.0 && < 5,
59                    containers >= 0.4.0 && < 0.7,
60                    directory  >= 1.1.0 && < 1.4,
61                    filepath   >= 1.2.0 && < 1.5,
62                    process    >= 1.1.0 && < 1.7
63     if flag(in-ghc-tree)
64        cpp-options: -DIN_GHC_TREE
65
66 test-suite spec
67   main-is:           Spec.hs
68   hs-source-dirs:    .
69   other-modules:     ATTParser
70   ghc-options:       -Wall -threaded
71   type:              exitcode-stdio-1.0
72   build-depends:       base
73                      , tasty
74                      , tasty-hspec
75   default-language: Haskell2010