diff options
Diffstat (limited to 'lib/Web/OpenWeatherMap/Types/CurrentWeather.hs')
-rw-r--r-- | lib/Web/OpenWeatherMap/Types/CurrentWeather.hs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/lib/Web/OpenWeatherMap/Types/CurrentWeather.hs b/lib/Web/OpenWeatherMap/Types/CurrentWeather.hs index e7d4464..02d3371 100644 --- a/lib/Web/OpenWeatherMap/Types/CurrentWeather.hs +++ b/lib/Web/OpenWeatherMap/Types/CurrentWeather.hs @@ -19,16 +19,18 @@ import Web.OpenWeatherMap.Types.Wind (Wind) -- | Response to requests for current weather. -- Refer to <https://openweathermap.org/current>. -data CurrentWeather = CurrentWeather - { coord :: Coord - , weather :: [Weather] - , base :: String - , main :: Main - , wind :: Wind - , clouds :: Clouds - , dt :: Int - , sys :: Sys - , id :: Int - , name :: String - , cod :: Int - } deriving (Show, Generic, FromJSON) +data CurrentWeather = + CurrentWeather + { coord :: Coord + , weather :: [Weather] + , base :: String + , main :: Main + , wind :: Wind + , clouds :: Clouds + , dt :: Int + , sys :: Sys + , id :: Int + , name :: String + , cod :: Int + } + deriving (Show, Generic, FromJSON) |