Removed string conversions

This commit is contained in:
Luca Molteni 2018-06-20 14:01:12 +02:00
parent a14d0e099e
commit 8b2f386c2f
3 changed files with 1 additions and 8 deletions

View File

@ -74,8 +74,6 @@ import Hledger.Data
import Hledger.Utils
import Hledger.Read.Common (Reader(..),InputOpts(..),amountp, statusp, genericSourcePos)
import Data.String.Conversions
type CSV = [Record]
type Record = [Field]
@ -198,7 +196,7 @@ parseCassava path content =
Left msg -> Left $ CSVError msg
Right a -> Right a
where parseResult = fmap parseResultToCsv $ CassavaMP.decodeWith decodeOptions Cassava.NoHeader path lazyContent
lazyContent = cs $ T.encodeUtf8 content
lazyContent = BL.fromStrict $ T.encodeUtf8 content
decodeOptions :: Cassava.DecodeOptions
decodeOptions = Cassava.defaultDecodeOptions {

View File

@ -131,7 +131,6 @@ library
, regex-tdfa
, safe >=0.2
, split >=0.1
, string-conversions
, tabular >=0.2
, text >=1.2
, time >=1.5
@ -231,7 +230,6 @@ test-suite doctests
, regex-tdfa
, safe >=0.2
, split >=0.1
, string-conversions
, tabular >=0.2
, text >=1.2
, time >=1.5
@ -331,7 +329,6 @@ test-suite easytests
, regex-tdfa
, safe >=0.2
, split >=0.1
, string-conversions
, tabular >=0.2
, text >=1.2
, time >=1.5
@ -431,7 +428,6 @@ test-suite hunittests
, regex-tdfa
, safe >=0.2
, split >=0.1
, string-conversions
, tabular >=0.2
, test-framework
, test-framework-hunit

View File

@ -74,7 +74,6 @@ dependencies:
- uglymemo
- utf8-string >=0.3.5
- extra
- string-conversions
- Glob >= 0.9
# for ledger-parse:
#- parsers >=0.5