aboutsummaryrefslogtreecommitdiff
path: root/openweathermap.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'openweathermap.cabal')
-rw-r--r--openweathermap.cabal59
1 files changed, 59 insertions, 0 deletions
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 <pashev.igor@gmail.com>
+copyright: 2017, Igor Pashev <pashev.igor@gmail.com>
+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
+