File: vty-crossplatform.cabal

package info (click to toggle)
haskell-vty-crossplatform 0.4.0.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: haskell: 1,367; makefile: 4
file content (102 lines) | stat: -rw-r--r-- 3,172 bytes parent folder | download
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
cabal-version:      3.0
name:               vty-crossplatform
version:            0.4.0.0
synopsis:           Cross-platform support for Vty
description:        This package provides a generic interface for multiple
                    Vty platforms in one package so you don't have to
                    conditionally depend on them in your cabal file.
license:            BSD-3-Clause
license-file:       LICENSE
author:             Jonathan Daugherty
maintainer:         cygnus@foobox.com
copyright:          (c) 2023 Jonathan Daugherty
category:           Graphics
build-type:         Simple
extra-doc-files:    CHANGELOG.md

common warnings
    ghc-options: -Wall

Flag demos
    Description:     Build demonstration programs
    Default:         False

library
    import:           warnings
    hs-source-dirs:   src
    default-language: Haskell2010
    exposed-modules:  Graphics.Vty.CrossPlatform
                    , Graphics.Vty.CrossPlatform.Testing
    build-depends:    base >= 4.8 && < 5,
                      vty >= 6.1

    if os(darwin)
        build-depends:  vty-unix
    elif os(linux)
        build-depends:  vty-unix
    elif os(freebsd) || os(openbsd) || os(netbsd) || os(dragonfly)
        build-depends:  vty-unix
    elif os(solaris) || os(aix) || os(hpux) || os(irix) || os(hurd)
        build-depends:  vty-unix
    elif os(windows)
        build-depends:  vty-windows >= 0.2.0.0
    else
        build-depends:  unknown-vty-build-platform

executable vty-rogue-demo
    if !flag(demos)
        Buildable: False

    hs-source-dirs:      programs
    ghc-options:         -threaded -Wall -Wcompat -O2
    default-language:    Haskell2010
    default-extensions:  CPP
    main-is:             Rogue.hs
    build-depends:       base,
                         vty,
                         vty-crossplatform,
                         random,
                         mtl,
                         array

executable vty-event-echo
    if !flag(demos)
        Buildable: False

    hs-source-dirs:      programs
    ghc-options:         -threaded -Wall -Wcompat -O2
    default-language:    Haskell2010
    default-extensions:  CPP
    main-is:             EventEcho.hs
    build-depends:       base,
                         vty,
                         vty-crossplatform,
                         containers,
                         mtl

executable vty-mode-demo
    if !flag(demos)
        Buildable: False

    hs-source-dirs:      programs
    ghc-options:         -threaded -Wall -Wcompat -O2
    default-language:    Haskell2010
    default-extensions:  CPP
    main-is:             ModeDemo.hs
    build-depends:       base,
                         vty,
                         vty-crossplatform

executable vty-interactive-terminal-test
    if !flag(demos)
        Buildable: False

    hs-source-dirs:      programs
    ghc-options:         -threaded -Wall -Wcompat -O2
    default-language:    Haskell2010
    default-extensions:  CPP
    main-is:             interactive_terminal_test.hs
    build-depends:       base,
                         string-qq,
                         vty,
                         vty-crossplatform