aboutsummaryrefslogtreecommitdiff
path: root/lib/Web/OpenWeatherMap/Types/Wind.hs
blob: 66a78ca4119c815ef393b33b883ff1e22d529c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{-# 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)