summaryrefslogtreecommitdiff
path: root/avwx.cabal
blob: e113fe306a24e0657b9d6812c58a0dbf076065d0 (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
name:                avwx
version:             0.3.0.2
synopsis:            Parse aviation weather reports
description:         Parse aviation weather reports, currently METARs and TAFs
homepage:            https://www.hcesperer.org/posts/2016-09-20-avwx.html
license:             MIT
license-file:        LICENSE
author:              Hans-Christian Esperer <hc@hcesperer.org>
maintainer:          Hans-Christian Esperer <hc@hcesperer.org>
copyright:           2016, Hans-Christian Esperer
category:            Aviation
build-type:          Simple
extra-source-files:  README.md changelog.md test/metars.txt test/tafs.txt
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Data.Aviation.WX
                     , Data.Aviation.WX.Fetcher
  
  build-depends:       base >= 4.7 && < 5
                     , lens >= 4.1 && < 5
                     , attoparsec >= 0.13 && < 1
                     , parsers >= 0.12 && < 1
                     , HTTP >= 4000 && < 5000
                     , text >= 1.2.2.1 && < 1.3
                     
  default-language:    Haskell2010
  ghc-options:       -Wall

executable metar
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -rtsopts
  build-depends:       base
                     , avwx
                     , optparse-applicative
                     , pretty-show
                     , text
  default-language:    Haskell2010

test-suite avwx-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , attoparsec >= 0.13 && < 1
                     , avwx
                     , lens >= 4.1 && < 5
                     , pretty-show
                     , text
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/hce/avwx.git