aboutsummaryrefslogtreecommitdiff
path: root/Utility/JSONStream.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-20 23:24:48 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-20 23:24:48 -0400
commit9f6b7935ddb3d5dcbe0b4b784dc8acd7288ddba6 (patch)
tree8b87227689a603d09ad9fdfd010b2a3b648c1a2f /Utility/JSONStream.hs
parent9d26192350b9c7b0402720f6f29c99c24748f364 (diff)
go go gadget hlint
Diffstat (limited to 'Utility/JSONStream.hs')
-rw-r--r--Utility/JSONStream.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/JSONStream.hs b/Utility/JSONStream.hs
index af3766948..7910c1194 100644
--- a/Utility/JSONStream.hs
+++ b/Utility/JSONStream.hs
@@ -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