@@ -202,12 +202,12 @@ makeRecord kvs = record `liftM` collect kvs
202instance ToJS Expr where
202instance ToJS Expr where
203 toJS expr =
203 toJS expr =
204 case expr of
204 case expr of
205− IntNum n -> return $ show n
206− FloatNum n -> return $ show n
207 Var x -> return $ x
205 Var x -> return $ x
208 Chr c -> return $ quoted [c]
206 Chr c -> return $ quoted [c]
209 Str s -> return $ "_str" ++ parens (quoted s)
207 Str s -> return $ "_str" ++ parens (quoted s)
208+ IntNum n -> return $ show n
209+ FloatNum n -> return $ show n
210− Boolean b -> return $ if b then "true" else "false"
210+ Boolean b -> return $ if b then "true" else "false"
211 Range lo hi -> jsRange `liftM` toJS' lo `ap` toJS' hi
211 Range lo hi -> jsRange `liftM` toJS' lo `ap` toJS' hi
212 Access e x -> access x `liftM` toJS' e
212 Access e x -> access x `liftM` toJS' e
213 Remove e x -> remove x `liftM` toJS' e
213 Remove e x -> remove x `liftM` toJS' e