/
inline-c.cabal
92 lines (86 loc) · 3.1 KB
/
inline-c.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
name: inline-c
version: 0.9.1.10
synopsis: Write Haskell source files including C code inline. No FFI required.
description: See <https://github.com/fpco/inline-c/blob/master/README.md>.
license: MIT
license-file: LICENSE
author: Francesco Mazzoli, Mathieu Boespflug
maintainer: f@mazzo.li
copyright: (c) 2015-2016 FP Complete Corporation, (c) 2017-2019 Francesco Mazzoli
category: FFI
tested-with: GHC == 9.2.8, GHC == 9.4.7, GHC == 9.6.2
build-type: Simple
cabal-version: >=1.10
Extra-Source-Files: README.md, changelog.md
source-repository head
type: git
location: https://github.com/fpco/inline-c
flag gsl-example
description: Build GSL example
default: False
library
exposed-modules: Language.C.Inline
, Language.C.Inline.Context
, Language.C.Inline.HaskellIdentifier
, Language.C.Inline.Internal
, Language.C.Inline.Unsafe
, Language.C.Inline.Interruptible
, Language.C.Types
, Language.C.Types.Parse
other-modules: Language.C.Inline.FunPtr
ghc-options: -Wall
build-depends: base >=4.7 && <5
, prettyprinter >=1.7
, bytestring
, containers
, hashable
, mtl
, parsec >= 3
, parsers
, template-haskell >= 2.12.0.0
, transformers >= 0.1.3.0
, unordered-containers
, vector
hs-source-dirs: src
default-language: Haskell2010
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: tests.hs
other-modules: Dummy
, Language.C.Inline.ContextSpec
, Language.C.Inline.ParseSpec
, Language.C.Types.ParseSpec
build-depends: base >=4 && <5
, QuickCheck
, containers
, hashable
, hspec >= 2
, inline-c
, parsers
, QuickCheck
, prettyprinter
, raw-strings-qq
, regex-posix
, template-haskell
, transformers
, unordered-containers
, vector
, split
default-language: Haskell2010
ghc-options: -Wall
cc-options: -Wall -Werror
executable gsl-ode
hs-source-dirs: examples
main-is: gsl-ode.hs
default-language: Haskell2010
extra-libraries: gsl gslcblas m
ghc-options: -Wall
cc-options: -Wall -Werror
if flag(gsl-example)
buildable: True
build-depends: base >=4 && <5
, inline-c
, vector
else
buildable: False