Change version numbers and updated .cabal file.
This commit is contained in:
parent
62640abe29
commit
c0860aaf7c
3 changed files with 11 additions and 32 deletions
35
Elm.cabal
35
Elm.cabal
|
@ -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
|
||||
|
||||
-- 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
|
||||
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
|
||||
|
||||
-- The license under which the package is released.
|
||||
License: BSD3
|
||||
|
||||
-- The file containing the license text.
|
||||
License-file: LICENSE
|
||||
|
||||
-- The package author(s).
|
||||
Author: Evan Czaplicki
|
||||
|
||||
-- An email address to which users can send suggestions, bug reports,
|
||||
-- and patches.
|
||||
Maintainer: info@elm-lang.org
|
||||
|
||||
-- A copyright notice.
|
||||
-- Copyright:
|
||||
Copyright: Copyright: (c) 2011-2012 Evan Czaplicki
|
||||
|
||||
Category: Compiler
|
||||
|
||||
Build-type: Simple
|
||||
|
||||
-- Extra files to be distributed with the package, such as examples or
|
||||
-- a README.
|
||||
Extra-source-files: README, elm-mini.js
|
||||
|
||||
-- Constraint on the version of Cabal needed to build this package.
|
||||
Cabal-version: >=1.2
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import Text.Blaze.Renderer.String
|
|||
main = getArgs >>= parse
|
||||
|
||||
parse ("--help":_) = putStrLn usage
|
||||
parse ("--version":_) = putStrLn "The Elm Compiler 0.1"
|
||||
parse ("--version":_) = putStrLn "The Elm Compiler 0.1.0"
|
||||
parse [loc,file]
|
||||
| "--runtime-location=" `isPrefixOf` loc =
|
||||
produceHtml (tail $ dropWhile (/='=') loc) file
|
||||
|
@ -33,7 +33,7 @@ usageMini =
|
|||
usage =
|
||||
"Usage: elm [OPTIONS] FILE\n\
|
||||
\Compile .elm files to .html files.\n\
|
||||
\Example: elm main.elm\n\
|
||||
\Example: elm --runtime-location=../elm-mini.js main.elm\n\
|
||||
\\n\
|
||||
\Resource Locations:\n\
|
||||
\ --runtime-location set the location of the Elm runtime (elm-mini.js)\n\
|
||||
|
|
|
@ -15,7 +15,7 @@ import ToHtml
|
|||
|
||||
serve :: String -> IO ()
|
||||
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
|
||||
compressedResponseFilter
|
||||
msum [ uriRest (serveElm libLoc)
|
||||
|
@ -32,7 +32,7 @@ serveElm libLoc fp = do
|
|||
main = getArgs >>= parse
|
||||
|
||||
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 [arg]
|
||||
| "--runtime-location=" `isPrefixOf` arg =
|
||||
|
|
Loading…
Reference in a new issue