summaryrefslogtreecommitdiff
path: root/src/Data
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-03-20 03:25:33 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-03-20 03:25:33 +0400
commit3eca16f348ec4d12fb925f6065c4204ad5bef98a (patch)
tree03c4777c97d42fd9c4d280086e8bc6d28051766b /src/Data
parent95f519df298c98d966c6408cac33cdd57b8e8a03 (diff)
Fix bug in mapWhile function
Diffstat (limited to 'src/Data')
-rw-r--r--src/Data/Torrent/JSON.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Torrent/JSON.hs b/src/Data/Torrent/JSON.hs
index 71db3039..845b288a 100644
--- a/src/Data/Torrent/JSON.hs
+++ b/src/Data/Torrent/JSON.hs
@@ -30,7 +30,7 @@ mapWhile p f = go
30 go [] = [] 30 go [] = []
31 go (x : xs) 31 go (x : xs)
32 | p x = f x : go xs 32 | p x = f x : go xs
33 | otherwise = xs 33 | otherwise = x : xs
34 34
35omitRecordPrefix :: Options 35omitRecordPrefix :: Options
36omitRecordPrefix = omitLensPrefix 36omitRecordPrefix = omitLensPrefix