forked from yav/sequent-core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsequent-core.cabal
153 lines (142 loc) · 6.18 KB
/
sequent-core.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: sequent-core
version: 0.5.0.1
stability: experimental
category: Development
license: BSD3
license-file: LICENSE
author: Luke Maurer, Paul Downen, Iavor S. Diatchki
maintainer: maurerl@cs.uoregon.edu
build-type: Simple
cabal-version: >=1.10
synopsis: Alternative Core language for GHC plugins
description: Sequent Core is a GHC plugin library based on a sequent calculus. It includes:
.
* A set of datatypes for a language expressing function code as /interactions/
between values and their contexts (/continuations/)
* A library for writing GHC optimizer plugins using the Sequent Core
language in place of the built-in Core language
* Example plugins written using Sequent Core
homepage: https://github.com/lukemaurer/sequent-core
bug-reports: https://github.com/lukemaurer/sequent-core
package-url: https://github.com/lukemaurer/sequent-core/archive/master.zip
flag examples
description: Build example executables.
default: False
manual: True
library
hs-source-dirs: src
exposed-modules: Language.SequentCore
Language.SequentCore.Annot
Language.SequentCore.Arity
Language.SequentCore.Contify
Language.SequentCore.Dump
Language.SequentCore.FloatOut
Language.SequentCore.FVs
Language.SequentCore.Inspect
Language.SequentCore.LiftLambdas
Language.SequentCore.Lint
Language.SequentCore.OccurAnal
Language.SequentCore.Plugin
Language.SequentCore.PrePrep
Language.SequentCore.Pretty
Language.SequentCore.Simpl
Language.SequentCore.SpecConstr
Language.SequentCore.Syntax
Language.SequentCore.Syntax.Util
Language.SequentCore.Translate
SequentCore
other-modules: Language.SequentCore.Simpl.Env
Language.SequentCore.Driver
Language.SequentCore.Driver.Flags
Language.SequentCore.FloatOut.SetLevels
Language.SequentCore.FloatOut.Summary
Language.SequentCore.Simpl.ExprSize
Language.SequentCore.Simpl.Monad
Language.SequentCore.Simpl.Util
Language.SequentCore.Util
Language.SequentCore.WiredIn
build-depends: base >= 4 && < 5, ghc >= 7.8 && < 7.10, containers, transformers,
bytestring
default-language: Haskell2010
ghc-options: -Wall -fno-warn-name-shadowing
executable DumpExpl
hs-source-dirs: examples
Main-is: Example.hs
build-depends: base >= 4 && < 5, sequent-core
default-language: Haskell2010
ghc-options: -fplugin=Language.SequentCore.Dump
if !flag(examples)
buildable: False
executable SpecConstrExpl
hs-source-dirs: examples
Main-is: SpecConstrExpl.hs
build-depends: base >= 4 && < 5, sequent-core, containers
default-language: Haskell2010
ghc-options: -fplugin=SequentCore
-fplugin-opt=SequentCore:-fseq-spec-constr
-fspec-constr
if !flag(examples)
buildable: False
executable SimplExpl
hs-source-dirs: examples
Main-is: Compl.hs
build-depends: base >= 4 && < 5, sequent-core, bytestring
default-language: Haskell2010
ghc-options: -fplugin=SequentCore
-fplugin-opt=SequentCore:-fseq-simpl
if !flag(examples)
buildable: False
executable CasesExpl
hs-source-dirs: examples
Main-is: Cases.hs
build-depends: base >= 4 && < 5, sequent-core
default-language: Haskell2010
ghc-options: -fplugin=SequentCore
-fplugin-opt=SequentCore:-fseq-simpl
if !flag(examples)
buildable: False
executable SizesExpl
hs-source-dirs: examples
Main-is: Sizes.hs
build-depends: base >= 4 && < 5, sequent-core
default-language: Haskell2010
ghc-options: -fplugin=Language.SequentCore.Inspect
-fplugin-opt=Language.SequentCore.Inspect:size
if !flag(examples)
buildable: False
executable ContExpl
hs-source-dirs: examples
Main-is: Contification.hs
build-depends: base >= 4 && < 5, sequent-core
default-language: Haskell2010
ghc-options: -O0 -fplugin=Language.SequentCore.Dump
-fplugin-opt=Language.SequentCore.Dump:-ddump-cfy-stats
if !flag(examples)
buildable: False
executable FullContExpl
hs-source-dirs: examples
Main-is: FullContification.hs
build-depends: base >= 4 && < 5, sequent-core
default-language: Haskell2010
ghc-options: -O0
-fplugin=SequentCore
-fplugin-opt=SequentCore:-fseq-contification
-fplugin-opt=SequentCore:-ddump-cfy-stats
-fplugin=Language.SequentCore.Dump
-fplugin-opt=Language.SequentCore.Dump:end
if !flag(examples)
buildable: False
executable StrictnessExpl
hs-source-dirs: examples
Main-is: Strictness.hs
build-depends: base >= 4 && < 5, sequent-core
default-language: Haskell2010
ghc-options: -O -fplugin=SequentCore
-fplugin-opt=SequentCore:-fseq-simpl
-fplugin=Language.SequentCore.Dump
-fplugin-opt=Language.SequentCore.Dump:end
if !flag(examples)
buildable: False
source-repository head
type: git
location: git://github.com/lukemaurer/sequent-core.git