diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-03-20 03:25:33 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-03-20 03:25:33 +0400 |
commit | 3eca16f348ec4d12fb925f6065c4204ad5bef98a (patch) | |
tree | 03c4777c97d42fd9c4d280086e8bc6d28051766b | |
parent | 95f519df298c98d966c6408cac33cdd57b8e8a03 (diff) |
Fix bug in mapWhile function
-rw-r--r-- | src/Data/Torrent/JSON.hs | 2 |
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 | ||
35 | omitRecordPrefix :: Options | 35 | omitRecordPrefix :: Options |
36 | omitRecordPrefix = omitLensPrefix | 36 | omitRecordPrefix = omitLensPrefix |