prikhi / cointracking-imports

A Haskell Library for Generating CSV & XLSX Files for CoinTracking Imports.
https://hackage.haskell.org/package/cointracking-imports
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

xlsx-1.1.0 breaks cointracking-imports #1

Closed juhp closed 2 years ago

juhp commented 2 years ago

Noticed in the Stackage Nightly build:

Building library for cointracking-imports-0.1.0.1..                                                                     [100/196208]
[2 of 3] Compiling Web.CoinTracking.Imports                    

/var/stackage/work/unpack-dir/unpacked/cointracking-imports-0.1.0.1-d3824ff54309620e0c8c1d497ec4c36a7c6e8191800662d1aa36c84bc3512b37
/src/Web/CoinTracking/Imports.hs:145:45: error:                                                                                         • Couldn't match expected type ‘Codec.Xlsx.Types.Common.ColumnIndex’
                  with actual type ‘Int’                                                                                            
    • In the expression: c                                                                                                          
      In the first argument of ‘cellValueAt’, namely ‘(2, c)’     
      In the first argument of ‘(?~)’, namely ‘cellValueAt (2, c)’                                                                  
    |                                                                                                                               
145 |     writeColumn c t s = s & cellValueAt (2, c) ?~ CellText t                                                                  
    |                                             ^            

/var/stackage/work/unpack-dir/unpacked/cointracking-imports-0.1.0.1-d3824ff54309620e0c8c1d497ec4c36a7c6e8191800662d1aa36c84bc3512b37
/src/Web/CoinTracking/Imports.hs:152:25: error:
    • Couldn't match expected type ‘Codec.Xlsx.Types.Common.RowIndex’
                  with actual type ‘Int’
    • In the expression: row
      In the first argument of ‘cellValueAt’, namely ‘(row, 1)’
      In the first argument of ‘(?~)’, namely ‘cellValueAt (row, 1)’
    |
152 |         & (cellValueAt (row, 1) ?~ CellText (renderTransactionType ctidType))
    |                         ^^^ 

/var/stackage/work/unpack-dir/unpacked/cointracking-imports-0.1.0.1-d3824ff54309620e0c8c1d497ec4c36a7c6e8191800662d1aa36c84bc3512b37
/src/Web/CoinTracking/Imports.hs:153:25: error:
    • Couldn't match expected type ‘Codec.Xlsx.Types.Common.RowIndex’
                  with actual type ‘Int’
    • In the expression: row
      In the first argument of ‘cellValueAt’, namely ‘(row, 2)’
      In the first argument of ‘(.~)’, namely ‘cellValueAt (row, 2)’
    |
153 |         & (cellValueAt (row, 2) .~ renderAmount ctidBuy)
    |                         ^^^ 

/var/stackage/work/unpack-dir/unpacked/cointracking-imports-0.1.0.1-d3824ff54309620e0c8c1d497ec4c36a7c6e8191800662d1aa36c84bc3512b37
/src/Web/CoinTracking/Imports.hs:154:25: error:
    • Couldn't match expected type ‘Codec.Xlsx.Types.Common.RowIndex’
                  with actual type ‘Int’
    • In the expression: row
      In the first argument of ‘cellValueAt’, namely ‘(row, 3)’
: 
prikhi commented 2 years ago

Thanks, fixed in dc16992f6b0f27d90e7691413c9c29d5ebaa3145 & released as v0.1.0.2