1 {-# LANGUAGE DeriveDataTypeable #-}
2 {-# OPTIONS_GHC -fno-warn-orphans #-}
3 module Hcompta.Model.Journal where
6 import qualified Data.Map.Strict as Data.Map
7 import Data.Typeable ()
8 import qualified Data.Foldable
9 import Data.Foldable (Foldable)
11 import qualified Hcompta.Model.Transaction as Transaction
15 { transactions :: Transaction.By_Date
16 } deriving (Data, Eq, Read, Show, Typeable)
21 { transactions = Data.Map.empty
24 union :: Journal -> Journal -> Journal
33 { transactions = Data.Map.unionWith (++) t0 t1
36 unions :: Foldable t => t Journal -> Journal
39 Hcompta.Model.Journal.union
40 Hcompta.Model.Journal.nil