mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 18:29:36 +03:00
Removed string conversions
This commit is contained in:
parent
a14d0e099e
commit
8b2f386c2f
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -74,7 +74,6 @@ dependencies:
|
||||
- uglymemo
|
||||
- utf8-string >=0.3.5
|
||||
- extra
|
||||
- string-conversions
|
||||
- Glob >= 0.9
|
||||
# for ledger-parse:
|
||||
#- parsers >=0.5
|
||||
|
Loading…
Reference in New Issue
Block a user