2015-08-02 19:48:36 +00:00
|
|
|
From 10c9ade98b3ac2054947f411d77db2eb28896b9f Mon Sep 17 00:00:00 2001
|
2013-12-18 21:41:17 +00:00
|
|
|
From: dummy <dummy@example.com>
|
2015-08-02 19:48:36 +00:00
|
|
|
Date: Thu, 16 Oct 2014 01:43:10 +0000
|
|
|
|
Subject: [PATCH] avoid TH
|
2013-12-18 21:41:17 +00:00
|
|
|
|
|
|
|
---
|
2015-08-02 19:48:36 +00:00
|
|
|
lens.cabal | 17 +----------------
|
|
|
|
src/Control/Lens.hs | 8 ++------
|
2014-06-11 02:35:19 +00:00
|
|
|
src/Control/Lens/Cons.hs | 2 --
|
|
|
|
src/Control/Lens/Internal/Fold.hs | 2 --
|
|
|
|
src/Control/Lens/Operators.hs | 2 +-
|
|
|
|
src/Control/Lens/Prism.hs | 2 --
|
|
|
|
src/Control/Monad/Primitive/Lens.hs | 1 -
|
2015-08-02 19:48:36 +00:00
|
|
|
7 files changed, 4 insertions(+), 30 deletions(-)
|
2013-12-18 21:41:17 +00:00
|
|
|
|
|
|
|
diff --git a/lens.cabal b/lens.cabal
|
2015-08-02 19:48:36 +00:00
|
|
|
index 5388301..d7b02b9 100644
|
2013-12-18 21:41:17 +00:00
|
|
|
--- a/lens.cabal
|
|
|
|
+++ b/lens.cabal
|
|
|
|
@@ -10,7 +10,7 @@ stability: provisional
|
|
|
|
homepage: http://github.com/ekmett/lens/
|
|
|
|
bug-reports: http://github.com/ekmett/lens/issues
|
2014-02-08 17:24:31 +00:00
|
|
|
copyright: Copyright (C) 2012-2014 Edward A. Kmett
|
2013-12-18 21:41:17 +00:00
|
|
|
-build-type: Custom
|
|
|
|
+build-type: Simple
|
2014-02-08 17:24:31 +00:00
|
|
|
-- build-tools: cpphs
|
2014-06-11 02:35:19 +00:00
|
|
|
tested-with: GHC == 7.4.1, GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.1, GHC == 7.8.2
|
2013-12-18 21:41:17 +00:00
|
|
|
synopsis: Lenses, Folds and Traversals
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -217,7 +217,6 @@ library
|
|
|
|
Control.Exception.Lens
|
|
|
|
Control.Lens
|
|
|
|
Control.Lens.Action
|
|
|
|
- Control.Lens.At
|
|
|
|
Control.Lens.Combinators
|
|
|
|
Control.Lens.Cons
|
|
|
|
Control.Lens.Each
|
|
|
|
@@ -234,8 +233,6 @@ library
|
2014-10-16 04:31:59 +00:00
|
|
|
Control.Lens.Internal.Context
|
|
|
|
Control.Lens.Internal.Deque
|
|
|
|
Control.Lens.Internal.Exception
|
|
|
|
- Control.Lens.Internal.FieldTH
|
|
|
|
- Control.Lens.Internal.PrismTH
|
|
|
|
Control.Lens.Internal.Fold
|
|
|
|
Control.Lens.Internal.Getter
|
|
|
|
Control.Lens.Internal.Indexed
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -247,25 +244,21 @@ library
|
2014-05-21 16:42:22 +00:00
|
|
|
Control.Lens.Internal.Reflection
|
|
|
|
Control.Lens.Internal.Review
|
|
|
|
Control.Lens.Internal.Setter
|
|
|
|
- Control.Lens.Internal.TH
|
|
|
|
Control.Lens.Internal.Zoom
|
|
|
|
Control.Lens.Iso
|
|
|
|
Control.Lens.Lens
|
2014-03-07 06:23:03 +00:00
|
|
|
Control.Lens.Level
|
|
|
|
Control.Lens.Loupe
|
|
|
|
Control.Lens.Operators
|
|
|
|
- Control.Lens.Plated
|
|
|
|
Control.Lens.Prism
|
2014-02-08 17:24:31 +00:00
|
|
|
Control.Lens.Reified
|
2013-12-18 21:41:17 +00:00
|
|
|
Control.Lens.Review
|
|
|
|
Control.Lens.Setter
|
|
|
|
- Control.Lens.TH
|
|
|
|
Control.Lens.Traversal
|
|
|
|
Control.Lens.Tuple
|
|
|
|
Control.Lens.Type
|
|
|
|
Control.Lens.Wrapped
|
|
|
|
Control.Lens.Zoom
|
|
|
|
- Control.Monad.Error.Lens
|
2014-02-08 17:24:31 +00:00
|
|
|
Control.Monad.Primitive.Lens
|
2013-12-18 21:41:17 +00:00
|
|
|
Control.Parallel.Strategies.Lens
|
|
|
|
Control.Seq.Lens
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -291,12 +284,8 @@ library
|
2013-12-18 21:41:17 +00:00
|
|
|
Data.Typeable.Lens
|
|
|
|
Data.Vector.Lens
|
|
|
|
Data.Vector.Generic.Lens
|
|
|
|
- Generics.Deriving.Lens
|
|
|
|
- GHC.Generics.Lens
|
|
|
|
System.Exit.Lens
|
|
|
|
System.FilePath.Lens
|
|
|
|
- System.IO.Error.Lens
|
|
|
|
- Language.Haskell.TH.Lens
|
|
|
|
Numeric.Lens
|
|
|
|
|
2014-10-16 04:31:59 +00:00
|
|
|
other-modules:
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -403,7 +392,6 @@ test-suite doctests
|
2013-12-18 21:41:17 +00:00
|
|
|
deepseq,
|
|
|
|
doctest >= 0.9.1,
|
|
|
|
filepath,
|
|
|
|
- generic-deriving,
|
|
|
|
mtl,
|
|
|
|
nats,
|
|
|
|
parallel,
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -441,7 +429,6 @@ benchmark plated
|
2013-12-18 21:41:17 +00:00
|
|
|
comonad,
|
|
|
|
criterion,
|
|
|
|
deepseq,
|
|
|
|
- generic-deriving,
|
|
|
|
lens,
|
|
|
|
transformers
|
|
|
|
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -476,7 +463,6 @@ benchmark unsafe
|
2013-12-18 21:41:17 +00:00
|
|
|
comonads-fd,
|
|
|
|
criterion,
|
|
|
|
deepseq,
|
|
|
|
- generic-deriving,
|
|
|
|
lens,
|
|
|
|
transformers
|
|
|
|
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -493,6 +479,5 @@ benchmark zipper
|
2013-12-18 21:41:17 +00:00
|
|
|
comonads-fd,
|
|
|
|
criterion,
|
|
|
|
deepseq,
|
|
|
|
- generic-deriving,
|
|
|
|
lens,
|
|
|
|
transformers
|
|
|
|
diff --git a/src/Control/Lens.hs b/src/Control/Lens.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
index 7e15267..433f1fc 100644
|
2013-12-18 21:41:17 +00:00
|
|
|
--- a/src/Control/Lens.hs
|
|
|
|
+++ b/src/Control/Lens.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -41,7 +41,6 @@
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
module Control.Lens
|
|
|
|
( module Control.Lens.Action
|
|
|
|
- , module Control.Lens.At
|
|
|
|
, module Control.Lens.Cons
|
|
|
|
, module Control.Lens.Each
|
|
|
|
, module Control.Lens.Empty
|
|
|
|
@@ -53,12 +52,11 @@ module Control.Lens
|
2014-03-07 06:23:03 +00:00
|
|
|
, module Control.Lens.Lens
|
|
|
|
, module Control.Lens.Level
|
|
|
|
, module Control.Lens.Loupe
|
|
|
|
- , module Control.Lens.Plated
|
|
|
|
, module Control.Lens.Prism
|
2014-02-08 17:24:31 +00:00
|
|
|
, module Control.Lens.Reified
|
2013-12-18 21:41:17 +00:00
|
|
|
, module Control.Lens.Review
|
|
|
|
, module Control.Lens.Setter
|
|
|
|
-#ifndef DISABLE_TEMPLATE_HASKELL
|
|
|
|
+#if 0
|
|
|
|
, module Control.Lens.TH
|
|
|
|
#endif
|
|
|
|
, module Control.Lens.Traversal
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -69,7 +67,6 @@ module Control.Lens
|
|
|
|
) where
|
|
|
|
|
|
|
|
import Control.Lens.Action
|
|
|
|
-import Control.Lens.At
|
|
|
|
import Control.Lens.Cons
|
|
|
|
import Control.Lens.Each
|
|
|
|
import Control.Lens.Empty
|
|
|
|
@@ -81,12 +78,11 @@ import Control.Lens.Iso
|
2014-03-07 06:23:03 +00:00
|
|
|
import Control.Lens.Lens
|
|
|
|
import Control.Lens.Level
|
|
|
|
import Control.Lens.Loupe
|
|
|
|
-import Control.Lens.Plated
|
|
|
|
import Control.Lens.Prism
|
2014-02-08 17:24:31 +00:00
|
|
|
import Control.Lens.Reified
|
2013-12-18 21:41:17 +00:00
|
|
|
import Control.Lens.Review
|
|
|
|
import Control.Lens.Setter
|
|
|
|
-#ifndef DISABLE_TEMPLATE_HASKELL
|
|
|
|
+#if 0
|
|
|
|
import Control.Lens.TH
|
|
|
|
#endif
|
|
|
|
import Control.Lens.Traversal
|
2014-02-08 17:24:31 +00:00
|
|
|
diff --git a/src/Control/Lens/Cons.hs b/src/Control/Lens/Cons.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
index a80e9c8..7d27b80 100644
|
2014-02-08 17:24:31 +00:00
|
|
|
--- a/src/Control/Lens/Cons.hs
|
|
|
|
+++ b/src/Control/Lens/Cons.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -55,8 +55,6 @@ import Data.Vector.Unboxed (Unbox)
|
|
|
|
import qualified Data.Vector.Unboxed as Unbox
|
2014-02-08 17:24:31 +00:00
|
|
|
import Data.Word
|
2013-12-18 21:41:17 +00:00
|
|
|
|
2014-02-08 17:24:31 +00:00
|
|
|
-{-# ANN module "HLint: ignore Eta reduce" #-}
|
2013-12-18 21:41:17 +00:00
|
|
|
-
|
2014-02-08 17:24:31 +00:00
|
|
|
-- $setup
|
|
|
|
-- >>> :set -XNoOverloadedStrings
|
|
|
|
-- >>> import Control.Lens
|
|
|
|
diff --git a/src/Control/Lens/Internal/Fold.hs b/src/Control/Lens/Internal/Fold.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
index ab09c6b..43aa905 100644
|
2014-02-08 17:24:31 +00:00
|
|
|
--- a/src/Control/Lens/Internal/Fold.hs
|
|
|
|
+++ b/src/Control/Lens/Internal/Fold.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -37,8 +37,6 @@ import Data.Maybe
|
|
|
|
import Data.Semigroup hiding (Min, getMin, Max, getMax)
|
2014-02-08 17:24:31 +00:00
|
|
|
import Data.Reflection
|
|
|
|
|
|
|
|
-{-# ANN module "HLint: ignore Avoid lambda" #-}
|
2013-12-18 21:41:17 +00:00
|
|
|
-
|
|
|
|
------------------------------------------------------------------------------
|
2014-02-08 17:24:31 +00:00
|
|
|
-- Folding
|
2013-12-18 21:41:17 +00:00
|
|
|
------------------------------------------------------------------------------
|
2014-03-07 06:23:03 +00:00
|
|
|
diff --git a/src/Control/Lens/Operators.hs b/src/Control/Lens/Operators.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
index 9992e63..631e8e6 100644
|
2014-03-07 06:23:03 +00:00
|
|
|
--- a/src/Control/Lens/Operators.hs
|
|
|
|
+++ b/src/Control/Lens/Operators.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -111,7 +111,7 @@ module Control.Lens.Operators
|
2014-03-07 06:23:03 +00:00
|
|
|
, (<#~)
|
|
|
|
, (<#=)
|
|
|
|
-- * "Control.Lens.Plated"
|
|
|
|
- , (...)
|
|
|
|
+ --, (...)
|
|
|
|
-- * "Control.Lens.Review"
|
|
|
|
, ( # )
|
|
|
|
-- * "Control.Lens.Setter"
|
2013-12-18 21:41:17 +00:00
|
|
|
diff --git a/src/Control/Lens/Prism.hs b/src/Control/Lens/Prism.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
index b75c870..c6c6596 100644
|
2013-12-18 21:41:17 +00:00
|
|
|
--- a/src/Control/Lens/Prism.hs
|
|
|
|
+++ b/src/Control/Lens/Prism.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -61,8 +61,6 @@ import Unsafe.Coerce
|
|
|
|
import Data.Profunctor.Unsafe
|
2013-12-18 21:41:17 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
-{-# ANN module "HLint: ignore Use camelCase" #-}
|
|
|
|
-
|
|
|
|
-- $setup
|
|
|
|
-- >>> :set -XNoOverloadedStrings
|
|
|
|
-- >>> import Control.Lens
|
2014-02-08 17:24:31 +00:00
|
|
|
diff --git a/src/Control/Monad/Primitive/Lens.hs b/src/Control/Monad/Primitive/Lens.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
index ee942c6..2f37134 100644
|
2014-02-08 17:24:31 +00:00
|
|
|
--- a/src/Control/Monad/Primitive/Lens.hs
|
|
|
|
+++ b/src/Control/Monad/Primitive/Lens.hs
|
2015-08-02 19:48:36 +00:00
|
|
|
@@ -20,7 +20,6 @@ import Control.Lens
|
|
|
|
import Control.Monad.Primitive (PrimMonad(..))
|
2014-02-08 17:24:31 +00:00
|
|
|
import GHC.Prim (State#)
|
|
|
|
|
|
|
|
-{-# ANN module "HLint: ignore Unused LANGUAGE pragma" #-}
|
|
|
|
|
2015-08-02 19:48:36 +00:00
|
|
|
prim :: (PrimMonad m) => Iso' (m a) (State# (PrimState m) -> (# State# (PrimState m), a #))
|
|
|
|
prim = iso internal primitive
|
2013-12-18 21:41:17 +00:00
|
|
|
--
|
2015-08-02 19:48:36 +00:00
|
|
|
2.1.1
|
2013-12-18 21:41:17 +00:00
|
|
|
|