on master help sign in
Add two dummy files to make it possible to build the compiler from

within emacs. This makes it faster to type-check things and start testing functions.

commitcee9f6a9d99585e257855c3ad093ee83d4d43ad9 authorEvan Czaplicki <evan@Evans-MacBook-Air.local> dateSun 23 Jun 2013, 02:43 (13 years ago) parent48e7584
2 files changed+188
compiler/Dummy.cabal+173 compiler/Paths_Elm.hs+15
compiler/Dummy.cabalnew file+173
@@ -0,0 +1,173 @@
1+-- This is a dummy .cabal file that makes it possible to build the
2+-- compiler with GHCi from within emacs. Do not actually use this
3+-- file to install things.
4+
5+Name: Elm
6+Version: 0.8.0.3
7+Synopsis: The Elm language module.
8+Description: Elm aims to make client-side web-development more pleasant.
9+ It is a statically/strongly typed, functional reactive
10+ language to HTML, CSS, and JS. This package provides a
11+ library for Elm compilation in Haskell and a compiler
12+ executable.
13+
14+Homepage: http://elm-lang.org
15+
16+License: BSD3
17+License-file: LICENSE
18+
19+Author: Evan Czaplicki
20+Maintainer: info@elm-lang.org
21+Copyright: Copyright: (c) 2011-2012 Evan Czaplicki
22+
23+Category: Compiler, Language
24+
25+Build-type: Custom
26+
27+Extra-source-files: changelog.txt
28+Data-dir: dist/data
29+Data-files: elm-runtime.js docs.json
30+Cabal-version: >=1.8
31+
32+source-repository head
33+ type: git
34+ location: git://github.com/evancz/Elm.git
35+
36+Library
37+ exposed-modules: Language.Elm,
38+ Language.Elm.Quasi
39+ Hs-Source-Dirs: compiler
40+ other-modules: Unique,
41+ SourceSyntax.Helpers,
42+ SourceSyntax.Location,
43+ SourceSyntax.Literal,
44+ SourceSyntax.Pattern,
45+ SourceSyntax.Expression,
46+ SourceSyntax.Declaration,
47+ SourceSyntax.Module,
48+ SourceSyntax.Rename
49+ Generate.JavaScript,
50+ Generate.Noscript,
51+ Generate.Html,
52+ Generate.Cases,
53+ Transform.Substitute,
54+ Transform.Optimize,
55+ Metadata.Libraries,
56+ Metadata.LoadLibraries,
57+ Initialize,
58+ Parse.Binop,
59+ Parse.Expression,
60+ Parse.Foreign,
61+ Parse.Helpers,
62+ Parse.Module,
63+ Parse.Parser,
64+ Parse.Pattern,
65+ Parse.Type,
66+ Types.Alias,
67+ Types.Types,
68+ Types.Constrain,
69+ Types.Hints,
70+ Types.Solver,
71+ Types.Substitutions,
72+ Types.Unify,
73+ Paths_Elm
74+
75+ Build-depends: base >=4.2 && <5,
76+ containers >= 0.3,
77+ transformers >= 0.2,
78+ mtl >= 2,
79+ deepseq,
80+ parsec >= 3.1.1,
81+ blaze-html == 0.5.* || == 0.6.*,
82+ blaze-markup == 0.5.1.*,
83+ text,
84+ shakespeare >= 1,
85+ template-haskell,
86+ pandoc >= 1.10,
87+ bytestring,
88+ uniplate,
89+ hjsmin,
90+ indents,
91+ filepath,
92+ json,
93+ directory
94+
95+Executable elm
96+ Main-is: Compiler.hs
97+ Hs-Source-Dirs: compiler
98+ other-modules: Unique,
99+ SourceSyntax.Helpers,
100+ SourceSyntax.Location,
101+ SourceSyntax.Literal,
102+ SourceSyntax.Pattern,
103+ SourceSyntax.Expression,
104+ SourceSyntax.Declaration,
105+ SourceSyntax.Module,
106+ SourceSyntax.Rename
107+ Generate.JavaScript,
108+ Generate.Noscript,
109+ Generate.Html,
110+ Generate.Cases,
111+ Transform.Substitute,
112+ Transform.Optimize,
113+ Metadata.Libraries,
114+ Metadata.LoadLibraries,
115+ Initialize,
116+ Parse.Binop,
117+ Parse.Expression,
118+ Parse.Foreign,
119+ Parse.Helpers,
120+ Parse.Module,
121+ Parse.Parser,
122+ Parse.Pattern,
123+ Parse.Type,
124+ Types.Alias,
125+ Types.Types,
126+ Types.Constrain,
127+ Types.Hints,
128+ Types.Solver,
129+ Types.Substitutions,
130+ Types.Unify,
131+ Paths_Elm
132+
133+ Build-depends: base >=4.2 && <5,
134+ containers >= 0.3,
135+ transformers >= 0.2,
136+ mtl >= 2,
137+ deepseq,
138+ parsec >= 3.1.1,
139+ blaze-html == 0.5.* || == 0.6.*,
140+ blaze-markup == 0.5.1.*,
141+ cmdargs,
142+ pandoc >= 1.10,
143+ bytestring,
144+ uniplate,
145+ hjsmin,
146+ indents,
147+ filepath,
148+ json,
149+ directory
150+
151+Executable elm-doc
152+ Main-is: Docs.hs
153+ Hs-Source-Dirs: compiler
154+ other-modules: SourceSyntax.Helpers,
155+ SourceSyntax.Location,
156+ SourceSyntax.Literal,
157+ SourceSyntax.Pattern,
158+ SourceSyntax.Expression,
159+ SourceSyntax.Declaration,
160+ SourceSyntax.Module,
161+ SourceSyntax.Rename
162+ Parse.Helpers,
163+ Parse.Module
164+
165+ Build-depends: base >=4.2 && <5,
166+ containers >= 0.3,
167+ transformers >= 0.2,
168+ mtl >= 2,
169+ parsec >= 3.1.1,
170+ pandoc >= 1.10,
171+ cmdargs,
172+ filepath,
173+ indents
compiler/Paths_Elm.hsnew file+15
@@ -0,0 +1,15 @@
1+-- This is a dummy file, but it should not be removed.
2+-- It makes it possible to build the compiler in GHCi, so you
3+-- can do some testing from within emacs (or whatever inferior
4+-- editor you use instead).
5+
6+module Paths_Elm where
7+
8+import Data.Version
9+import System.FilePath
10+
11+getDataFileName :: FilePath -> IO FilePath
12+getDataFileName path = return ("dist" </> "data" </> path)
13+
14+version :: Version
15+version = Version [0,8,0,3] []