File: yi.cabal

package info (click to toggle)
yi 0.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,532 kB
  • ctags: 1
  • sloc: haskell: 25,311; sh: 10; makefile: 9
file content (394 lines) | stat: -rw-r--r-- 8,849 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
name:           yi
version:        0.7.1
category:       Development, Editor
synopsis:       The Haskell-Scriptable Editor
description:
  Yi is a text editor written in Haskell and extensible in Haskell. The goal of the Yi project is
  to provide a flexible, powerful, and correct editor for haskell hacking.
license:        GPL
license-file:   LICENSE
author:         AUTHORS
maintainer:     yi-devel@googlegroups.com
homepage:       http://haskell.org/haskellwiki/Yi
bug-reports:    https://github.com/yi-editor/yi/issues
Cabal-Version:  >= 1.10
tested-with:    GHC==7.4.2, GHC==7.6.1
build-type:     Simple
data-files:
  art/*.png
  art/*.pdf
  art/*.xpm
  example-configs/*.hs
extra-source-files: src/library/Yi/Lexer/common.hsinc

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

-- Frontends
flag pango
  Default: False
  Description: "Build with Pango frontend"

flag vty
  Default: True
  Description: "Build with Vty frontend"

flag scion
  Default: False
  Description: Use the scion library to provide extra commands that interface with GHC (experimental)

flag ghcAPI
  Description: Enable linking with GHC API for advanced features.
  Default: False
  -- Can be useful to disable; ghc package is difficult to rebuild;
  --  * normally not available for profiling.
  --  * links against old/new version of bytestring
  --  * links against old version of Cabal
  -- ...

flag profiling
  Default: False
  Description:
    Runtime binary will be compiled with profiling and RTS
    options enabled.

flag testing
  Description: bake-in the self-checks

library
  hs-source-dirs: src/library
  default-language: Haskell2010

  if flag(profiling)
    CPP-options: -DPROFILING

  exposed-modules:
    Yi
    Yi.Boot
    Yi.Buffer
    Yi.Buffer.Basic
    Yi.Buffer.HighLevel
    Yi.Buffer.Indent
    Yi.Buffer.Normal
    Yi.Buffer.Misc
    Yi.Buffer.Region
    Yi.Buffer.TextUnit
    Yi.Buffer.Undo
    Yi.Command
    Yi.Completion
    Yi.Config
    Yi.Config.Default
    Yi.Config.Misc
    Yi.Config.Simple
    Yi.Config.Simple.Types
    Yi.Core
    Yi.Debug
    Yi.Dired
    Yi.Dynamic
    Yi.Editor
    Yi.Eval
    Yi.Event
    Yi.File
    Yi.History
    Yi.Hoogle
    Yi.Hooks
    Yi.IReader
    Yi.IncrementalParse
    Yi.Interact
    Yi.JumpList
    Yi.Keymap
    Yi.Keymap.Completion
    Yi.Keymap.Cua
    Yi.Keymap.Emacs
    Yi.Keymap.Emacs.KillRing
    Yi.Keymap.Emacs.Utils
    Yi.Keymap.Keys
    Yi.Keymap.Readline
    Yi.Keymap.Vim
    Yi.Keymap.Vim.TagStack
    Yi.Keymap.Vim2
    Yi.Keymap.Vim2.Common
    Yi.Keymap.Vim2.Digraph
    Yi.Keymap.Vim2.Eval
    Yi.Keymap.Vim2.EventUtils
    Yi.Keymap.Vim2.Ex
    Yi.Keymap.Vim2.Ex.Commands.Common
    Yi.Keymap.Vim2.Ex.Commands.BufferDelete
    Yi.Keymap.Vim2.Ex.Commands.Delete
    Yi.Keymap.Vim2.Ex.Commands.Edit
    Yi.Keymap.Vim2.Ex.Commands.Global
    Yi.Keymap.Vim2.Ex.Commands.GotoLine
    Yi.Keymap.Vim2.Ex.Commands.Nohl
    Yi.Keymap.Vim2.Ex.Commands.Paste
    Yi.Keymap.Vim2.Ex.Commands.Quit
    Yi.Keymap.Vim2.Ex.Commands.Reload
    Yi.Keymap.Vim2.Ex.Commands.Substitute
    Yi.Keymap.Vim2.Ex.Commands.Write
    Yi.Keymap.Vim2.Ex.Commands.Yi
    Yi.Keymap.Vim2.Ex.Types
    Yi.Keymap.Vim2.Ex.Eval
    Yi.Keymap.Vim2.ExMap
    Yi.Keymap.Vim2.InsertMap
    Yi.Keymap.Vim2.MatchResult
    Yi.Keymap.Vim2.Motion
    Yi.Keymap.Vim2.NormalMap
    Yi.Keymap.Vim2.NormalOperatorPendingMap
    Yi.Keymap.Vim2.Operator
    Yi.Keymap.Vim2.ReplaceMap
    Yi.Keymap.Vim2.ReplaceSingleCharMap
    Yi.Keymap.Vim2.Search
    Yi.Keymap.Vim2.SearchMotionMap
    Yi.Keymap.Vim2.StateUtils
    Yi.Keymap.Vim2.StyledRegion
    Yi.Keymap.Vim2.TextObject
    Yi.Keymap.Vim2.Utils
    Yi.Keymap.Vim2.VisualMap
    Yi.KillRing
    Yi.Layout
    Yi.Lexer.Abella
    Yi.Lexer.Alex
    Yi.Lexer.Cabal
    Yi.Lexer.Compilation
    Yi.Lexer.C
    Yi.Lexer.ObjectiveC
    Yi.Lexer.Cplusplus
    Yi.Lexer.Haskell
    Yi.Lexer.JavaScript
    Yi.Lexer.Java
    Yi.Lexer.JSON
    Yi.Lexer.Latex
    Yi.Lexer.LiterateHaskell
    Yi.Lexer.GitCommit
    Yi.Lexer.GNUMake
    Yi.Lexer.OCaml
    Yi.Lexer.Ott
    Yi.Lexer.Perl
    Yi.Lexer.Python
    Yi.Lexer.Ruby
    Yi.Lexer.Srmc
    Yi.Lexer.SVNCommit
    Yi.Lexer.Whitespace
    Yi.Main
    Yi.MiniBuffer
    Yi.Misc
    Yi.Mode.Abella
    Yi.Mode.Buffers
    Yi.Mode.Compilation
    Yi.Mode.Haskell
    Yi.Mode.Haskell.Dollarify
    Yi.Mode.IReader
    Yi.Mode.Interactive
    Yi.Mode.JavaScript
    Yi.Mode.Latex
    Yi.Modes
    Yi.Monad
    Yi.Paths
    Yi.PersistentState
    Yi.Prelude
    Yi.Process
    Yi.Rectangle
    Yi.Regex
    Yi.Region
    Yi.Snippets
    Yi.Snippets.Haskell
    Yi.Search
    Yi.String
    Yi.Style
    Yi.Style.Library
    Yi.Syntax
    Yi.Syntax.Driver
    Yi.Syntax.Haskell
    Yi.Syntax.JavaScript
    Yi.Syntax.Latex
    Yi.Syntax.Layout
    Yi.Syntax.OnlineTree
    Yi.Syntax.Paren
    Yi.Syntax.Tree
    Yi.Syntax.Strokes.Haskell
    Yi.Tab
    Yi.Tag
    Yi.TextCompletion,
    Yi.UI.Common
    Yi.UI.Batch
    Yi.UI.Utils
    Yi.UI.TabBar
    Yi.Verifier.JavaScript
    Yi.Window
    Yi.Char.Unicode

  build-depends:
    Cabal >= 1.10 && < 1.20,
    Diff >=0.1 && <0.4,
    array, containers, directory, process >= 1.0.1.1, old-locale,
    base >= 4 && < 5,
    binary >= 0.5,
    bytestring >= 0.9.1 && < 0.11,
    cautious-file >= 1.0.1,
    concrete-typerep >= 0.1.0.2 && < 0.1.1,
    derive >=2.4 && <2.7,
    data-accessor >= 0.2.1.4 && < 0.3,
    data-accessor-mtl == 0.2.*,
    data-accessor-template >= 0.2.1.3 && < 0.2.2,
    data-default,
    dlist >=0.4.1,
    dyre >=0.8.11,
    filepath>=1.1 && <1.4,
    fingertree >= 0 && <0.2,
    hashable >=1.1.2.5,
    hint > 0.3.1,
    mtl >= 0.1.0.1,
    parsec >= 3.0,
    pointedlist >= 0.4 && < 0.6,
    regex-base ==0.93.*,
    regex-tdfa >= 1.1 && <1.3,
    split >= 0.1 && < 0.3,
    template-haskell >= 2.4,
    time >= 1.1 && < 1.5,
    utf8-string >= 0.3.1,
    uniplate,
    unix-compat >=0.1 && <0.5,
    unordered-containers >= 0.1.3 && < 0.3,
    xdg-basedir >= 0.2.1 && < 0.3

  build-tools: alex >= 3.0.3
  ghc-options: -Wall -fno-warn-orphans
  ghc-prof-options: -prof -auto-all -rtsopts
  if flag(profiling)
    cpp-options: -DPROFILING

  default-extensions: NondecreasingIndentation

  if !os(windows)
    build-depends:
      unix

  if os(windows)
    build-depends:
      Win32

  include-dirs:   src/library/Yi/Lexer

  if flag(testing)
    cpp-options: -DTESTING
    build-depends:
      QuickCheck >= 2.1.0.2,
      random

  -- Frontends
  if flag(pango)
    exposed-modules:
      Yi.UI.Pango
      Yi.UI.Pango.Control
    other-modules:
      Yi.UI.Pango.Layouts
      Yi.UI.Pango.Utils
    build-depends:
      gtk ==0.12.*,
      glib ==0.12.*,
      pango ==0.12.*
    cpp-options: -DFRONTEND_PANGO

  if flag(vty)
    exposed-modules:
      Yi.UI.Vty
    build-depends:
      unix-compat >=0.1 && <0.5,
      vty >= 5.1.0.0 && <6
    cpp-options: -DFRONTEND_VTY

  if flag (scion)
    cpp-options: -DSCION
    exposed-modules: Yi.Scion
    build-depends:
      scion == 0.1.*,
      ghc-syb-utils

  if flag (ghcAPI)
    cpp-options: -DGHC_API

    build-depends:
      ghc-paths ==0.1.*,
      old-time >= 1.1.0.0,
      rosezipper >= 0.1 && < 0.3,
      pureMD5 >= 0.2.3

    exposed-modules: Yi.Mode.Shim
    other-modules:
      Shim.SHM, Shim.SessionMonad, Shim.Hsinfo, Shim.GhcCompat,
      Shim.ExprSearch, Yi.GHC

  other-modules:
    Paths_yi,

    -- "Internal" modules that the user better not see.
    Yi.Buffer.Implementation,
    Parser.Incremental,

    -- Should probably be split out to another package.
    Control.Exc,
    Data.DelayList,
    Data.Prototype,
    Data.Rope,
    Data.Trie,
    Shim.CabalInfo,
    Shim.Utils,
    Shim.ProjectContent,
    System.CanonicalizePath,
    System.FriendlyPath

    -- Broken.
--            Yi.Keymap.Ee,
--            Yi.Keymap.Gwern,
--            Yi.Keymap.Joe,
--            Yi.Keymap.Mg,
--            Yi.Keymap.Nano,
--            Yi.Keymap.Vi,

executable parserTest
  -- Don't build this for now, has compilation trouble.
  buildable: False

  hs-source-dirs: src/parsertest
  default-language: Haskell2010

  main-is: ParserTest/ParserTest.hs

  build-depends:
    base >=4 && <5,
    array,
    containers,
    directory,
    filepath>=1.1 && <1.4,
    yi

executable yi
  hs-source-dirs: src/executable
  default-language: Haskell2010

  if flag(profiling)
    cpp-options: -DPROFILING

  main-is: Main.hs

  build-depends:
    base >=4 && <5, yi
  build-tools: alex >= 3.0.3
  ghc-options: -threaded
  ghc-prof-options: -prof -auto-all -rtsopts

Test-Suite test-suite
  default-language: Haskell2010
  hs-source-dirs: src/tests
  type: exitcode-stdio-1.0
  main-is: TestSuite.hs
  build-depends:
    base,
    test-framework,
    test-framework-hunit,
    HUnit,
    QuickCheck,
    filepath,
    directory,
    yi