country-codes/country-codes.cabal

62 lines
1.6 KiB
Plaintext

name: country-codes
version: 0.1
cabal-version: >= 1.8
build-type: Simple
author: JP Moresmau <jpmoresmau@gmail.com>
license: BSD3
license-file: LICENSE
copyright: (c) 2014 Prowdsponsor
category: Data
homepage: https://github.com/prowdsponsor/country-codes
maintainer: Prowdsponsor <opensource@prowdsponsor.com>
synopsis: ISO 3166 country codes and i18n names.
description: ISO 3166 country codes and i18n names.
source-repository head
type: git
location: git://github.com/prowdsponsor/country-codes.git
flag generate
default: False
description: Build generate executable?
manual: True
library
hs-source-dirs: src
build-depends:
base >= 4 && < 5
, text >= 0.11
, aeson >= 0.5 && < 0.8
ghc-options: -Wall
other-modules: Data.CountryCodes.ISO31661
exposed-modules: Data.CountryCodes
executable country-codes-generate
hs-source-dirs: exe
build-depends:
base >= 4 && < 5
, text >= 0.11
, tagsoup >= 0.13 && < 0.14
ghc-options: -Wall -rtsopts
main-is: Main.hs
if !flag(generate)
buildable: False
test-suite country-codes-tests
type: exitcode-stdio-1.0
main-is: country-codes-tests.hs
ghc-options: -Wall -rtsopts -threaded
build-depends:
base
, aeson
, country-codes
, HTF > 0.9
, HUnit >= 1.2.5
hs-source-dirs:
test