Skip to content

Commit

Permalink
trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Oct 14, 2009
1 parent 3aefc5f commit 4077e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CodeSnippet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ parse input = do
else let (typ, var) = (init idents, last idents)
in parseDecl typ var rest
where
parseDecl typ var ((npos, Punct "("):rest) =
parseDecl typ var ((npos, Punct "("):rest) =
case dropWhile (\(_,tok) -> tok /= Punct ")") rest of
(rparen:(next,_):rest) ->
return $ FunDecl (substr Nothing (Just next) input)
(substr (Just next) Nothing input)
_ -> Left $ "couldn't find rparen"
_ -> Left $ "couldn't find rparen"
parseDecl typ var rest =
let nextpos = case rest of
((pos, tok):rest) | tok /= Punct ";" -> Just pos
Expand Down

0 comments on commit 4077e18

Please sign in to comment.