File: diagrams.cabal

package info (click to toggle)
haskell-diagrams 1.4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 64 kB
  • sloc: haskell: 2; makefile: 1
file content (137 lines) | stat: -rw-r--r-- 5,480 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
Name:                diagrams
Version:             1.4.0.1
Synopsis:            Embedded domain-specific language for declarative vector graphics
Description:         Diagrams is a full-featured framework and embedded domain-specific langauge for creating
                     declarative vector graphics and animations.
                     .
                     This package is just a convenient wrapper
                     around the @diagrams-core@, @diagrams-lib@ and
                     @diagrams-contrib@ packages, so they can be
                     installed with a single @cabal install diagrams@
                     command.
                     .
                     The package also comes with flags to enable six
                     different backends.
                     A Haskell-native SVG
                     backend (the @diagrams-svg@ package)
                     can be selected with @-fsvg@. This
                     flag is enabled by default, so if you do /not/
                     want the SVG backend, you must explicitly
                     disable it with @-f-svg@.  The SVG backend does not
                     yet quite support all the features of the cairo
                     backend: text alignment and embedded images are
                     the two main missing features at this point, and
                     of course it can only produce SVG images. It is,
                     however, much easier to install, so it is the
                     out-of-the-box default.
                     .
                     There is also a cairo backend (the
                     @diagrams-cairo@ package) which can be selected
                     with the @-fcairo@ flag. It is fully-featured and
                     can produce PNG, PS, PDF, SVG, or animated
                     GIF output; however,
                     due to its dependencies it can be difficult to
                     install on some platforms (notably OS X).
                     .
                     In addition, there is a GTK backend based on the
                     cairo backend, for rendering diagrams directly to
                     GTK windows. You can enable it with the @-fgtk@ flag.
                     .
                     The Haskell-native postscript
                     backend (the @diagrams-postscript@ package)
                     can be selected with the @-fpostscript@ flag.  The only
                     feature it does not support is transparency.
                     .
                     There is a Rasterific backend which is
                     also Haskell-native (the @diagrams-rasterific@
                     package) which can be selected with the @-frasterific@
                     flag. This is a fully featured backend with the ability
                     to produce PNG, JPG, TIFF, BMP and animated GIF output.
                     .
                     Finally there is a Canvas backend, also haskell native,
                     which can be selected with the @-fcanvas@ flag. This
                     backend allows users to write interactive images onto
                     their web browsers.
                     .
                     For more information, including a gallery of
                     examples, tutorial, and user manual, see the
                     diagrams website:
                     <http://diagrams.github.io>.  For
                     help, join the @#diagrams@ IRC channel on
                     Freenode or the mailing list:
                     <http://groups.google.com/group/diagrams-discuss>.
Homepage:            http://diagrams.github.io
License:             BSD3
License-file:        LICENSE
Author:              Brent Yorgey
Maintainer:          diagrams-discuss@googlegroups.com
Bug-reports:         http://github.com/diagrams/diagrams/issues
Category:            Graphics
Build-type:          Simple
Cabal-version:       >=1.10
tested-with:         GHC ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
Extra-source-files:  README.markdown

Source-repository head
  type:     git
  location: git://github.com/diagrams/diagrams.git

Flag cairo
  Description: Enable the cairo backend
  Default: False
  Manual:  True

Flag gtk
  Description: Enable the GTK backend
  Default: False
  Manual:  True

Flag svg
  Description: Enable the Haskell-native SVG backend
  Default: True
  Manual:  True

Flag ps
  Description: Enable the Haskell-native PostScript backend
  Default: False
  Manual: True

Flag postscript
  Description: Enable the Haskell-native PostScript backend
  Default: False
  Manual: True

Flag rasterific
  Description: Enable the Haskell-native Rasterific backend
  Default: False
  Manual: True

Flag canvas
  Description: Enable the Haskell-native Canvas backend
  Default: False
  Manual: True

Library
  Build-depends:     diagrams-core >= 1.4 && < 1.6,
                     diagrams-lib >= 1.4 && < 1.5,
                     diagrams-contrib >= 1.4 && < 1.5

  if flag(cairo)
    Build-depends:   diagrams-cairo >= 1.4 && < 1.5

  if flag(gtk)
    Build-depends:   diagrams-gtk >= 1.4 && < 1.5

  if flag(svg)
    Build-depends:   diagrams-svg >= 1.4 && < 1.5

  if flag(ps) || flag(postscript)
    Build-depends:   diagrams-postscript >= 1.4 && < 1.6

  if flag(rasterific)
    Build-depends:   diagrams-rasterific >= 1.4 && < 1.5

  if flag(canvas)
    Build-depends:   diagrams-canvas >= 1.4 && < 1.5

  Default-language:  Haskell2010