;lib: refactor: Data.Prices -> Data.Valuation
This commit is contained in:
parent
83030a09de
commit
69defd497f
@ -16,7 +16,6 @@ module Hledger.Data (
|
|||||||
module Hledger.Data.Dates,
|
module Hledger.Data.Dates,
|
||||||
module Hledger.Data.Journal,
|
module Hledger.Data.Journal,
|
||||||
module Hledger.Data.Ledger,
|
module Hledger.Data.Ledger,
|
||||||
module Hledger.Data.Prices,
|
|
||||||
module Hledger.Data.Period,
|
module Hledger.Data.Period,
|
||||||
module Hledger.Data.PeriodicTransaction,
|
module Hledger.Data.PeriodicTransaction,
|
||||||
module Hledger.Data.Posting,
|
module Hledger.Data.Posting,
|
||||||
@ -26,6 +25,7 @@ module Hledger.Data (
|
|||||||
module Hledger.Data.Transaction,
|
module Hledger.Data.Transaction,
|
||||||
module Hledger.Data.TransactionModifier,
|
module Hledger.Data.TransactionModifier,
|
||||||
module Hledger.Data.Types,
|
module Hledger.Data.Types,
|
||||||
|
module Hledger.Data.Valuation,
|
||||||
tests_Data
|
tests_Data
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
@ -37,7 +37,6 @@ import Hledger.Data.Commodity
|
|||||||
import Hledger.Data.Dates
|
import Hledger.Data.Dates
|
||||||
import Hledger.Data.Journal
|
import Hledger.Data.Journal
|
||||||
import Hledger.Data.Ledger
|
import Hledger.Data.Ledger
|
||||||
import Hledger.Data.Prices
|
|
||||||
import Hledger.Data.Period
|
import Hledger.Data.Period
|
||||||
import Hledger.Data.PeriodicTransaction
|
import Hledger.Data.PeriodicTransaction
|
||||||
import Hledger.Data.Posting
|
import Hledger.Data.Posting
|
||||||
@ -47,6 +46,7 @@ import Hledger.Data.Timeclock
|
|||||||
import Hledger.Data.Transaction
|
import Hledger.Data.Transaction
|
||||||
import Hledger.Data.TransactionModifier
|
import Hledger.Data.TransactionModifier
|
||||||
import Hledger.Data.Types
|
import Hledger.Data.Types
|
||||||
|
import Hledger.Data.Valuation
|
||||||
import Hledger.Utils.Test
|
import Hledger.Utils.Test
|
||||||
|
|
||||||
tests_Data = tests "Data" [
|
tests_Data = tests "Data" [
|
||||||
@ -55,7 +55,7 @@ tests_Data = tests "Data" [
|
|||||||
,tests_Journal
|
,tests_Journal
|
||||||
,tests_Ledger
|
,tests_Ledger
|
||||||
,tests_Posting
|
,tests_Posting
|
||||||
,tests_Prices
|
,tests_Valuation
|
||||||
,tests_StringFormat
|
,tests_StringFormat
|
||||||
,tests_Timeclock
|
,tests_Timeclock
|
||||||
,tests_Transaction
|
,tests_Transaction
|
||||||
|
|||||||
@ -116,7 +116,6 @@ import Hledger.Data.Types
|
|||||||
import Hledger.Data.AccountName
|
import Hledger.Data.AccountName
|
||||||
import Hledger.Data.Amount
|
import Hledger.Data.Amount
|
||||||
import Hledger.Data.Dates
|
import Hledger.Data.Dates
|
||||||
-- import Hledger.Data.Prices
|
|
||||||
import Hledger.Data.Transaction
|
import Hledger.Data.Transaction
|
||||||
import Hledger.Data.TransactionModifier
|
import Hledger.Data.TransactionModifier
|
||||||
import Hledger.Data.Posting
|
import Hledger.Data.Posting
|
||||||
|
|||||||
@ -87,7 +87,7 @@ import Hledger.Data.Types
|
|||||||
import Hledger.Data.Amount
|
import Hledger.Data.Amount
|
||||||
import Hledger.Data.AccountName
|
import Hledger.Data.AccountName
|
||||||
import Hledger.Data.Dates (nulldate, spanContainsDate)
|
import Hledger.Data.Dates (nulldate, spanContainsDate)
|
||||||
import Hledger.Data.Prices
|
import Hledger.Data.Valuation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ looking up historical market prices (exchange rates) between commodities.
|
|||||||
{-# LANGUAGE RecordWildCards #-}
|
{-# LANGUAGE RecordWildCards #-}
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
{-# LANGUAGE ScopedTypeVariables #-}
|
||||||
|
|
||||||
module Hledger.Data.Prices (
|
module Hledger.Data.Valuation (
|
||||||
amountValueAtDate
|
amountValueAtDate
|
||||||
,amountApplyValuation
|
,amountApplyValuation
|
||||||
,mixedAmountValueAtDate
|
,mixedAmountValueAtDate
|
||||||
@ -18,7 +18,7 @@ module Hledger.Data.Prices (
|
|||||||
,marketPriceReverse
|
,marketPriceReverse
|
||||||
,priceDirectiveToMarketPrice
|
,priceDirectiveToMarketPrice
|
||||||
,priceLookup
|
,priceLookup
|
||||||
,tests_Prices
|
,tests_Valuation
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ import Hledger.Data.Amount
|
|||||||
import Hledger.Data.Dates (parsedate)
|
import Hledger.Data.Dates (parsedate)
|
||||||
|
|
||||||
|
|
||||||
tests_Prices = tests "Prices" [
|
tests_Valuation = tests "Valuation" [
|
||||||
tests_priceLookup
|
tests_priceLookup
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -58,7 +58,6 @@ library
|
|||||||
Hledger.Data.Dates
|
Hledger.Data.Dates
|
||||||
Hledger.Data.Journal
|
Hledger.Data.Journal
|
||||||
Hledger.Data.Ledger
|
Hledger.Data.Ledger
|
||||||
Hledger.Data.Prices
|
|
||||||
Hledger.Data.Period
|
Hledger.Data.Period
|
||||||
Hledger.Data.PeriodicTransaction
|
Hledger.Data.PeriodicTransaction
|
||||||
Hledger.Data.StringFormat
|
Hledger.Data.StringFormat
|
||||||
@ -68,6 +67,7 @@ library
|
|||||||
Hledger.Data.Transaction
|
Hledger.Data.Transaction
|
||||||
Hledger.Data.TransactionModifier
|
Hledger.Data.TransactionModifier
|
||||||
Hledger.Data.Types
|
Hledger.Data.Types
|
||||||
|
Hledger.Data.Valuation
|
||||||
Hledger.Query
|
Hledger.Query
|
||||||
Hledger.Read
|
Hledger.Read
|
||||||
Hledger.Read.Common
|
Hledger.Read.Common
|
||||||
@ -163,13 +163,13 @@ test-suite doctests
|
|||||||
Hledger.Data.Period
|
Hledger.Data.Period
|
||||||
Hledger.Data.PeriodicTransaction
|
Hledger.Data.PeriodicTransaction
|
||||||
Hledger.Data.Posting
|
Hledger.Data.Posting
|
||||||
Hledger.Data.Prices
|
|
||||||
Hledger.Data.RawOptions
|
Hledger.Data.RawOptions
|
||||||
Hledger.Data.StringFormat
|
Hledger.Data.StringFormat
|
||||||
Hledger.Data.Timeclock
|
Hledger.Data.Timeclock
|
||||||
Hledger.Data.Transaction
|
Hledger.Data.Transaction
|
||||||
Hledger.Data.TransactionModifier
|
Hledger.Data.TransactionModifier
|
||||||
Hledger.Data.Types
|
Hledger.Data.Types
|
||||||
|
Hledger.Data.Valuation
|
||||||
Hledger.Query
|
Hledger.Query
|
||||||
Hledger.Read
|
Hledger.Read
|
||||||
Hledger.Read.Common
|
Hledger.Read.Common
|
||||||
@ -266,13 +266,13 @@ test-suite easytests
|
|||||||
Hledger.Data.Period
|
Hledger.Data.Period
|
||||||
Hledger.Data.PeriodicTransaction
|
Hledger.Data.PeriodicTransaction
|
||||||
Hledger.Data.Posting
|
Hledger.Data.Posting
|
||||||
Hledger.Data.Prices
|
|
||||||
Hledger.Data.RawOptions
|
Hledger.Data.RawOptions
|
||||||
Hledger.Data.StringFormat
|
Hledger.Data.StringFormat
|
||||||
Hledger.Data.Timeclock
|
Hledger.Data.Timeclock
|
||||||
Hledger.Data.Transaction
|
Hledger.Data.Transaction
|
||||||
Hledger.Data.TransactionModifier
|
Hledger.Data.TransactionModifier
|
||||||
Hledger.Data.Types
|
Hledger.Data.Types
|
||||||
|
Hledger.Data.Valuation
|
||||||
Hledger.Query
|
Hledger.Query
|
||||||
Hledger.Read
|
Hledger.Read
|
||||||
Hledger.Read.Common
|
Hledger.Read.Common
|
||||||
|
|||||||
@ -111,7 +111,6 @@ library:
|
|||||||
- Hledger.Data.Dates
|
- Hledger.Data.Dates
|
||||||
- Hledger.Data.Journal
|
- Hledger.Data.Journal
|
||||||
- Hledger.Data.Ledger
|
- Hledger.Data.Ledger
|
||||||
- Hledger.Data.Prices
|
|
||||||
- Hledger.Data.Period
|
- Hledger.Data.Period
|
||||||
- Hledger.Data.PeriodicTransaction
|
- Hledger.Data.PeriodicTransaction
|
||||||
- Hledger.Data.StringFormat
|
- Hledger.Data.StringFormat
|
||||||
@ -121,6 +120,7 @@ library:
|
|||||||
- Hledger.Data.Transaction
|
- Hledger.Data.Transaction
|
||||||
- Hledger.Data.TransactionModifier
|
- Hledger.Data.TransactionModifier
|
||||||
- Hledger.Data.Types
|
- Hledger.Data.Types
|
||||||
|
- Hledger.Data.Valuation
|
||||||
- Hledger.Query
|
- Hledger.Query
|
||||||
- Hledger.Read
|
- Hledger.Read
|
||||||
- Hledger.Read.Common
|
- Hledger.Read.Common
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user