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

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

import GHC.Generics (Generic)

import Data.Aeson (FromJSON)

data Wind = Wind
  { speed :: Double
  , deg :: Double
  } deriving (Show, Generic, FromJSON)