1cabal-version: >= 1.10
2
3name:           panopticum
4version:        1.0.0.0
5description:    Utility to generate pkg-plist for FreeBSD Ports
6homepage:       https://foss.heptapod.net/bsdutils/panopticum
7bug-reports:    https://foss.heptapod.net/bsdutils/panopticum/issues
8author:         Gleb Popov <arrowd@FreeBSD.org>
9maintainer:     arrowd@FreeBSD.org
10copyright:      2021 Gleb Popov
11license:        BSD3
12license-file:   LICENSE
13build-type:     Simple
14extra-source-files:
15    README.md
16
17source-repository head
18  type: mercurial
19  location: https://foss.heptapod.net/bsdutils/panopticum
20
21library
22  exposed-modules:
23      MakeUtils
24      Panopticum
25      PoudriereUtils
26      Qm
27      Utils
28  hs-source-dirs:
29      src
30  build-depends:
31      base >=4.7 && <5
32    , containers
33    , directory
34    , extra
35    , filepath
36    , mtl
37    , process
38    , text
39    , unix
40    , unliftio
41  default-language: Haskell2010
42
43executable panopticum
44  main-is: Main.hs
45  hs-source-dirs:
46      app
47  ghc-options: -threaded -rtsopts -with-rtsopts=-N
48  build-depends:
49      base >=4.7 && <5
50    , panopticum
51    , directory
52    , filepath
53    , optparse-applicative
54  default-language: Haskell2010
55
56test-suite panopticum-test
57  type: exitcode-stdio-1.0
58  main-is: TestMain.hs
59  hs-source-dirs:
60      test
61  ghc-options: -threaded -rtsopts -with-rtsopts=-N
62  build-depends:
63      base >=4.7 && <5
64    , panopticum
65    , QuickCheck
66    , containers
67    , directory
68    , filepath
69    , hspec
70    , hspec-core
71    , monad-loops
72    , mtl
73    , text
74  default-language: Haskell2010
75