aboutsummaryrefslogtreecommitdiff
path: root/lib/Web/OpenWeatherMap/Types/Sys.hs
blob: 15ef6cdbc09d1d56751549b63807fa877479ef43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}

module Web.OpenWeatherMap.Types.Sys
  ( Sys(..)
  ) where

import GHC.Generics (Generic)

import Data.Aeson (FromJSON)

data Sys =
  Sys
    { country :: Maybe String
    , sunrise :: Int
    , sunset :: Int
    }
  deriving (Show, Generic, FromJSON)