on master help sign in
Change version numbers and updated .cabal file.
c0860aaevancz
Elm.cabal+7−28
@@ -1,47 +1,26 @@
1−-- Elm.cabal auto-generated by cabal init. For additional options, see
2−-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
3−-- The name of the package.
4−Name: Elm
5
1
6−-- The package version. See the Haskell package versioning policy
2+Name: Elm
7−-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
8−-- standards guiding when and how versions should be incremented.
9Version: 0.1.0
3Version: 0.1.0
4+Synopsis: The Elm compiler and server.
5+Description: Elm aims to make client-side web-development more pleasant.
6+ It is a statically/strongly typed, functional reactive
7+ language to HTML, CSS, and JS. This package provides a
8+ compiler and server for Elm.
10
9
11−-- A short (one-line) description of the package.
12−Synopsis: The Elm compiler: compiles a statically/strongly typed, functional reactive language to HTML, CSS, and JS.
13−
14−-- A longer description of the package.
15−-- Description:
16−
17−-- URL for the project homepage or repository.
18Homepage: http://elm-lang.org
10Homepage: http://elm-lang.org
19
11
20−-- The license under which the package is released.
21License: BSD3
12License: BSD3
22−
23−-- The file containing the license text.
24License-file: LICENSE
13License-file: LICENSE
25
14
26−-- The package author(s).
27Author: Evan Czaplicki
15Author: Evan Czaplicki
28−
29−-- An email address to which users can send suggestions, bug reports,
30−-- and patches.
31Maintainer: info@elm-lang.org
16Maintainer: info@elm-lang.org
32−
17+Copyright: Copyright: (c) 2011-2012 Evan Czaplicki
33−-- A copyright notice.
34−-- Copyright:
35
18
36Category: Compiler
19Category: Compiler
37
20
38Build-type: Simple
21Build-type: Simple
39
22
40−-- Extra files to be distributed with the package, such as examples or
41−-- a README.
42Extra-source-files: README, elm-mini.js
23Extra-source-files: README, elm-mini.js
43−
44−-- Constraint on the version of Cabal needed to build this package.
45Cabal-version: >=1.2
24Cabal-version: >=1.2
46
25
47
26
src/Elm.hs+2−2
@@ -10,7 +10,7 @@ import Text.Blaze.Renderer.String
10main = getArgs >>= parse
10main = getArgs >>= parse
11
11
12parse ("--help":_) = putStrLn usage
12parse ("--help":_) = putStrLn usage
13−parse ("--version":_) = putStrLn "The Elm Compiler 0.1"
13+parse ("--version":_) = putStrLn "The Elm Compiler 0.1.0"
14parse [loc,file]
14parse [loc,file]
15 | "--runtime-location=" `isPrefixOf` loc =
15 | "--runtime-location=" `isPrefixOf` loc =
16 produceHtml (tail $ dropWhile (/='=') loc) file
16 produceHtml (tail $ dropWhile (/='=') loc) file
@@ -33,7 +33,7 @@ usageMini =
33usage =
33usage =
34 "Usage: elm [OPTIONS] FILE\n\
34 "Usage: elm [OPTIONS] FILE\n\
35 \Compile .elm files to .html files.\n\
35 \Compile .elm files to .html files.\n\
36− \Example: elm main.elm\n\
36+ \Example: elm --runtime-location=../elm-mini.js main.elm\n\
37 \\n\
37 \\n\
38 \Resource Locations:\n\
38 \Resource Locations:\n\
39 \ --runtime-location set the location of the Elm runtime (elm-mini.js)\n\
39 \ --runtime-location set the location of the Elm runtime (elm-mini.js)\n\
src/Server.hs+2−2
@@ -15,7 +15,7 @@ import ToHtml
15
15
16serve :: String -> IO ()
16serve :: String -> IO ()
17serve libLoc = do
17serve libLoc = do
18− putStrLn "Elm Server 0.1: running at <http://localhost:8000>"
18+ putStrLn "Elm Server 0.1.0: running at <http://localhost:8000>"
19 simpleHTTP nullConf $ do
19 simpleHTTP nullConf $ do
20 compressedResponseFilter
20 compressedResponseFilter
21 msum [ uriRest (serveElm libLoc)
21 msum [ uriRest (serveElm libLoc)
@@ -32,7 +32,7 @@ serveElm libLoc fp = do
32main = getArgs >>= parse
32main = getArgs >>= parse
33
33
34parse ("--help":_) = putStrLn usage
34parse ("--help":_) = putStrLn usage
35−parse ("--version":_) = putStrLn "The Elm Server 0.1"
35+parse ("--version":_) = putStrLn "The Elm Server 0.1.0"
36parse [] = serve "/elm-mini.js"
36parse [] = serve "/elm-mini.js"
37parse [arg]
37parse [arg]
38 | "--runtime-location=" `isPrefixOf` arg =
38 | "--runtime-location=" `isPrefixOf` arg =