diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-06-24 13:36:19 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-06-24 13:44:42 +0300 |
commit | ebe8cba9837872de3dd611d6cd615425c51fefec (patch) | |
tree | 776af0f6361d5727f65143b9d8066b85a180c2b2 /cmd/Main/Input.hs | |
parent | 2ed435c73d0bc80a6b0d9d16a9fd0e9a0b464ed2 (diff) | |
download | molodivo-ebe8cba9837872de3dd611d6cd615425c51fefec.tar.gz |
Support many bills
Diffstat (limited to 'cmd/Main/Input.hs')
-rw-r--r-- | cmd/Main/Input.hs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cmd/Main/Input.hs b/cmd/Main/Input.hs new file mode 100644 index 0000000..63e5942 --- /dev/null +++ b/cmd/Main/Input.hs @@ -0,0 +1,22 @@ +{- +This modules describes input data for the command line utlity. +-} +{-# LANGUAGE DeriveAnyClass #-} +{-# LANGUAGE DeriveGeneric #-} + +module Main.Input + ( Input(..) + ) where + +import GHC.Generics (Generic) + +import Data.Aeson (FromJSON) + +import Malodivo.Types.Bill (Bill) + +import Main.DistrictInfo (DistrictInfo) + +data Input = Input + { bills :: [Bill] + , districts :: [DistrictInfo] + } deriving (Generic, FromJSON) |