Merge branch 'master' of https://github.com/evancz/Elm into type-checker-improvements
commit89efcef64e6b0b1123bd5c4ac4159c5eefb7a5e0
authorevancz <info@elm-lang.org>
dateTue 28 May 2013, 14:08 (13 years ago)
parent8ae1d1122042e2
Elm.cabal+1−1
@@ -1,5 +1,5 @@
11Name: Elm
2−Version: 0.8.0.2
2+Version: 0.8.0.3
33Synopsis: The Elm language module.
44Description: Elm aims to make client-side web-development more pleasant.
55 It is a statically/strongly typed, functional reactive
compiler/Gen/CompileToJS.hs+2−1
@@ -272,7 +272,8 @@ jsLet defs e' = do ds <- jsDefs defs
272272 where
273273 jsDefs defs = mapM toJS (sortBy f defs)
274274 f a b = compare (valueOf a) (valueOf b)
275− valueOf (FnDef _ args _) = min 1 (length args)
275+ valueOf (FnDef _ [] _) = 2
276+ valueOf (FnDef _ _ _) = 1
276277 valueOf (OpDef _ _ _ _) = 1
277278
278279caseToJS span e ps = do