From 6f6e3d8ec76c59d6f403725e9b2a22b8f6680714 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 7 Jun 2017 16:24:05 +0300 Subject: Initial version 0.0.0 --- openweathermap.cabal | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 openweathermap.cabal (limited to 'openweathermap.cabal') diff --git a/openweathermap.cabal b/openweathermap.cabal new file mode 100644 index 0000000..dca75ca --- /dev/null +++ b/openweathermap.cabal @@ -0,0 +1,59 @@ +name: openweathermap +version: 0.0.0 +synopsis: Access data at OpenWeatherMap +description: Client library and command-line utility to access + OpenWeatherMap https://openweathermap.org +license: PublicDomain +license-file: LICENSE +author: Igor Pashev +maintainer: Igor Pashev +copyright: 2017, Igor Pashev +category: Web +build-type: Simple +extra-source-files: README.md ChangeLog.md +cabal-version: >= 1.20 + +source-repository head + type: git + location: https://github.com/ip1981/openweathermap.git + +flag cmd + description: Build a command-line utility. + default: True + +library + default-language: Haskell2010 + ghc-options: -Wall + hs-source-dirs: lib + build-depends: + base >= 4.9 && < 5 + , aeson + , http-client + , servant + , servant-client >= 0.9 + exposed-modules: + Web.OpenWeatherMap.API + Web.OpenWeatherMap.Client + Web.OpenWeatherMap.Types.Clouds + Web.OpenWeatherMap.Types.Coord + Web.OpenWeatherMap.Types.CurrentWeather + Web.OpenWeatherMap.Types.Main + Web.OpenWeatherMap.Types.Sys + Web.OpenWeatherMap.Types.Weather + Web.OpenWeatherMap.Types.Wind + +executable openweathermap + default-language: Haskell2010 + ghc-options: -Wall -static + hs-source-dirs: cmd + main-is: Main.hs + if flag(cmd) + build-depends: + base >= 4.9 && < 5 + , directory + , openweathermap + , optparse-applicative >= 0.13.0.0 + , xdg-basedir + else + buildable: False + -- cgit v1.2.3