go go gadget hlint

This commit is contained in:
Joey Hess 2011-09-20 23:24:48 -04:00
parent 9d26192350
commit 9f6b7935dd
21 changed files with 35 additions and 37 deletions

View file

@ -19,7 +19,7 @@ import Text.JSON
later. -}
start :: JSON a => [(String, a)] -> String
start l
| last s == endchar = take (length s - 1) s
| last s == endchar = init s
| otherwise = bad s
where
s = encodeStrict $ toJSObject l