aboutsummaryrefslogtreecommitdiff
path: root/lib/Web/OpenWeatherMap/Types/Sys.hs
blob: 8cb932b29d37aa56f30ae956c8a6f8ea961d100f (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)