diff options
author | Joris | 2015-09-06 12:39:03 +0200 |
---|---|---|
committer | Joris | 2015-09-06 12:39:03 +0200 |
commit | e10531ba4e60c8709088798763ae3bae6608f9c9 (patch) | |
tree | f1550fab8833f0b31831ebb2e943a51eeaa41ee2 /src/server/Model/Json | |
parent | 24633871359ec9fbd63fdfebf79a6351b2792f77 (diff) |
Show montly payments with an expandable mechanism
Diffstat (limited to 'src/server/Model/Json')
-rw-r--r-- | src/server/Model/Json/PaymentId.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/server/Model/Json/PaymentId.hs b/src/server/Model/Json/PaymentId.hs new file mode 100644 index 0000000..3cbeb3c --- /dev/null +++ b/src/server/Model/Json/PaymentId.hs @@ -0,0 +1,17 @@ +{-# LANGUAGE DeriveGeneric #-} + +module Model.Json.PaymentId + ( PaymentId(..) + ) where + +import Data.Aeson +import GHC.Generics + +import qualified Model.Database as D + +data PaymentId = PaymentId + { id :: D.PaymentId + } deriving (Show, Generic) + +instance FromJSON PaymentId +instance ToJSON PaymentId |