summaryrefslogtreecommitdiff
path: root/yi.cabal
blob: 57320d9b0eaf2a47f70b6518e91d3c0063be0665 (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
58
59
60
61
62
63
64
65
66
67
name:           yi
version:        0.17.1
synopsis:       Yi editor
category:       Yi
homepage:       https://github.com/yi-editor/yi#readme
bug-reports:    https://github.com/yi-editor/yi/issues
maintainer:     Yi developers <yi-devel@googlegroups.com>
license:        GPL-2
build-type:     Simple
cabal-version:  >= 1.10

source-repository head
  type: git
  location: https://github.com/yi-editor/yi

flag emacs
  description: Include the emacs keymap
  manual: True
  default: True

flag pango
  description: Include the pango (GUI) frontend, this flag is ignored if compiling with ghc >= 8.2
  manual: True
  default: True

flag vim
  description: Include the vim keymap
  manual: True
  default: True

flag vty
  description: Include the vty (CLI) frontend
  manual: True
  default: True

executable yi
  main-is: Main.hs
  hs-source-dirs:
      ./.
  ghc-options: -Wall -ferror-spans -threaded -eventlog -rtsopts
  build-depends:
      base >= 4.8 && < 5
    , microlens-platform >= 0.3.4.0
    , mtl >= 2.2.1
    , optparse-applicative >= 0.13.0.0
    , yi-core >= 0.17
    , yi-misc-modes >= 0.17
    , yi-mode-haskell >= 0.17
    , yi-mode-javascript >= 0.17
    , yi-rope >= 0.10
  if flag(vty)
    cpp-options: -DVTY
    build-depends:
        yi-frontend-vty >= 0.17
  if flag(pango) && impl(ghc < 8.2)
    cpp-options: -DPANGO
    build-depends:
        yi-frontend-pango >= 0.17
  if flag(vim)
    cpp-options: -DVIM
    build-depends:
        yi-keymap-vim >= 0.17
  if flag(emacs)
    cpp-options: -DEMACS
    build-depends:
        yi-keymap-emacs >= 0.17
  default-language: Haskell2010