1 {-# LANGUAGE DeriveDataTypeable #-}
2 module Hcompta.Model.Filter where
5 import Data.Typeable ()
7 import qualified Hcompta.Model.Account as Account ()
8 import Hcompta.Model.Account (Account)
9 import qualified Hcompta.Model.Amount as Amount ()
10 import Hcompta.Model.Amount (Amount)
11 import qualified Hcompta.Model.Date as Date
13 -- * The 'Filter' type
16 = Account Comp_String Account
17 | Account_Tag Comp_String String (Maybe (Comp_String, String))
18 | Amount Comp_Num Comp_Num_Absolute Amount
21 | Balance Comp_Num Comp_Num_Absolute Amount
24 | Description Comp_String String
30 -- | Tag Comp_String Tag.Name (Maybe (Comp_String, Tag.Value))
31 | Unit Comp_String String
32 deriving (Data, Eq, Show, Typeable)
40 deriving (Data, Eq, Show, Typeable)
42 type Comp_Num_Absolute
48 deriving (Data, Eq, Show, Typeable)