Change version numbers and updated .cabal file.

This commit is contained in:
evancz 2012-04-25 01:52:06 -04:00
parent 62640abe29
commit c0860aaf7c
3 changed files with 11 additions and 32 deletions

View file

@ -1,47 +1,26 @@
-- Elm.cabal auto-generated by cabal init. For additional options, see
-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
-- The name of the package.
Name: Elm Name: Elm
-- The package version. See the Haskell package versioning policy
-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
-- standards guiding when and how versions should be incremented.
Version: 0.1.0 Version: 0.1.0
Synopsis: The Elm compiler and server.
Description: Elm aims to make client-side web-development more pleasant.
It is a statically/strongly typed, functional reactive
language to HTML, CSS, and JS. This package provides a
compiler and server for Elm.
-- A short (one-line) description of the package.
Synopsis: The Elm compiler: compiles a statically/strongly typed, functional reactive language to HTML, CSS, and JS.
-- A longer description of the package.
-- Description:
-- URL for the project homepage or repository.
Homepage: http://elm-lang.org Homepage: http://elm-lang.org
-- The license under which the package is released.
License: BSD3 License: BSD3
-- The file containing the license text.
License-file: LICENSE License-file: LICENSE
-- The package author(s).
Author: Evan Czaplicki Author: Evan Czaplicki
-- An email address to which users can send suggestions, bug reports,
-- and patches.
Maintainer: info@elm-lang.org Maintainer: info@elm-lang.org
Copyright: Copyright: (c) 2011-2012 Evan Czaplicki
-- A copyright notice.
-- Copyright:
Category: Compiler Category: Compiler
Build-type: Simple Build-type: Simple
-- Extra files to be distributed with the package, such as examples or
-- a README.
Extra-source-files: README, elm-mini.js Extra-source-files: README, elm-mini.js
-- Constraint on the version of Cabal needed to build this package.
Cabal-version: >=1.2 Cabal-version: >=1.2

View file

@ -10,7 +10,7 @@ import Text.Blaze.Renderer.String
main = getArgs >>= parse main = getArgs >>= parse
parse ("--help":_) = putStrLn usage parse ("--help":_) = putStrLn usage
parse ("--version":_) = putStrLn "The Elm Compiler 0.1" parse ("--version":_) = putStrLn "The Elm Compiler 0.1.0"
parse [loc,file] parse [loc,file]
| "--runtime-location=" `isPrefixOf` loc = | "--runtime-location=" `isPrefixOf` loc =
produceHtml (tail $ dropWhile (/='=') loc) file produceHtml (tail $ dropWhile (/='=') loc) file
@ -33,7 +33,7 @@ usageMini =
usage = usage =
"Usage: elm [OPTIONS] FILE\n\ "Usage: elm [OPTIONS] FILE\n\
\Compile .elm files to .html files.\n\ \Compile .elm files to .html files.\n\
\Example: elm main.elm\n\ \Example: elm --runtime-location=../elm-mini.js main.elm\n\
\\n\ \\n\
\Resource Locations:\n\ \Resource Locations:\n\
\ --runtime-location set the location of the Elm runtime (elm-mini.js)\n\ \ --runtime-location set the location of the Elm runtime (elm-mini.js)\n\

View file

@ -15,7 +15,7 @@ import ToHtml
serve :: String -> IO () serve :: String -> IO ()
serve libLoc = do serve libLoc = do
putStrLn "Elm Server 0.1: running at <http://localhost:8000>" putStrLn "Elm Server 0.1.0: running at <http://localhost:8000>"
simpleHTTP nullConf $ do simpleHTTP nullConf $ do
compressedResponseFilter compressedResponseFilter
msum [ uriRest (serveElm libLoc) msum [ uriRest (serveElm libLoc)
@ -32,7 +32,7 @@ serveElm libLoc fp = do
main = getArgs >>= parse main = getArgs >>= parse
parse ("--help":_) = putStrLn usage parse ("--help":_) = putStrLn usage
parse ("--version":_) = putStrLn "The Elm Server 0.1" parse ("--version":_) = putStrLn "The Elm Server 0.1.0"
parse [] = serve "/elm-mini.js" parse [] = serve "/elm-mini.js"
parse [arg] parse [arg]
| "--runtime-location=" `isPrefixOf` arg = | "--runtime-location=" `isPrefixOf` arg =