repos / handle-examples.hs.git


handle-examples.hs.git / backpack-handle / domain
Evgenii Akentev  ·  2021-01-05

WeatherProvider.hsig

 1signature WeatherProvider where
 2
 3data Temperature
 4instance Show Temperature
 5
 6data WeatherData = WeatherData { temperature :: Temperature }
 7
 8type Location = String
 9type Day = String
10
11data Handle
12
13-- | The interface of `WeatherProvider` with available methods.
14getWeatherData :: Handle -> Location -> Day -> IO WeatherData