on master help sign in
Bump version number of Elm.

Exclude a couple more operators from being user defined.

commit66720b5dd2eb5a7181b8bc8bb7ec71ed3e2d6e69 authorevancz <info@elm-lang.org> dateSat 24 Nov 2012, 13:00 (14 years ago) parentb4d563d
2 files changed+5−5
elm/Elm.cabal+2−2 elm/src/Parse/Library.hs+3−3
elm/Elm.cabal+2−2
@@ -1,6 +1,6 @@
11
22Name: Elm
3−Version: 0.5.0.2
3+Version: 0.5.5
44Synopsis: The Elm language module.
55Description: Elm aims to make client-side web-development more pleasant.
66 It is a statically/strongly typed, functional reactive
@@ -22,7 +22,7 @@ Category: Compiler, Language
2222Build-type: Simple
2323
2424Extra-source-files: changelog.txt
25−Data-files: elm-runtime-0.5.0.2.js
25+Data-files: elm-runtime-0.5.5.js
2626Cabal-version: >=1.8
2727
2828source-repository head
elm/src/Parse/Library.hs+3−3
@@ -46,7 +46,7 @@ isOp c = isSymbol c || elem c "+-/*=.$<>:&|^?%#@~!"
4646
4747symOp :: (Monad m) => ParsecT [Char] u m String
4848symOp = do op <- many1 (satisfy isOp)
49− guard (op `notElem` [ "=", "..", "->", "--" ])
49+ guard (op `notElem` [ "=", "..", "->", "--", "|", "\8594" ])
5050 return op
5151
5252arrow :: (Monad m) => ParsecT [Char] u m String
@@ -91,9 +91,9 @@ betwixt a b c = do char a ; out <- c
9191 char b <?> "closing '" ++ [b] ++ "'" ; return out
9292
9393surround a z name p = do
94− char a ; whitespace ; a <- p ; whitespace
94+ char a ; whitespace ; v <- p ; whitespace
9595 char z <?> unwords ["closing", name, show z]
96− return a
96+ return v
9797
9898braces :: (Monad m) => ParsecT [Char] u m a -> ParsecT [Char] u m a
9999braces = surround '[' ']' "brace"