fix: warning message
This commit is contained in:
parent
7793f1597a
commit
bed95814a4
@ -40,7 +40,7 @@ instance (RowToList r (Cons k v tailrl), IsSymbol k, ReadCSV v, Lacks k tail, Co
|
|||||||
readCSVRecord cols vals = do
|
readCSVRecord cols vals = do
|
||||||
let
|
let
|
||||||
k = reflectSymbol (Proxy @k)
|
k = reflectSymbol (Proxy @k)
|
||||||
pos <- liftMaybe (pure $ ForeignError $ "row too long; did not expect value " <> k) $ Map.lookup k cols
|
pos <- liftMaybe (pure $ ForeignError $ "reached end of row looking for column " <> k) $ Map.lookup k cols
|
||||||
let valraw = fromMaybe "" $ Array.index vals pos
|
let valraw = fromMaybe "" $ Array.index vals pos
|
||||||
val <- readCSV @v valraw
|
val <- readCSV @v valraw
|
||||||
tail <- readCSVRecord @tail @tailrl cols vals
|
tail <- readCSVRecord @tail @tailrl cols vals
|
||||||
|
Loading…
Reference in New Issue
Block a user