aboutsummaryrefslogtreecommitdiff
path: root/openweathermap.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'openweathermap.cabal')
-rw-r--r--openweathermap.cabal123
1 files changed, 65 insertions, 58 deletions
diff --git a/openweathermap.cabal b/openweathermap.cabal
index 2138576..f410d5e 100644
--- a/openweathermap.cabal
+++ b/openweathermap.cabal
@@ -1,67 +1,74 @@
-name: openweathermap
-version: 0.2.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
+cabal-version: 1.20
+name: openweathermap
+version: 0.2.0
+license: PublicDomain
+license-file: LICENSE
+copyright: 2017, Igor Pashev <pashev.igor@gmail.com>
+maintainer: Igor Pashev <pashev.igor@gmail.com>
+author: Igor Pashev
+synopsis: Access data at OpenWeatherMap
+description:
+ Client library and command-line utility to access
+ OpenWeatherMap https://openweathermap.org
+
+category: Web
+build-type: Simple
+extra-source-files:
+ README.md
+ ChangeLog.md
source-repository head
- type: git
- location: https://github.com/ip1981/openweathermap.git
+ type: git
+ location: https://github.com/ip1981/openweathermap.git
flag cmd
- description: Build a command-line utility.
- default: True
+ description: Build a command-line utility.
library
- default-language: Haskell2010
- ghc-options: -Wall
- hs-source-dirs: lib
- build-depends:
- base >= 4.9 && < 5
- , aeson
- , http-api-data
- , http-client
- , servant
- , servant-client >= 0.16
- , servant-client-core
- exposed-modules:
- Web.OpenWeatherMap.API
- Web.OpenWeatherMap.Client
- Web.OpenWeatherMap.Types.City
- Web.OpenWeatherMap.Types.Clouds
- Web.OpenWeatherMap.Types.Coord
- Web.OpenWeatherMap.Types.CurrentWeather
- Web.OpenWeatherMap.Types.Forecast
- Web.OpenWeatherMap.Types.ForecastWeather
- Web.OpenWeatherMap.Types.Location
- Web.OpenWeatherMap.Types.Main
- Web.OpenWeatherMap.Types.Sys
- Web.OpenWeatherMap.Types.Weather
- Web.OpenWeatherMap.Types.Wind
+ exposed-modules:
+ Web.OpenWeatherMap.API
+ Web.OpenWeatherMap.Client
+ Web.OpenWeatherMap.Formulas
+ Web.OpenWeatherMap.Types.City
+ Web.OpenWeatherMap.Types.Clouds
+ Web.OpenWeatherMap.Types.Coord
+ Web.OpenWeatherMap.Types.CurrentWeather
+ Web.OpenWeatherMap.Types.Forecast
+ Web.OpenWeatherMap.Types.ForecastWeather
+ Web.OpenWeatherMap.Types.Location
+ 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
- other-modules: Print
- if flag(cmd)
+ hs-source-dirs: lib
+ default-language: Haskell2010
+ ghc-options: -Wall
build-depends:
- base >= 4.9 && < 5
- , directory
- , openweathermap
- , optparse-applicative >= 0.13.0.0
- , time
- , xdg-basedir
- else
- buildable: False
+ base >=4.9 && <5,
+ aeson -any,
+ http-api-data -any,
+ http-client -any,
+ servant -any,
+ servant-client >=0.16,
+ servant-client-core -any
+
+executable openweathermap
+ main-is: Main.hs
+ hs-source-dirs: cmd
+ other-modules: Print
+ default-language: Haskell2010
+ ghc-options: -Wall -static
+
+ if flag(cmd)
+ build-depends:
+ base >=4.9 && <5,
+ directory -any,
+ openweathermap -any,
+ optparse-applicative >=0.13.0.0,
+ time -any,
+ xdg-basedir -any
+
+ else
+ buildable: False