changed types of encodeCSV and encodeRawCSV

...to be more generic, the type now allows the to take any kind of input
This commit is contained in:
Jonathan Lamothe 2022-04-24 22:14:30 -04:00
parent c1e9fb7b8e
commit 22b6942900

View File

@ -153,7 +153,7 @@ encodeCSV
:: Monad m
=> [[T.Text]]
-- ^ the data being encoded, organized into rows and fields
-> ConduitT () BS.ByteString m ()
-> ConduitT o BS.ByteString m ()
encodeCSV csv = sourceList csv .| encodeRows
-- | encode an entire CSV file
@ -161,7 +161,7 @@ encodeRawCSV
:: Monad m
=> [[BS.ByteString]]
-- ^ the data being encoded, organized into rows and fields
-> ConduitT () BS.ByteString m ()
-> ConduitT o BS.ByteString m ()
encodeRawCSV csv = sourceList csv .| encodeRawRows
-- | Writes a stream of Text-based rows to a CSV file