packages feed

cointracking-imports 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+16/−2 lines, 3 filesdep ~xlsxPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: xlsx

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ # CHANGELOG +## master+++## v0.1.0.1++* Remove newlines at end of generated CSV files to fix non-fatal errors when+  importing into CoinTracking.++ ## v0.1.0.0  * Initial release
cointracking-imports.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           cointracking-imports-version:        0.1.0.0+version:        0.1.0.1 synopsis:       Generate CSV & XLSX files for importing into CoinTracking. description:    @cointracking-imports@ is a library for generating CSV & XLSX files to use                 with <https://cointracking.info CoinTracking>'s Import feature. You
src/Web/CoinTracking/Imports.hs view
@@ -65,8 +65,13 @@  -- | Generate the CoinTracking CSV Import for the data, prepended by -- a header row.+--+-- Note: the resulting 'LBS.ByteString' has it's final newline removed, as+-- CoinTracking's Import creates a double entry with newlines at the end of+-- an import file. coinTrackingCsvImport :: [CTImportData] -> LBS.ByteString-coinTrackingCsvImport = (headerRow <>) . encodeWith csvEncodingOptions+coinTrackingCsvImport =+    (headerRow <>) . LBC.init . encodeWith csvEncodingOptions  -- | The CSV header row to prepend to the generated output. headerRow :: LBS.ByteString