-
Notifications
You must be signed in to change notification settings - Fork 0
/
hs-perl5.cabal
135 lines (125 loc) · 4.32 KB
/
hs-perl5.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
cabal-version: 1.24
name: hs-perl5
version: 0.1.0
copyright: 2008-2015 Audrey Tang, 2021- Phlummox
license: MIT
license-file: LICENSE
homepage: https://github.com/phlummox/hs-perl5#readme
bug-reports: https://github.com/phlummox/hs-perl5/issues
author: Audrey Tang <[email protected]>, phlummox <[email protected]>
maintainer: phlummox <[email protected]>
synopsis: Haskell interface to an embedded Perl 5 interpreter
description: This module provides a Haskell interface to an embedded
Perl 5 interpreter.
.
Documentation and functionality is scarce at the moment;
see @examples/test.hs@ for some basic usage examples.
.
Currently supported features are:
.
* Function calls
* Method calls
* Module imports
* Callbacks
.
/IN DEVELOPMENT & EXPERIMENTAL/
.
/PORTABILITY: probably only Linux/
.
If using Stack -- seems to work OK on stack lts-9 thru stack lts-15
.
For further information, please see the README on GitHub
at <https://github.com/phlummox/hs-perl5#readme>
stability: experimental
tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.8.3
build-type: Custom
category: Language, Perl, Foreign
extra-source-files:
CHANGELOG.md
HACKING.md
README.md
THANKS.md
cbits/glue.h
cbits/perlxsi.h
stack-lts-9.yaml
stack-lts-9.yaml.lock
stack-lts-10.yaml
stack-lts-10.yaml.lock
stack-lts-11.yaml
stack-lts-11.yaml.lock
stack-lts-12.yaml
stack-lts-12.yaml.lock
stack-lts-15.yaml
stack-lts-15.yaml.lock
source-repository head
type: git
location: https://github.com/phlummox/hs-perl5
custom-setup
setup-depends:
Cabal
, base
, process
library
exposed-modules:
Language.Perl
Language.Perl.Types
Language.Perl.Internal
Language.Perl.Internal.Types
Language.Perl.Internal.Constants
hs-source-dirs: src
include-dirs: cbits
c-sources: cbits/glue.c
build-depends:
base >=4.7 && <5
, bytestring
, text
default-language: Haskell2010
ghc-options: -Wall -fwarn-tabs
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints -Wno-type-defaults -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-name-shadowing -Wextra
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists -Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
test-suite hs-perl5-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules: Language.Perl.TestUtils
build-depends: base
, base-compat >= 0.10
, hs-perl5
, hspec
, QuickCheck >= 2.10
, quickcheck-text
, text
, interpolatedstring-perl6
, temporary
ghc-options:
-- ideally, should compile & run tests
-- both with and without threading.
-rtsopts
-threaded
-with-rtsopts=-N
-Wall -fwarn-tabs
default-language: Haskell2010
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints -Wno-type-defaults -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-name-shadowing -Wextra
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists -Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
executable example
buildable: False
main-is: test.hs
hs-source-dirs:
examples
build-depends:
base
, hs-perl5
ghc-options: -Wall -fwarn-tabs -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010