summaryrefslogtreecommitdiff
path: root/terminal-io.cabal
blob: 531dc9da6736d03d0c7e0866820b019f5ce1642d (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
cabal-version:       2.0
name:                terminal-io
version:             0.1.0.0
-- synopsis:
-- description:
-- bug-reports:
homepage:            https://git.tomsmeding.com/terminal-io-hs
license:             MIT
license-file:        LICENSE
author:              Tom Smeding
maintainer:          tom.smeding@gmail.com
-- copyright:
category:            Graphics
build-type:          Simple

library
  ghc-options:         -Wall -O3
  hs-source-dirs:      src
  default-language:    Haskell2010
  default-extensions:
    LambdaCase
    MultiWayIf
  exposed-modules:
    System.IO.Terminal
    System.IO.Terminal.Characters
    System.IO.Terminal.Input
    System.IO.Terminal.Input.Key
    System.IO.Terminal.Render
  other-modules:
    Numeric.InfInt
    System.IO.Terminal.IO
    System.IO.Terminal.Input.SeqParser
    Utils.Monad
    Utils.Time
  build-depends:
    base >= 4 && < 5,
    ansi-terminal,
    array,
    colour,
    containers,
    mtl,
    terminal-size,
    time
  if os(linux)
    cpp-options: -DOS_LINUX
    other-modules: System.IO.Terminal.Input.Posix
  if os(darwin)
    cpp-options: -DOS_MACOS
    other-modules: System.IO.Terminal.Input.Posix
  if os(windows)
    cpp-options: -DOS_WINDOWS
    other-modules: System.IO.Terminal.Input.Windows
    build-depends: hidden-char