@@ -147,7 +147,7 @@ instance ToJS a => ToJS [a] where
147147 toJS xs = concat `liftM` mapM toJS xs
148148
149149toJS' :: LExpr t v -> Unique String
150−toJS' (L txt span expr) =
150+toJS' (L span expr) =
151151 case expr of
152152 MultiIf ps -> multiIfToJS span ps
153153 Case e cases -> caseToJS span e cases
@@ -211,7 +211,7 @@ instance ToJS (Expr t v) where
211211
212212 (patterns, innerBody) = collect [p] e
213213
214− collect patterns lexpr@(L a b expr) =
214+ collect patterns lexpr@(L _ expr) =
215215 case expr of
216216 Lambda p e -> collect (p:patterns) e
217217 _ -> (patterns, lexpr)
@@ -245,7 +245,7 @@ jsApp e1 e2 =
245245 (func, args) = go [e2] e1
246246 go args e =
247247 case e of
248− (L _ _ (App e1 e2)) -> go (e2 : args) e1
248+ (L _ (App e1 e2)) -> go (e2 : args) e1
249249 _ -> (e, args)
250250
251251formatMarkdown = concatMap f
@@ -256,7 +256,7 @@ formatMarkdown = concatMap f
256256
257257multiIfToJS span ps =
258258 case last ps of
259− (L _ _ (Var "otherwise"), e) -> toJS' e >>= \b -> format b (init ps)
259+ (L _ (Var "otherwise"), e) -> toJS' e >>= \b -> format b (init ps)
260260 _ -> format ("_E.If" ++ parens (quoted (show span))) ps
261261 where
262262 format base ps =
@@ -273,9 +273,9 @@ caseToJS span e ps = do
273273 match <- caseToMatch ps
274274 e' <- toJS' e
275275 let (match',stmt) = case (match,e) of
276− (Match name _ _, L _ _ (Var x)) -> (matchSubst [(name,deprime x)] match, "")
277− (Match name _ _, _) -> (match, assign name e')
278− _ -> (match, "")
276+ (Match name _ _, L _ (Var x)) -> (matchSubst [(name,deprime x)] match, "")
277+ (Match name _ _, _) -> (match, assign name e')
278+ _ -> (match, "")
279279 matches <- matchToJS span match'
280280 return $ "function(){ " ++ stmt ++ matches ++ " }()"
281281