1 {-# LANGUAGE DeriveDataTypeable #-}
2 {-# OPTIONS_GHC -fno-warn-orphans #-}
3 module Hcompta.Model.Transaction where
6 import qualified Data.Foldable
7 import qualified Data.List
8 import qualified Data.Map
9 import Data.Typeable ()
10 import Text.Parsec.Pos (SourcePos, initialPos)
12 import qualified Hcompta.Model.Date as Date
13 import Hcompta.Model.Date (Date)
14 import qualified Hcompta.Model.Transaction.Posting as Posting
15 import qualified Hcompta.Model.Transaction.Tag as Tag
16 import qualified Hcompta.Model.Amount as Amount
17 import qualified Hcompta.Model.Amount.Unit as Unit
19 -- * The 'Transaction' type
27 , description :: String
28 , postings :: Posting.By_Account
29 , preceding_comment_lines :: String
30 , sourcepos :: SourcePos
33 } deriving (Data, Eq, Read, Show, Typeable)
35 -- * Types to submodules
37 type Posting = Posting.Posting