forked from RazvanRanca/GenericPretty
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtext-generic-pretty.cabal
143 lines (120 loc) · 5.31 KB
/
text-generic-pretty.cabal
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
-- The name of the package.
Name: text-generic-pretty
-- The package version. See the Haskell package versioning policy
-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
-- standards guiding when and how versions should be incremented.
Version: 1.2.8
-- A short (one-line) description of the package.
Synopsis: A generic, derivable, haskell pretty printer.
-- A longer description of the package.
Description:
GenericPretty is a Haskell library that supports automatic
derivation of pretty printing functions on user defined data
types.
.
The form of geenrics used is based on that introduced in the paper:
Magalhaes, Dijkstra, Jeuring, and Loh,
A Generic Deriving Mechanism for Haskell,
3'rd ACM Symposium on Haskell, pp. 37-48, September 2010,
<http://dx.doi.org/10.1145/1863523.1863529>.
Changes from the original paper in the GHC implementation
are described here:
<http://www.haskell.org/haskellwiki/GHC.Generics#Changes_from_the_paper>.
.
This package requires the use of the new GHC.Generics features
<http://www.haskell.org/haskellwiki/GHC.Generics>, present from GHC 7.2.
Use of these features is indicated by the DeriveGeneric pragma.
or the flag -XDeriveGeneric.
.
Pretty printing produces values of type Text.PrettyPrint.Doc, using
the Text.PrettyPrint library
<http://www.haskell.org/ghc/docs/latest/html/libraries/pretty-1.1.1.0/Text-PrettyPrint.html>.
.
The output provided is a pretty printed version of that provided by
Prelude.show. That is, rendering the document provided by this pretty
printer yields an output identical to that of Prelude.show, except
for extra whitespace.
.
For information about the functions exported by the package please see
the API linked further down this page.
For examples of usage, both basic and more complex see the README file and
the haskell source code files in the TestSuite folder, both included in the package.
Finally for installation instructions also see the README file or this page:
<http://www.haskell.org/haskellwiki/Cabal/How_to_install_a_Cabal_package>
-- URL for the project homepage or repository.
Homepage: https://github.com/joe9/GenericPretty
-- The license under which the package is released.
License: BSD3
-- The file containing the license text.
License-file: LICENSE
-- The package author(s).
Author: Razvan Ranca
-- An email address to which users can send suggestions, bug reports,
-- and patches.
Maintainer: [email protected]
-- A copyright notice.
-- Copyright:
Category: Text, Generics, Pretty Printer
Build-type: Simple
-- Extra files to be distributed with the package, such as examples or
-- a README.
Extra-source-files: README
-- Constraint on the version of Cabal needed to build this package.
Cabal-version: >=1.10
Library
-- Modules exported by the library.
Exposed-modules: Text.PrettyPrint.GenericPretty
-- Below modules are only useful while debugging
-- Text.PrettyPrint.TestGenericPretty
-- Text.PrettyPrint.GenericStructure
-- Text.PrettyPrint.GenericPrettyStructure
-- Packages needed in order to build this package.
Build-depends: base >= 3 && < 5
, ghc-prim
, wl-pprint-text
, protolude
, text
, string-conversions
, QuickCheck
, containers
, unordered-containers
, time
, ixset-typed
, groom
, bytestring
-- use Protolude instead of Prelude
ghc-options: -Wall
hs-source-dirs: src
default-language: Haskell2010
-- Modules not exported by this package.
-- Other-modules:
-- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
-- Build-tools:
test-suite GenericPretty-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules: GenericPretty.Tests
U1
Sum
Product
K1
TestData
build-tools: hsc2hs
build-depends: base
, protolude
, string-conversions
, tasty
, tasty-hunit
, tasty-quickcheck
, QuickCheck
, text-generic-pretty
, containers
, unordered-containers
, time
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
other-extensions: NoImplicitPrelude, OverloadedStrings
default-language: Haskell2010
source-repository head
type: git
location: [email protected]:joe9/GenericPretty.git