on 267f708 help sign in
elk/elm-compiler.cabal
235 lines 5.8 kB history raw
2Name: elm-compiler
3Version: 0.17.1
5Synopsis:
6 Values to help with elm-package, elm-make, and elm-lang.org.
8Description:
9 Elm aims to make client-side web-development pleasant. It is a
10 statically/strongly typed, functional reactive language that compiles to
11 HTML, CSS, and JS. This package provides a couple helpful values that are
12 intended for use in packages such as elm-package and elm-make.
14Homepage: http://elm-lang.org
16License: BSD3
17License-file: LICENSE
19Author: Evan Czaplicki
20Maintainer: info@elm-lang.org
21Copyright: Copyright (c) 2011-2016 Evan Czaplicki
23Category: Compiler, Language
25Extra-source-files: changelog.md
27Cabal-version: >=1.9
28Build-type: Simple
30source-repository head
31 type: git
32 location: git://github.com/elm-lang/elm-compiler.git
35Flag dev {
36 Description: Turn off optimization and make warnings errors
37 Default: False
41Library
42 if flag(dev)
43 ghc-options: -O0 -W -Werror
44 else
45 ghc-options: -O2
47 Hs-Source-Dirs:
48 src
50 exposed-modules:
51 Elm.Compiler,
52 Elm.Compiler.Module,
53 Elm.Compiler.Type,
54 Elm.Docs,
55 Elm.Package,
56 Elm.Utils
58 other-modules:
59 AST.Declaration,
60 AST.Effects,
61 AST.Expression.Canonical,
62 AST.Expression.General,
63 AST.Expression.Optimized,
64 AST.Expression.Source,
65 AST.Expression.Valid,
66 AST.Helpers,
67 AST.Literal,
68 AST.Module,
69 AST.Module.Name,
70 AST.Pattern,
71 AST.Type,
72 AST.Variable,
73 Canonicalize,
74 Canonicalize.Body,
75 Canonicalize.Effects,
76 Canonicalize.Environment,
77 Canonicalize.Setup,
78 Canonicalize.Sort,
79 Canonicalize.Type,
80 Canonicalize.Variable,
81 Compile,
82 Docs.AST,
83 Docs.Centralize,
84 Docs.Check,
85 Elm.Compiler.Imports,
86 Elm.Compiler.Type.Extract,
87 Elm.Compiler.Version,
88 Generate.JavaScript,
89 Generate.JavaScript.Builder,
90 Generate.JavaScript.BuiltIn,
91 Generate.JavaScript.Expression,
92 Generate.JavaScript.Foreign,
93 Generate.JavaScript.Helpers,
94 Generate.JavaScript.Literal,
95 Generate.JavaScript.Variable,
96 Nitpick.Pattern,
97 Nitpick.PatternMatches,
98 Nitpick.TopLevelTypes,
99 Optimize,
100 Optimize.Case,
101 Optimize.DecisionTree,
102 Optimize.Environment,
103 Optimize.Inline,
104 Parse.Binop,
105 Parse.Declaration,
106 Parse.Expression,
107 Parse.Helpers,
108 Parse.Literal,
109 Parse.Module,
110 Parse.Parse,
111 Parse.Pattern,
112 Parse.Type,
113 Reporting.Annotation,
114 Reporting.Bag,
115 Reporting.Error,
116 Reporting.Error.Canonicalize,
117 Reporting.Error.Docs,
118 Reporting.Error.Helpers,
119 Reporting.Error.Pattern,
120 Reporting.Error.Syntax,
121 Reporting.Error.Type,
122 Reporting.Region,
123 Reporting.Render.Code,
124 Reporting.Render.Type,
125 Reporting.Report,
126 Reporting.Result,
127 Reporting.Warning,
128 Type.Constrain.Effects,
129 Type.Constrain.Expression,
130 Type.Constrain.Literal,
131 Type.Constrain.Pattern,
132 Type.Environment,
133 Type.Fragment,
134 Type.Inference,
135 Type.Solve,
136 Type.State,
137 Type.Type,
138 Type.Unify,
139 Validate,
140 Paths_elm_compiler
142 Build-depends:
143 aeson >= 0.11,
144 aeson-pretty,
145 ansi-terminal >= 0.6.2.1 && < 0.7,
146 ansi-wl-pprint >= 0.6.7 && < 0.7,
147 base >=4.2 && <5,
148 binary >= 0.7.0.0 && < 0.8,
149 bytestring >= 0.9 && < 0.11,
150 containers >= 0.3 && < 0.6,
151 directory >= 1.0 && < 2.0,
152 edit-distance >= 0.2 && < 0.3,
153 filepath >= 1 && < 2.0,
154 indents >= 0.3 && < 0.4,
155 language-ecmascript >= 0.15 && < 0.18,
156 language-glsl >= 0.0.2 && < 0.3,
157 mtl >= 2.2 && < 3,
158 parsec >= 3.1.1 && < 3.5,
159 pretty >= 1.0 && < 2.0,
160 process,
161 text >= 1 && < 2,
162 union-find >= 0.2 && < 0.3
165Executable elm
166 ghc-options:
167 -threaded -O2 -W
169 Hs-Source-Dirs:
170 src
172 Main-is:
173 CommandLineRouter.hs
175 other-modules:
176 Elm.Compiler.Version,
177 Paths_elm_compiler
179 Build-depends:
180 base >=4.2 && <5,
181 aeson >= 0.11,
182 binary >= 0.7.0.0 && < 0.8,
183 directory >= 1.0 && < 2.0,
184 filepath >= 1 && < 2.0,
185 text >= 1 && < 2,
186 process
189Test-Suite compiler-tests
190 ghc-options:
191 -O0
193 Type:
194 exitcode-stdio-1.0
196 Hs-Source-Dirs:
197 tests, src
199 Main-is:
200 Test.hs
202 other-modules:
203 Test.Compiler
204 Test.Property
205 Test.Property.Arbitrary
206 AST.Helpers
207 AST.Literal
209 build-depends:
210 test-framework > 0.8 && < 0.9,
211 test-framework-hunit >= 0.3 && < 0.4,
212 test-framework-quickcheck2 >= 0.3 && < 0.4,
213 HUnit >= 1.1 && < 2,
214 QuickCheck >= 2 && < 3,
215 aeson >= 0.11,
216 aeson-pretty,
217 ansi-terminal >= 0.6.2.1 && < 0.7,
218 ansi-wl-pprint >= 0.6.7 && < 0.7,
219 base >=4.2 && <5,
220 binary >= 0.7.0.0 && < 0.8,
221 bytestring >= 0.9 && < 0.11,
222 containers >= 0.3 && < 0.6,
223 directory >= 1.0 && < 2.0,
224 edit-distance >= 0.2 && < 0.3,
225 filemanip >= 0.3.5 && < 0.4,
226 filepath >= 1 && < 2.0,
227 indents >= 0.3 && < 0.4,
228 language-ecmascript >= 0.15 && < 0.18,
229 language-glsl >= 0.0.2 && < 0.3,
230 mtl >= 2.2 && < 3,
231 parsec >= 3.1.1 && < 3.5,
232 pretty >= 1.0 && < 2.0,
233 process,
234 text >= 1 && < 2,
235 union-find >= 0.2 && < 0.3