aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJoris2019-10-20 21:31:57 +0200
committerJoris2019-10-20 21:31:57 +0200
commit602c52acfcfa494b07fec05c20b317b60ea8a6f3 (patch)
tree34fd9c44f82a83569822bc36eb2e0b04518e59f2 /common
parent7aadcc97f9df0e2daccbe8a8726d8bc6c63d67f4 (diff)
downloadbudget-602c52acfcfa494b07fec05c20b317b60ea8a6f3.tar.gz
budget-602c52acfcfa494b07fec05c20b317b60ea8a6f3.tar.bz2
budget-602c52acfcfa494b07fec05c20b317b60ea8a6f3.zip
Load init data per page with AJAX
Diffstat (limited to 'common')
-rw-r--r--common/src/Common/Model/Init.hs22
1 files changed, 7 insertions, 15 deletions
diff --git a/common/src/Common/Model/Init.hs b/common/src/Common/Model/Init.hs
index 68b3f5d..5ef1535 100644
--- a/common/src/Common/Model/Init.hs
+++ b/common/src/Common/Model/Init.hs
@@ -2,24 +2,16 @@ module Common.Model.Init
( Init(..)
) where
-import Data.Aeson (FromJSON, ToJSON)
-import GHC.Generics (Generic)
+import Data.Aeson (FromJSON, ToJSON)
+import GHC.Generics (Generic)
-import Common.Model.Category (Category)
-import Common.Model.Currency (Currency)
-import Common.Model.Income (Income)
-import Common.Model.Payment (Payment)
-import Common.Model.PaymentCategory (PaymentCategory)
-import Common.Model.User (User, UserId)
+import Common.Model.Currency (Currency)
+import Common.Model.User (User, UserId)
data Init = Init
- { _init_users :: [User]
- , _init_currentUser :: UserId
- , _init_payments :: [Payment]
- , _init_incomes :: [Income]
- , _init_categories :: [Category]
- , _init_paymentCategories :: [PaymentCategory]
- , _init_currency :: Currency
+ { _init_users :: [User]
+ , _init_currentUser :: UserId
+ , _init_currency :: Currency
} deriving (Show, Generic)
instance FromJSON Init