diagrams-1.4.0.1/0000755000000000000000000000000007346545000011633 5ustar0000000000000000diagrams-1.4.0.1/LICENSE0000644000000000000000000000335707346545000012650 0ustar0000000000000000Copyright (c) 2011-2016, diagrams team (see LICENSE files in dual-tree, monoid-extras, diagrams-solve, active, statestack, diagrams-core, diagrams-lib, diagrams-svg, diagrams-postscript, diagrams-cairo, diagrams-gtk, diagrams-rasterific, diagrams-canvas, and diagrams-contrib packages) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Brent Yorgey nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diagrams-1.4.0.1/README.markdown0000644000000000000000000000572207346545000014342 0ustar0000000000000000[![Build Status](http://gondor.hendrix.edu:8080/buildStatus/icon?job=Diagrams HEAD)](http://gondor.hendrix.edu:8080/job/Diagrams%20HEAD/) [diagrams] is a full-featured framework and domain-specific language (embedded in [Haskell]) for creating declarative vector graphics and animations. [diagrams]: http://projects.haskell.org/diagrams/ [haskell]: http://www.haskell.org/haskellwiki/Haskell This package is just *a convenient wrapper* around the [diagrams-core], [diagrams-lib], [diagrams-svg], and [diagrams-contrib] packages, so they can be installed with a single `cabal install diagrams` command. [diagrams-core]: http://github.com/diagrams/diagrams-core [diagrams-lib]: http://github.com/diagrams/diagrams-lib [diagrams-svg]: http://github.com/diagrams/diagrams-svg [diagrams-contrib]: http://github.com/diagrams/diagrams-contrib The package also comes with flags to enable six different backends. The [native SVG backend](http://github.com/diagrams/diagrams-svg) is enabled by the `-fsvg` flag and is enabled by default. If you don't want it, you must explicitly disable it with `-f-svg`. The [native postscript backend](http://github.com/diagrams/diagrams-postscript) is disabled by default but can be enabled by the `-fps` flag. The [cairo backend](http://github.com/diagrams/diagrams-cairo) is disabled by default but can be selected with the `-fcairo` flag. In addition, the [GTK backend](http://github.com/diagrams/diagrams-gtk) is based on the cairo backend (but split into a separate package to make installing the cairo backend easier). It can be selected with the `fgtk` flag. The [native rasterific backend](http://github.com/diagrams/diagrams-rasterific) which is disabled by default but can be selected with the `-frasterific` flag. The [native canvas backend](http://github.com/diagrams/diagrams-canvas) which is disabled by default but can be selected with the `-fcanvas` flag. # Installation ``` cabal update && cabal install diagrams ``` or, to get the postscript backend in addition to the SVG backend: ``` cabal update && cabal install -fps diagrams ``` or, to get the cairo backend in addition to the SVG backend: ``` cabal update && cabal install gtk2hs-buildtools && cabal install -fcairo diagrams ``` # Reporting bugs Issue trackers for all diagrams-related repositories are hosted under the [diagrams organization on github](http://github.com/diagrams). If you know the specific package containing the bug, report it in the issue tracker specific to that package (for example, [diagrams-lib](http://github.com/diagrams/diagrams-lib/issues)). Otherwise, just report the issue in the issue tracker for the [general diagrams repository](http://github.com/diagrams/diagrams/issues). # Further reading For more information, including a gallery of examples, tutorial, and user manual, see the [diagrams website](http://projects.haskell.org/diagrams). For help, join the `#diagrams` IRC channel on Freenode or the [mailing list](http://groups.google.com/group/diagrams-discuss). diagrams-1.4.0.1/Setup.hs0000644000000000000000000000005607346545000013270 0ustar0000000000000000import Distribution.Simple main = defaultMain diagrams-1.4.0.1/diagrams.cabal0000644000000000000000000001255007346545000014411 0ustar0000000000000000Name: 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: . For help, join the @#diagrams@ IRC channel on Freenode or the mailing list: . 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