on master help sign in
Correct optimization of if expressions
commitec8e787f0d00cc2e645f1bbc7ddf029c49c7e0db authorEvan Czaplicki <info@elm-lang.org> dateFri 13 Sep 2013, 01:05 (13 years ago) parent872d9ac
1 file changed+1−1
compiler/Generate/JavaScript.hs+1−1
compiler/Generate/JavaScript.hs+1−1
@@ -157,7 +157,7 @@ expression (L span expr) =
157157 MultiIf branches ->
158158 do branches' <- forM branches $ \(b,e) -> (,) <$> expression b <*> expression e
159159 return $ case last branches of
160− (L _ (Var "otherwise"), e) -> ifs (init branches') (snd (last branches'))
160+ (L _ (Var "Basics.otherwise"), e) -> ifs (init branches') (snd (last branches'))
161161 _ -> ifs branches'
162162 (obj "_E.If" `call` [ ref "$moduleName", string (show span) ])
163163 where