aboutsummaryrefslogtreecommitdiff
path: root/openweathermap.cabal
blob: dad65c2f85467eee1e7fd21d9ec989c7134e2fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: openweathermap
version: 0.1.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.16
  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.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)
    build-depends:
        base >= 4.9 && < 5
      , directory
      , openweathermap
      , optparse-applicative >= 0.13.0.0
      , time
      , xdg-basedir
  else
    buildable: False