Skip to content

Commit e0df8fc

Browse files
committed
Fix non-exhaustive lambda
1 parent a7fdc05 commit e0df8fc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

csv-enumerator.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: csv-enumerator
2-
Version: 0.10.1.1
2+
Version: 0.10.1.2
33
Synopsis: A flexible, fast, enumerator-based CSV parser library for Haskell.
44
Homepage: http://github.com/ozataman/csv-enumerator
55
License: BSD3

src/Data/CSV/Enumerator.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ instance CSVeable MapRow where
211211
loop (headers, a)
212212

213213
-- Fill headers if not yet filled
214-
procRow [] !acc' = rowParser csvs >>= (\(Just hs) -> loop (hs, acc'))
214+
procRow [] !acc' = do
215+
r <- rowParser csvs
216+
case r of
217+
Nothing -> loop ([], acc')
218+
Just hs -> loop (hs, acc')
215219

216220
-- Process starting w/ the second row
217221
procRow !headers !acc' = rowParser csvs >>=

0 commit comments

Comments
 (0)