mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
promote Hledger.Query to second level
This commit is contained in:
parent
91aae589ce
commit
294a350993
@ -1,6 +1,6 @@
|
||||
module Hledger (
|
||||
module Hledger.Data
|
||||
,module Hledger.Data.Query
|
||||
,module Hledger.Query
|
||||
,module Hledger.Read
|
||||
,module Hledger.Reports
|
||||
,module Hledger.Utils
|
||||
@ -10,7 +10,7 @@ where
|
||||
import Test.HUnit
|
||||
|
||||
import Hledger.Data
|
||||
import Hledger.Data.Query
|
||||
import Hledger.Query
|
||||
import Hledger.Read hiding (samplejournal)
|
||||
import Hledger.Reports
|
||||
import Hledger.Utils
|
||||
@ -18,7 +18,7 @@ import Hledger.Utils
|
||||
tests_Hledger = TestList
|
||||
[
|
||||
tests_Hledger_Data
|
||||
,tests_Hledger_Data_Query
|
||||
,tests_Hledger_Query
|
||||
,tests_Hledger_Read
|
||||
,tests_Hledger_Reports
|
||||
]
|
||||
|
@ -73,7 +73,7 @@ import Hledger.Data.Dates
|
||||
import Hledger.Data.Transaction
|
||||
import Hledger.Data.Posting
|
||||
import Hledger.Data.TimeLog
|
||||
import Hledger.Data.Query
|
||||
import Hledger.Query
|
||||
|
||||
|
||||
instance Show Journal where
|
||||
|
@ -20,7 +20,7 @@ import Hledger.Data.Account (nullacct)
|
||||
import Hledger.Data.AccountName
|
||||
import Hledger.Data.Journal
|
||||
import Hledger.Data.Posting
|
||||
import Hledger.Data.Query
|
||||
import Hledger.Query
|
||||
|
||||
|
||||
instance Show Ledger where
|
||||
|
@ -5,7 +5,7 @@ transactions..) by various criteria, and a parser for query expressions.
|
||||
|
||||
-}
|
||||
|
||||
module Hledger.Data.Query (
|
||||
module Hledger.Query (
|
||||
-- * Query and QueryOpt
|
||||
Query(..),
|
||||
QueryOpt(..),
|
||||
@ -29,7 +29,7 @@ module Hledger.Data.Query (
|
||||
matchesPosting,
|
||||
matchesTransaction,
|
||||
-- * tests
|
||||
tests_Hledger_Data_Query
|
||||
tests_Hledger_Query
|
||||
)
|
||||
where
|
||||
import Data.Either
|
||||
@ -561,8 +561,8 @@ postingEffectiveDate p = maybe Nothing (Just . transactionEffectiveDate) $ ptran
|
||||
|
||||
-- tests
|
||||
|
||||
tests_Hledger_Data_Query :: Test
|
||||
tests_Hledger_Data_Query = TestList $
|
||||
tests_Hledger_Query :: Test
|
||||
tests_Hledger_Query = TestList $
|
||||
tests_simplifyQuery
|
||||
++ tests_words''
|
||||
++ tests_filterQuery
|
@ -63,7 +63,7 @@ import Text.Printf
|
||||
|
||||
import Hledger.Data
|
||||
import Hledger.Read (amount')
|
||||
import Hledger.Data.Query
|
||||
import Hledger.Query
|
||||
import Hledger.Utils
|
||||
|
||||
-- | Standard options for customising report filtering and output,
|
||||
|
@ -46,7 +46,7 @@ library
|
||||
Hledger.Data.TimeLog
|
||||
Hledger.Data.Transaction
|
||||
Hledger.Data.Types
|
||||
Hledger.Data.Query
|
||||
Hledger.Query
|
||||
Hledger.Read
|
||||
Hledger.Read.CsvReader
|
||||
Hledger.Read.JournalReader
|
||||
|
@ -14,7 +14,7 @@ import Text.Printf
|
||||
import Hledger.Cli.Options
|
||||
import Hledger.Data
|
||||
import Hledger.Reports
|
||||
import Hledger.Data.Query
|
||||
import Hledger.Query
|
||||
import Prelude hiding (putStr)
|
||||
import Hledger.Utils.UTF8IOCompat (putStr)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user