1 |
commit: 91678ca55906a952a9dbba4840d5db34f0dff5d0 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 25 08:12:54 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 25 08:13:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91678ca5 |
7 |
|
8 |
dev-haskell/lens: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-haskell/lens/Manifest | 1 - |
14 |
dev-haskell/lens/lens-4.19.1.ebuild | 78 ------------------------------------- |
15 |
dev-haskell/lens/metadata.xml | 74 ----------------------------------- |
16 |
3 files changed, 153 deletions(-) |
17 |
|
18 |
diff --git a/dev-haskell/lens/Manifest b/dev-haskell/lens/Manifest |
19 |
index 104a4c01ac8..0ef8594ffd7 100644 |
20 |
--- a/dev-haskell/lens/Manifest |
21 |
+++ b/dev-haskell/lens/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
-DIST lens-4.19.1.tar.gz 704985 BLAKE2B ddb9f660ff6a1930f356ce915f653f81dfa4814f4956e89d1df213dd57e2cab85eeea7be9efb46553c36448b01579319e8bf1d4c739cdc3bc13608d54f9e43f0 SHA512 50a596ce919abc93b453189453abdbf0f455e0531e5b83397d1e61308842222433fd7d4c6c6f5ec74f98d8dd26eefe861a0d88d5faf56a7b896a0b083b920a10 |
24 |
DIST lens-4.19.2-r2.cabal 16053 BLAKE2B 66e0c6048fea41a029780e481e102e1881e0fa381eecbdfb3de01295669abf2ffb91c9c116cfaa9439d027ac4340ff86a37d18333a4ae03f9996be7129b8327d SHA512 6c2a535af6e73026884e925abcb7bca556ebef9cdfd8d340e0d03226b5c4347a9b3dc1b641b4e3386355a4e3e02694b72d076fd7dfabdf995297a2d0dfbb9cd5 |
25 |
DIST lens-4.19.2.tar.gz 705314 BLAKE2B 02de2b8515225c07b039774da06e848c4c1332cb1fc28fe6f782502e8d8b34d09b40bb2272af006157940513b4ce97d192edc45529dd497686cee32a90bfe80d SHA512 f1627c950457c38b0363a71717b76c0c84eafdcebaf14904da632ea295195dee1fd11db07ca524988729254b0e018da4417e40c0cb4f8ff086fbe412ce89f4c6 |
26 |
|
27 |
diff --git a/dev-haskell/lens/lens-4.19.1.ebuild b/dev-haskell/lens/lens-4.19.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 446a515c4d5..00000000000 |
30 |
--- a/dev-haskell/lens/lens-4.19.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,78 +0,0 @@ |
33 |
-# Copyright 1999-2020 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-# ebuild generated by hackport 0.6.4.9999 |
39 |
-#hackport: flags: -lib-werror,+test-hunit,+test-properties |
40 |
- |
41 |
-CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" |
42 |
-inherit haskell-cabal |
43 |
- |
44 |
-DESCRIPTION="Lenses, Folds and Traversals" |
45 |
-HOMEPAGE="https://github.com/ekmett/lens/" |
46 |
-SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" |
47 |
- |
48 |
-LICENSE="BSD-2" |
49 |
-SLOT="0/${PV}" |
50 |
-KEYWORDS="~amd64 ~x86" |
51 |
-IUSE="benchmark-uniplate dump-splices +inlining j old-inline-pragmas safe +test-doctests +test-templates +trustworthy" |
52 |
- |
53 |
-RESTRICT=test # broken on USE=doc |
54 |
- |
55 |
-RDEPEND=">=dev-haskell/base-orphans-0.5.2:=[profile?] <dev-haskell/base-orphans-1:=[profile?] |
56 |
- >=dev-haskell/bifunctors-5.1:=[profile?] <dev-haskell/bifunctors-6:=[profile?] |
57 |
- >=dev-haskell/call-stack-0.1:=[profile?] <dev-haskell/call-stack-0.3:=[profile?] |
58 |
- >=dev-haskell/comonad-4:=[profile?] <dev-haskell/comonad-6:=[profile?] |
59 |
- >=dev-haskell/contravariant-1.3:=[profile?] <dev-haskell/contravariant-2:=[profile?] |
60 |
- >=dev-haskell/distributive-0.3:=[profile?] <dev-haskell/distributive-1:=[profile?] |
61 |
- >=dev-haskell/exceptions-0.1.1:=[profile?] <dev-haskell/exceptions-1:=[profile?] |
62 |
- >=dev-haskell/free-4:=[profile?] <dev-haskell/free-6:=[profile?] |
63 |
- >=dev-haskell/generic-deriving-1.10:=[profile?] <dev-haskell/generic-deriving-2:=[profile?] |
64 |
- >=dev-haskell/hashable-1.1.2.3:=[profile?] <dev-haskell/hashable-1.4:=[profile?] |
65 |
- >=dev-haskell/kan-extensions-5:=[profile?] <dev-haskell/kan-extensions-6:=[profile?] |
66 |
- >=dev-haskell/mtl-2.0.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?] |
67 |
- >=dev-haskell/nats-0.1:=[profile?] <dev-haskell/nats-1.2:=[profile?] |
68 |
- >=dev-haskell/parallel-3.1.0.1:=[profile?] <dev-haskell/parallel-3.3:=[profile?] |
69 |
- >=dev-haskell/profunctors-5.2.1:=[profile?] <dev-haskell/profunctors-6:=[profile?] |
70 |
- >=dev-haskell/reflection-2.1:=[profile?] <dev-haskell/reflection-3:=[profile?] |
71 |
- >=dev-haskell/semigroupoids-5:=[profile?] <dev-haskell/semigroupoids-6:=[profile?] |
72 |
- >=dev-haskell/semigroups-0.8.4:=[profile?] <dev-haskell/semigroups-1:=[profile?] |
73 |
- >=dev-haskell/tagged-0.4.4:=[profile?] <dev-haskell/tagged-1:=[profile?] |
74 |
- >=dev-haskell/text-0.11:=[profile?] <dev-haskell/text-1.3:=[profile?] |
75 |
- >=dev-haskell/th-abstraction-0.3:=[profile?] <dev-haskell/th-abstraction-0.4:=[profile?] |
76 |
- >=dev-haskell/transformers-compat-0.4:=[profile?] <dev-haskell/transformers-compat-1:=[profile?] |
77 |
- >=dev-haskell/unordered-containers-0.2.4:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?] |
78 |
- >=dev-haskell/vector-0.9:=[profile?] <dev-haskell/vector-0.13:=[profile?] |
79 |
- >=dev-haskell/void-0.5:=[profile?] <dev-haskell/void-1:=[profile?] |
80 |
- >=dev-lang/ghc-7.8.2:= |
81 |
-" |
82 |
-DEPEND="${RDEPEND} |
83 |
- >=dev-haskell/cabal-1.18.1.3 <dev-haskell/cabal-3.3 |
84 |
- >=dev-haskell/cabal-doctest-1 <dev-haskell/cabal-doctest-1.1 |
85 |
- test? ( >=dev-haskell/hunit-1.2 |
86 |
- >=dev-haskell/quickcheck-2.4 |
87 |
- >=dev-haskell/test-framework-0.6 |
88 |
- >=dev-haskell/test-framework-hunit-0.2 |
89 |
- >=dev-haskell/test-framework-quickcheck2-0.2 |
90 |
- >=dev-haskell/test-framework-th-0.2 |
91 |
- test-doctests? ( >=dev-haskell/semigroups-0.9 |
92 |
- >=dev-haskell/simple-reflect-0.3.1 |
93 |
- >=dev-haskell/doctest-0.13 <dev-haskell/doctest-0.17 ) ) |
94 |
-" |
95 |
- |
96 |
-src_configure() { |
97 |
- haskell-cabal_src_configure \ |
98 |
- $(cabal_flag benchmark-uniplate benchmark-uniplate) \ |
99 |
- $(cabal_flag dump-splices dump-splices) \ |
100 |
- $(cabal_flag inlining inlining) \ |
101 |
- $(cabal_flag j j) \ |
102 |
- --flag=-lib-werror \ |
103 |
- $(cabal_flag old-inline-pragmas old-inline-pragmas) \ |
104 |
- $(cabal_flag safe safe) \ |
105 |
- $(cabal_flag test-doctests test-doctests) \ |
106 |
- --flag=test-hunit \ |
107 |
- --flag=test-properties \ |
108 |
- $(cabal_flag test-templates test-templates) \ |
109 |
- $(cabal_flag trustworthy trustworthy) |
110 |
-} |
111 |
|
112 |
diff --git a/dev-haskell/lens/metadata.xml b/dev-haskell/lens/metadata.xml |
113 |
index 480622bff29..b1e5405daf6 100644 |
114 |
--- a/dev-haskell/lens/metadata.xml |
115 |
+++ b/dev-haskell/lens/metadata.xml |
116 |
@@ -5,77 +5,6 @@ |
117 |
<email>haskell@g.o</email> |
118 |
<name>Gentoo Haskell</name> |
119 |
</maintainer> |
120 |
- <longdescription> |
121 |
- This package comes \"Batteries Included\" with many useful lenses for the types |
122 |
- commonly used from the Haskell Platform, and with tools for automatically |
123 |
- generating lenses and isomorphisms for user-supplied data types. |
124 |
- |
125 |
- The combinators in @Control.Lens@ provide a highly generic toolbox for composing |
126 |
- families of getters, folds, isomorphisms, traversals, setters and lenses and their |
127 |
- indexed variants. |
128 |
- |
129 |
- An overview, with a large number of examples can be found in the @README@: <https://github.com/ekmett/lens#lens-lenses-folds-and-traversals> |
130 |
- |
131 |
- A video on how to use lenses and how they are constructed is available from youtube: <http://youtu.be/cefnmjtAolY?hd=1> |
132 |
- |
133 |
- Slides can be obtained here: <http://comonad.com/haskell/Lenses-Folds-and-Traversals-NYC.pdf> |
134 |
- |
135 |
- More information on the care and feeding of lenses, including a brief tutorial and motivation |
136 |
- for their types can be found on the lens wiki: <https://github.com/ekmett/lens/wiki> |
137 |
- |
138 |
- A small game of @pong@ and other more complex examples that manage their state using lenses can be found in the example folder: <https://github.com/ekmett/lens/blob/master/examples/> |
139 |
- |
140 |
- /Lenses, Folds and Traversals/ |
141 |
- |
142 |
- The core of the hierarchy of lens-like constructions looks like: |
143 |
- |
144 |
- |
145 |
- <<http://i.imgur.com/4fHw3Fd.png>> |
146 |
- |
147 |
- Local copy (<Hierarchy.png>) |
148 |
- |
149 |
- You can compose any two elements of the hierarchy above using @(.)@ from the @Prelude@, and you can |
150 |
- use any element of the hierarchy as any type it linked to above it. |
151 |
- |
152 |
- The result is their lowest upper bound in the hierarchy (or an error if that bound doesn't exist). |
153 |
- |
154 |
- For instance: |
155 |
- |
156 |
- * You can use any 'Traversal' as a 'Fold' or as a 'Setter'. |
157 |
- |
158 |
- * The composition of a 'Traversal' and a 'Getter' yields a 'Fold'. |
159 |
- |
160 |
- /Minimizing Dependencies/ |
161 |
- |
162 |
- If you want to provide lenses and traversals for your own types in your own libraries, then you |
163 |
- can do so without incurring a dependency on this (or any other) lens package at all. |
164 |
- |
165 |
- /e.g./ for a data type: |
166 |
- |
167 |
- > data Foo a = Foo Int Int a |
168 |
- |
169 |
- You can define lenses such as |
170 |
- |
171 |
- > -- bar :: Lens' (Foo a) Int |
172 |
- > bar :: Functor f => (Int -> f Int) -> Foo a -> f (Foo a) |
173 |
- > bar f (Foo a b c) = fmap (\a' -> Foo a' b c) (f a) |
174 |
- |
175 |
- > -- baz :: Lens (Foo a) (Foo b) a b |
176 |
- > quux :: Functor f => (a -> f b) -> Foo a -> f (Foo b) |
177 |
- > quux f (Foo a b c) = fmap (Foo a b) (f c) |
178 |
- |
179 |
- without the need to use any type that isn't already defined in the @Prelude@. |
180 |
- |
181 |
- And you can define a traversal of multiple fields with 'Control.Applicative.Applicative': |
182 |
- |
183 |
- > -- traverseBarAndBaz :: Traversal' (Foo a) Int |
184 |
- > traverseBarAndBaz :: Applicative f => (Int -> f Int) -> Foo a -> f (Foo a) |
185 |
- > traverseBarAndBaz f (Foo a b c) = Foo <$> f a <*> f b <*> pure c |
186 |
- |
187 |
- What is provided in this library is a number of stock lenses and traversals for |
188 |
- common haskell types, a wide array of combinators for working them, and more |
189 |
- exotic functionality, (/e.g./ getters, setters, indexed folds, isomorphisms). |
190 |
- </longdescription> |
191 |
<use> |
192 |
<flag name="benchmark-uniplate"> |
193 |
Enable benchmarking against Neil Mitchell's |
194 |
@@ -89,12 +18,9 @@ |
195 |
or as last ditch effort to address compile errors resulting |
196 |
from the myriad versions of template-haskell that all purport to be 2.8. |
197 |
</flag> |
198 |
- <flag name="old-inline-pragmas">Some 7.6.1-rc1 users report their TH still uses old style inline pragmas. This lets them turn on inlining.</flag> |
199 |
<flag name="safe">Disallow unsafeCoerce</flag> |
200 |
<flag name="dump-splices">Build and run the doctests test-suite.</flag> |
201 |
<flag name="j">Attempt a parallel build with GHC 7.8.</flag> |
202 |
- <flag name="test-doctests">Build and run the doctests test-suite.</flag> |
203 |
- <flag name="test-templates">Build the test templates if we're building tests</flag> |
204 |
<flag name="trustworthy">Assert that we are trustworthy when we can</flag> |
205 |
</use> |
206 |
<upstream> |