lens 4.8 → 4.9
raw patch · 35 files changed
+247/−103 lines, 35 filesdep −primitivePVP ok
version bump matches the API change (PVP)
Dependencies removed: primitive
API changes (from Hackage documentation)
- Control.Lens.At: instance (a ~ a2) => Ixed (a, a2)
- Control.Lens.Cons: instance (a ~ b) => Cons (NonEmpty a) (NonEmpty b) a b
- Control.Lens.Cons: instance (a ~ b) => Snoc (NonEmpty a) (NonEmpty b) a b
- Control.Lens.Each: instance (c ~ d) => Each (HashMap c a) (HashMap d b) a b
- Control.Lens.Each: instance (c ~ d) => Each (Map c a) (Map d b) a b
- Control.Lens.Equality: [Identical] :: Identical a b a b
- Control.Lens.Getter: [Const] :: a -> Const a b
- Control.Lens.Getter: [getConst] :: Const a b -> a
- Control.Lens.Indexed: [Indexed] :: (i -> a -> b) -> Indexed i a b
- Control.Lens.Indexed: [runIndexed] :: Indexed i a b -> i -> a -> b
- Control.Lens.Internal.Bazaar: [Bazaar1] :: (forall f. Apply f => p a (f b) -> f t) -> Bazaar1 p a b t
- Control.Lens.Internal.Bazaar: [BazaarT1] :: (forall f. Apply f => p a (f b) -> f t) -> BazaarT1 p a b t
- Control.Lens.Internal.Bazaar: [BazaarT] :: (forall f. Applicative f => p a (f b) -> f t) -> BazaarT p a b t
- Control.Lens.Internal.Bazaar: [Bazaar] :: (forall f. Applicative f => p a (f b) -> f t) -> Bazaar p a b t
- Control.Lens.Internal.Bazaar: [runBazaar1] :: Bazaar1 p a b t -> forall f. Apply f => p a (f b) -> f t
- Control.Lens.Internal.Bazaar: [runBazaarT1] :: BazaarT1 p a b t -> forall f. Apply f => p a (f b) -> f t
- Control.Lens.Internal.Bazaar: [runBazaarT] :: BazaarT p a b t -> forall f. Applicative f => p a (f b) -> f t
- Control.Lens.Internal.Bazaar: [runBazaar] :: Bazaar p a b t -> forall f. Applicative f => p a (f b) -> f t
- Control.Lens.Internal.Context: [Context] :: (b -> t) -> a -> Context a b t
- Control.Lens.Internal.Context: [PretextT] :: (forall f. Functor f => p a (f b) -> f t) -> PretextT p a b t
- Control.Lens.Internal.Context: [Pretext] :: (forall f. Functor f => p a (f b) -> f t) -> Pretext p a b t
- Control.Lens.Internal.Context: [runPretextT] :: PretextT p a b t -> forall f. Functor f => p a (f b) -> f t
- Control.Lens.Internal.Context: [runPretext] :: Pretext p a b t -> forall f. Functor f => p a (f b) -> f t
- Control.Lens.Internal.Context: instance (a ~ b) => Comonad (Context a b)
- Control.Lens.Internal.Context: instance (a ~ b) => ComonadStore a (Context a b)
- Control.Lens.Internal.Deque: [BD] :: !Int -> [a] -> !Int -> [a] -> Deque a
- Control.Lens.Internal.Exception: [HandlingException] :: HandlingException
- Control.Lens.Internal.Exception: instance forall (k :: BOX) a (s :: k) (m :: * -> *). (Reifies s (SomeException -> Maybe a), Typeable (Handling a s m)) => Exception (Handling a s m)
- Control.Lens.Internal.Exception: instance forall (k :: BOX) a (s :: k) (m :: * -> *). Show (Handling a s m)
- Control.Lens.Internal.FieldTH: [LensRules] :: Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> (Name -> [Name] -> Name -> [DefName]) -> (Name -> Maybe (Name, Name)) -> LensRules
- Control.Lens.Internal.FieldTH: [MethodName] :: Name -> Name -> DefName
- Control.Lens.Internal.FieldTH: [TopName] :: Name -> DefName
- Control.Lens.Internal.FieldTH: [_allowIsos] :: LensRules -> Bool
- Control.Lens.Internal.FieldTH: [_allowUpdates] :: LensRules -> Bool
- Control.Lens.Internal.FieldTH: [_classyLenses] :: LensRules -> Name -> Maybe (Name, Name)
- Control.Lens.Internal.FieldTH: [_fieldToDef] :: LensRules -> Name -> [Name] -> Name -> [DefName]
- Control.Lens.Internal.FieldTH: [_generateClasses] :: LensRules -> Bool
- Control.Lens.Internal.FieldTH: [_generateSigs] :: LensRules -> Bool
- Control.Lens.Internal.FieldTH: [_lazyPatterns] :: LensRules -> Bool
- Control.Lens.Internal.FieldTH: [_simpleLenses] :: LensRules -> Bool
- Control.Lens.Internal.Fold: [Folding] :: f a -> Folding f a
- Control.Lens.Internal.Fold: [LLeaf] :: a -> Leftmost a
- Control.Lens.Internal.Fold: [LPure] :: Leftmost a
- Control.Lens.Internal.Fold: [LStep] :: (Leftmost a) -> Leftmost a
- Control.Lens.Internal.Fold: [M] :: a -> M a s
- Control.Lens.Internal.Fold: [Max] :: a -> Max a
- Control.Lens.Internal.Fold: [Min] :: a -> Min a
- Control.Lens.Internal.Fold: [NoMax] :: Max a
- Control.Lens.Internal.Fold: [NoMin] :: Min a
- Control.Lens.Internal.Fold: [RLeaf] :: a -> Rightmost a
- Control.Lens.Internal.Fold: [RPure] :: Rightmost a
- Control.Lens.Internal.Fold: [RStep] :: (Rightmost a) -> Rightmost a
- Control.Lens.Internal.Fold: [ReifiedMonoid] :: (a -> a -> a) -> a -> ReifiedMonoid a
- Control.Lens.Internal.Fold: [Sequenced] :: m a -> Sequenced a m
- Control.Lens.Internal.Fold: [Traversed] :: f a -> Traversed a f
- Control.Lens.Internal.Fold: [getFolding] :: Folding f a -> f a
- Control.Lens.Internal.Fold: [getSequenced] :: Sequenced a m -> m a
- Control.Lens.Internal.Fold: [getTraversed] :: Traversed a f -> f a
- Control.Lens.Internal.Fold: [reifiedMappend] :: ReifiedMonoid a -> a -> a -> a
- Control.Lens.Internal.Fold: [reifiedMempty] :: ReifiedMonoid a -> a
- Control.Lens.Internal.Getter: [AlongsideLeft] :: f (a, b) -> AlongsideLeft f b a
- Control.Lens.Internal.Getter: [AlongsideRight] :: f (a, b) -> AlongsideRight f a b
- Control.Lens.Internal.Getter: [getAlongsideLeft] :: AlongsideLeft f b a -> f (a, b)
- Control.Lens.Internal.Getter: [getAlongsideRight] :: AlongsideRight f a b -> f (a, b)
- Control.Lens.Internal.Indexed: [Indexed] :: (i -> a -> b) -> Indexed i a b
- Control.Lens.Internal.Indexed: [Indexing64] :: (Int64 -> (Int64, f a)) -> Indexing64 f a
- Control.Lens.Internal.Indexed: [Indexing] :: (Int -> (Int, f a)) -> Indexing f a
- Control.Lens.Internal.Indexed: [runIndexed] :: Indexed i a b -> i -> a -> b
- Control.Lens.Internal.Indexed: [runIndexing64] :: Indexing64 f a -> Int64 -> (Int64, f a)
- Control.Lens.Internal.Indexed: [runIndexing] :: Indexing f a -> Int -> (Int, f a)
- Control.Lens.Internal.Indexed: instance (i ~ j) => Indexable i (Indexed j)
- Control.Lens.Internal.Iso: [Exchange] :: (s -> a) -> (b -> t) -> Exchange a b s t
- Control.Lens.Internal.Level: [Deepening] :: (forall r. Int -> (Level i a -> Bool -> r) -> r) -> Deepening i a
- Control.Lens.Internal.Level: [Flows] :: ([Level i b] -> a) -> Flows i b a
- Control.Lens.Internal.Level: [One] :: i -> a -> Level i a
- Control.Lens.Internal.Level: [Two] :: {-# UNPACK #-} !Word -> !(Level i a) -> !(Level i a) -> Level i a
- Control.Lens.Internal.Level: [Zero] :: Level i a
- Control.Lens.Internal.Level: [runDeepening] :: Deepening i a -> forall r. Int -> (Level i a -> Bool -> r) -> r
- Control.Lens.Internal.Level: [runFlows] :: Flows i b a -> [Level i b] -> a
- Control.Lens.Internal.Magma: [Mafic] :: Int -> (Int -> Magma Int t b a) -> Mafic a b t
- Control.Lens.Internal.Magma: [MagmaAp] :: Magma i (x -> y) b a -> Magma i x b a -> Magma i y b a
- Control.Lens.Internal.Magma: [MagmaFmap] :: (x -> y) -> Magma i x b a -> Magma i y b a
- Control.Lens.Internal.Magma: [MagmaPure] :: x -> Magma i x b a
- Control.Lens.Internal.Magma: [Magma] :: i -> a -> Magma i b b a
- Control.Lens.Internal.Magma: [Molten] :: Magma i t b a -> Molten i a b t
- Control.Lens.Internal.Magma: [TakingWhile] :: Bool -> t -> (Bool -> Magma () t b (Corep p a)) -> TakingWhile p a b t
- Control.Lens.Internal.Magma: [runMolten] :: Molten i a b t -> Magma i t b a
- Control.Lens.Internal.Magma: instance (a ~ b) => Comonad (Molten i a b)
- Control.Lens.Internal.Prism: [Market] :: (b -> t) -> (s -> Either t a) -> Market a b s t
- Control.Lens.Internal.Zoom: [EffectRWS] :: (st -> m (s, st, w)) -> EffectRWS w st m s a
- Control.Lens.Internal.Zoom: [Effect] :: m r -> Effect m r a
- Control.Lens.Internal.Zoom: [Err] :: Either e a -> Err e a
- Control.Lens.Internal.Zoom: [FocusingErr] :: k (Err e s) a -> FocusingErr e k s a
- Control.Lens.Internal.Zoom: [FocusingMay] :: k (May s) a -> FocusingMay k s a
- Control.Lens.Internal.Zoom: [FocusingOn] :: k (f s) a -> FocusingOn f k s a
- Control.Lens.Internal.Zoom: [FocusingPlus] :: k (s, w) a -> FocusingPlus w k s a
- Control.Lens.Internal.Zoom: [FocusingWith] :: m (s, a, w) -> FocusingWith w m s a
- Control.Lens.Internal.Zoom: [Focusing] :: m (s, a) -> Focusing m s a
- Control.Lens.Internal.Zoom: [May] :: Maybe a -> May a
- Control.Lens.Internal.Zoom: [getEffectRWS] :: EffectRWS w st m s a -> st -> m (s, st, w)
- Control.Lens.Internal.Zoom: [getEffect] :: Effect m r a -> m r
- Control.Lens.Internal.Zoom: [getErr] :: Err e a -> Either e a
- Control.Lens.Internal.Zoom: [getMay] :: May a -> Maybe a
- Control.Lens.Internal.Zoom: [unfocusingErr] :: FocusingErr e k s a -> k (Err e s) a
- Control.Lens.Internal.Zoom: [unfocusingMay] :: FocusingMay k s a -> k (May s) a
- Control.Lens.Internal.Zoom: [unfocusingOn] :: FocusingOn f k s a -> k (f s) a
- Control.Lens.Internal.Zoom: [unfocusingPlus] :: FocusingPlus w k s a -> k (s, w) a
- Control.Lens.Internal.Zoom: [unfocusingWith] :: FocusingWith w m s a -> m (s, a, w)
- Control.Lens.Internal.Zoom: [unfocusing] :: Focusing m s a -> m (s, a)
- Control.Lens.Lens: [Context] :: (b -> t) -> a -> Context a b t
- Control.Lens.Plated: instance (GPlated a f, GPlated a g) => GPlated a (f :*: g)
- Control.Lens.Plated: instance (GPlated a f, GPlated a g) => GPlated a (f :+: g)
- Control.Lens.Plated: instance (Traversable f, Traversable m) => Plated (FreeT f m a)
- Control.Lens.Plated: instance GPlated a (K1 i b)
- Control.Lens.Plated: instance GPlated a U1
- Control.Lens.Plated: instance GPlated a V1
- Control.Lens.Plated: instance GPlated a f => GPlated a (M1 i c f)
- Control.Lens.Plated: instance Plated (Tree a)
- Control.Lens.Plated: instance Plated Con
- Control.Lens.Plated: instance Plated Dec
- Control.Lens.Plated: instance Plated Exp
- Control.Lens.Plated: instance Plated Pat
- Control.Lens.Plated: instance Plated Stmt
- Control.Lens.Plated: instance Plated Type
- Control.Lens.Plated: instance Plated [a]
- Control.Lens.Plated: instance Traversable f => Plated (Cofree f a)
- Control.Lens.Plated: instance Traversable f => Plated (F f a)
- Control.Lens.Plated: instance Traversable f => Plated (Free f a)
- Control.Lens.Plated: instance [overlapping] GPlated a (K1 i a)
- Control.Lens.Reified: [Fold] :: Fold s a -> ReifiedFold s a
- Control.Lens.Reified: [Getter] :: Getter s a -> ReifiedGetter s a
- Control.Lens.Reified: [IndexedFold] :: IndexedFold i s a -> ReifiedIndexedFold i s a
- Control.Lens.Reified: [IndexedGetter] :: IndexedGetter i s a -> ReifiedIndexedGetter i s a
- Control.Lens.Reified: [IndexedLens] :: IndexedLens i s t a b -> ReifiedIndexedLens i s t a b
- Control.Lens.Reified: [IndexedSetter] :: IndexedSetter i s t a b -> ReifiedIndexedSetter i s t a b
- Control.Lens.Reified: [IndexedTraversal] :: IndexedTraversal i s t a b -> ReifiedIndexedTraversal i s t a b
- Control.Lens.Reified: [Iso] :: Iso s t a b -> ReifiedIso s t a b
- Control.Lens.Reified: [Lens] :: Lens s t a b -> ReifiedLens s t a b
- Control.Lens.Reified: [Prism] :: Prism s t a b -> ReifiedPrism s t a b
- Control.Lens.Reified: [Setter] :: Setter s t a b -> ReifiedSetter s t a b
- Control.Lens.Reified: [Traversal] :: Traversal s t a b -> ReifiedTraversal s t a b
- Control.Lens.Reified: [runFold] :: ReifiedFold s a -> Fold s a
- Control.Lens.Reified: [runGetter] :: ReifiedGetter s a -> Getter s a
- Control.Lens.Reified: [runIndexedFold] :: ReifiedIndexedFold i s a -> IndexedFold i s a
- Control.Lens.Reified: [runIndexedGetter] :: ReifiedIndexedGetter i s a -> IndexedGetter i s a
- Control.Lens.Reified: [runIndexedLens] :: ReifiedIndexedLens i s t a b -> IndexedLens i s t a b
- Control.Lens.Reified: [runIndexedSetter] :: ReifiedIndexedSetter i s t a b -> IndexedSetter i s t a b
- Control.Lens.Reified: [runIndexedTraversal] :: ReifiedIndexedTraversal i s t a b -> IndexedTraversal i s t a b
- Control.Lens.Reified: [runIso] :: ReifiedIso s t a b -> Iso s t a b
- Control.Lens.Reified: [runLens] :: ReifiedLens s t a b -> Lens s t a b
- Control.Lens.Reified: [runPrism] :: ReifiedPrism s t a b -> Prism s t a b
- Control.Lens.Reified: [runSetter] :: ReifiedSetter s t a b -> Setter s t a b
- Control.Lens.Reified: [runTraversal] :: ReifiedTraversal s t a b -> Traversal s t a b
- Control.Lens.Setter: [Identity] :: a -> Identity a
- Control.Lens.Setter: [runIdentity] :: Identity a -> a
- Control.Lens.TH: [MethodName] :: Name -> Name -> DefName
- Control.Lens.TH: [TopName] :: Name -> DefName
- Control.Lens.Traversal: [Bazaar1] :: (forall f. Apply f => p a (f b) -> f t) -> Bazaar1 p a b t
- Control.Lens.Traversal: [Bazaar] :: (forall f. Applicative f => p a (f b) -> f t) -> Bazaar p a b t
- Control.Lens.Traversal: [runBazaar1] :: Bazaar1 p a b t -> forall f. Apply f => p a (f b) -> f t
- Control.Lens.Traversal: [runBazaar] :: Bazaar p a b t -> forall f. Applicative f => p a (f b) -> f t
- Control.Lens.Wrapped: instance (t ~ All) => Rewrapped All t
- Control.Lens.Wrapped: instance (t ~ Any) => Rewrapped Any t
- Control.Lens.Wrapped: instance (t ~ AssertionFailed) => Rewrapped AssertionFailed t
- Control.Lens.Wrapped: instance (t ~ Backwards g b) => Rewrapped (Backwards f a) t
- Control.Lens.Wrapped: instance (t ~ Comparison b) => Rewrapped (Comparison a) t
- Control.Lens.Wrapped: instance (t ~ Compose f' g' a') => Rewrapped (Compose f g a) t
- Control.Lens.Wrapped: instance (t ~ ComposeCF f' g' a') => Rewrapped (ComposeCF f g a) t
- Control.Lens.Wrapped: instance (t ~ ComposeFC f' g' a') => Rewrapped (ComposeFC f g a) t
- Control.Lens.Wrapped: instance (t ~ Const a' x') => Rewrapped (Const a x) t
- Control.Lens.Wrapped: instance (t ~ Constant a' b') => Rewrapped (Constant a b) t
- Control.Lens.Wrapped: instance (t ~ ContT r' m' a') => Rewrapped (ContT r m a) t
- Control.Lens.Wrapped: instance (t ~ Coproduct f' g' a') => Rewrapped (Coproduct f g a) t
- Control.Lens.Wrapped: instance (t ~ Dual b) => Rewrapped (Dual a) t
- Control.Lens.Wrapped: instance (t ~ Endo b) => Rewrapped (Endo b) t
- Control.Lens.Wrapped: instance (t ~ Equivalence b) => Rewrapped (Equivalence a) t
- Control.Lens.Wrapped: instance (t ~ ErrorCall) => Rewrapped ErrorCall t
- Control.Lens.Wrapped: instance (t ~ ErrorT e' m' a') => Rewrapped (ErrorT e m a) t
- Control.Lens.Wrapped: instance (t ~ First b) => Rewrapped (First a) t
- Control.Lens.Wrapped: instance (t ~ Identity b) => Rewrapped (Identity a) t
- Control.Lens.Wrapped: instance (t ~ IdentityT n b) => Rewrapped (IdentityT m a) t
- Control.Lens.Wrapped: instance (t ~ IntMap a') => Rewrapped (IntMap a) t
- Control.Lens.Wrapped: instance (t ~ IntSet) => Rewrapped IntSet t
- Control.Lens.Wrapped: instance (t ~ Kleisli m' a' b') => Rewrapped (Kleisli m a b) t
- Control.Lens.Wrapped: instance (t ~ Last b) => Rewrapped (Last a) t
- Control.Lens.Wrapped: instance (t ~ Last b) => Rewrapped (Last b) t
- Control.Lens.Wrapped: instance (t ~ ListT n b) => Rewrapped (ListT m a) t
- Control.Lens.Wrapped: instance (t ~ Max b) => Rewrapped (Max a) t
- Control.Lens.Wrapped: instance (t ~ MaybeT n b) => Rewrapped (MaybeT m a) t
- Control.Lens.Wrapped: instance (t ~ Min b) => Rewrapped (Min a) t
- Control.Lens.Wrapped: instance (t ~ NoMethodError) => Rewrapped NoMethodError t
- Control.Lens.Wrapped: instance (t ~ Op a' b') => Rewrapped (Op a b) t
- Control.Lens.Wrapped: instance (t ~ Option b) => Rewrapped (Option a) t
- Control.Lens.Wrapped: instance (t ~ PatternMatchFail) => Rewrapped PatternMatchFail t
- Control.Lens.Wrapped: instance (t ~ Predicate b) => Rewrapped (Predicate a) t
- Control.Lens.Wrapped: instance (t ~ Product b) => Rewrapped (Product a) t
- Control.Lens.Wrapped: instance (t ~ RWST r' w' s' m' a') => Rewrapped (RWST r w s m a) t
- Control.Lens.Wrapped: instance (t ~ ReaderT r n b) => Rewrapped (ReaderT r m a) t
- Control.Lens.Wrapped: instance (t ~ RecConError) => Rewrapped RecConError t
- Control.Lens.Wrapped: instance (t ~ RecSelError) => Rewrapped RecSelError t
- Control.Lens.Wrapped: instance (t ~ RecUpdError) => Rewrapped RecUpdError t
- Control.Lens.Wrapped: instance (t ~ Reverse g b) => Rewrapped (Reverse f a) t
- Control.Lens.Wrapped: instance (t ~ Seq a') => Rewrapped (Seq a) t
- Control.Lens.Wrapped: instance (t ~ StateT s' m' a') => Rewrapped (StateT s m a) t
- Control.Lens.Wrapped: instance (t ~ Sum b) => Rewrapped (Sum a) t
- Control.Lens.Wrapped: instance (t ~ TracedT m' w' a') => Rewrapped (TracedT m w a) t
- Control.Lens.Wrapped: instance (t ~ Vector a') => Rewrapped (Vector a) t
- Control.Lens.Wrapped: instance (t ~ WrappedArrow a' b' c') => Rewrapped (WrappedArrow a b c) t
- Control.Lens.Wrapped: instance (t ~ WrappedMonad m' a') => Rewrapped (WrappedMonad m a) t
- Control.Lens.Wrapped: instance (t ~ WrappedMonoid b) => Rewrapped (WrappedMonoid a) t
- Control.Lens.Wrapped: instance (t ~ WriterT w' m' a') => Rewrapped (WriterT w m a) t
- Control.Lens.Wrapped: instance (t ~ ZipList b) => Rewrapped (ZipList a) t
- Control.Lens.Wrapped: instance forall (k :: BOX) (k1 :: BOX) (s :: k1) a t (s' :: k) a'. (t ~ Tagged s' a') => Rewrapped (Tagged s a) t
- Control.Lens.Wrapped: instance forall (k :: BOX) (s :: k) a. Wrapped (Tagged s a)
- Control.Monad.Error.Lens: [Handler] :: (e -> Maybe a) -> (a -> m r) -> Handler e m r
- Control.Monad.Primitive.Lens: prim :: (PrimMonad m) => Iso' (m a) (State# (PrimState m) -> (# State# (PrimState m), a #))
+ Control.Lens.At: instance a ~ a2 => Ixed (a, a2)
+ Control.Lens.Cons: instance a ~ b => Cons (NonEmpty a) (NonEmpty b) a b
+ Control.Lens.Cons: instance a ~ b => Snoc (NonEmpty a) (NonEmpty b) a b
+ Control.Lens.Each: instance c ~ d => Each (HashMap c a) (HashMap d b) a b
+ Control.Lens.Each: instance c ~ d => Each (Map c a) (Map d b) a b
+ Control.Lens.Equality: Identical :: Identical a b a b
+ Control.Lens.Getter: Const :: a -> Const a b
+ Control.Lens.Getter: getConst :: Const a b -> a
+ Control.Lens.Indexed: Indexed :: (i -> a -> b) -> Indexed i a b
+ Control.Lens.Indexed: instance (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (Product f g)
+ Control.Lens.Indexed: instance (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (i, j) (Compose f g)
+ Control.Lens.Indexed: instance (FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (Product f g)
+ Control.Lens.Indexed: instance (FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (i, j) (Compose f g)
+ Control.Lens.Indexed: instance (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (Product f g)
+ Control.Lens.Indexed: instance (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (i, j) (Compose f g)
+ Control.Lens.Indexed: instance FoldableWithIndex [Int] Tree
+ Control.Lens.Indexed: instance FoldableWithIndex i f => FoldableWithIndex [i] (Cofree f)
+ Control.Lens.Indexed: instance FoldableWithIndex i m => FoldableWithIndex i (IdentityT m)
+ Control.Lens.Indexed: instance FunctorWithIndex [Int] Tree
+ Control.Lens.Indexed: instance FunctorWithIndex i f => FunctorWithIndex [i] (Cofree f)
+ Control.Lens.Indexed: instance FunctorWithIndex i m => FunctorWithIndex (e, i) (ReaderT e m)
+ Control.Lens.Indexed: instance FunctorWithIndex i m => FunctorWithIndex i (IdentityT m)
+ Control.Lens.Indexed: instance FunctorWithIndex i w => FunctorWithIndex (s, i) (TracedT s w)
+ Control.Lens.Indexed: instance Ix i => FoldableWithIndex i (Array i)
+ Control.Lens.Indexed: instance Ix i => FunctorWithIndex i (Array i)
+ Control.Lens.Indexed: instance Ix i => TraversableWithIndex i (Array i)
+ Control.Lens.Indexed: instance TraversableWithIndex [Int] Tree
+ Control.Lens.Indexed: instance TraversableWithIndex i f => TraversableWithIndex [i] (Cofree f)
+ Control.Lens.Indexed: instance TraversableWithIndex i m => TraversableWithIndex i (IdentityT m)
+ Control.Lens.Indexed: runIndexed :: Indexed i a b -> i -> a -> b
+ Control.Lens.Internal.Bazaar: Bazaar :: (forall f. Applicative f => p a (f b) -> f t) -> Bazaar p a b t
+ Control.Lens.Internal.Bazaar: Bazaar1 :: (forall f. Apply f => p a (f b) -> f t) -> Bazaar1 p a b t
+ Control.Lens.Internal.Bazaar: BazaarT :: (forall f. Applicative f => p a (f b) -> f t) -> BazaarT p a b t
+ Control.Lens.Internal.Bazaar: BazaarT1 :: (forall f. Apply f => p a (f b) -> f t) -> BazaarT1 p a b t
+ Control.Lens.Internal.Bazaar: runBazaar :: Bazaar p a b t -> forall f. Applicative f => p a (f b) -> f t
+ Control.Lens.Internal.Bazaar: runBazaar1 :: Bazaar1 p a b t -> forall f. Apply f => p a (f b) -> f t
+ Control.Lens.Internal.Bazaar: runBazaarT :: BazaarT p a b t -> forall f. Applicative f => p a (f b) -> f t
+ Control.Lens.Internal.Bazaar: runBazaarT1 :: BazaarT1 p a b t -> forall f. Apply f => p a (f b) -> f t
+ Control.Lens.Internal.Context: Context :: (b -> t) -> a -> Context a b t
+ Control.Lens.Internal.Context: Pretext :: (forall f. Functor f => p a (f b) -> f t) -> Pretext p a b t
+ Control.Lens.Internal.Context: PretextT :: (forall f. Functor f => p a (f b) -> f t) -> PretextT p a b t
+ Control.Lens.Internal.Context: instance a ~ b => Comonad (Context a b)
+ Control.Lens.Internal.Context: instance a ~ b => ComonadStore a (Context a b)
+ Control.Lens.Internal.Context: runPretext :: Pretext p a b t -> forall f. Functor f => p a (f b) -> f t
+ Control.Lens.Internal.Context: runPretextT :: PretextT p a b t -> forall f. Functor f => p a (f b) -> f t
+ Control.Lens.Internal.Deque: BD :: !Int -> [a] -> !Int -> [a] -> Deque a
+ Control.Lens.Internal.Exception: HandlingException :: HandlingException
+ Control.Lens.Internal.Exception: instance (Reifies s (SomeException -> Maybe a), Typeable (Handling a s m)) => Exception (Handling a s m)
+ Control.Lens.Internal.Exception: instance Show (Handling a s m)
+ Control.Lens.Internal.Exception: instance Typeable Handling
+ Control.Lens.Internal.Exception: instance Typeable HandlingException
+ Control.Lens.Internal.FieldTH: LensRules :: Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> (Name -> [Name] -> Name -> [DefName]) -> (Name -> Maybe (Name, Name)) -> LensRules
+ Control.Lens.Internal.FieldTH: MethodName :: Name -> Name -> DefName
+ Control.Lens.Internal.FieldTH: TopName :: Name -> DefName
+ Control.Lens.Internal.FieldTH: _allowIsos :: LensRules -> Bool
+ Control.Lens.Internal.FieldTH: _allowUpdates :: LensRules -> Bool
+ Control.Lens.Internal.FieldTH: _classyLenses :: LensRules -> Name -> Maybe (Name, Name)
+ Control.Lens.Internal.FieldTH: _fieldToDef :: LensRules -> Name -> [Name] -> Name -> [DefName]
+ Control.Lens.Internal.FieldTH: _generateClasses :: LensRules -> Bool
+ Control.Lens.Internal.FieldTH: _generateSigs :: LensRules -> Bool
+ Control.Lens.Internal.FieldTH: _lazyPatterns :: LensRules -> Bool
+ Control.Lens.Internal.FieldTH: _simpleLenses :: LensRules -> Bool
+ Control.Lens.Internal.Fold: Folding :: f a -> Folding f a
+ Control.Lens.Internal.Fold: LLeaf :: a -> Leftmost a
+ Control.Lens.Internal.Fold: LPure :: Leftmost a
+ Control.Lens.Internal.Fold: LStep :: (Leftmost a) -> Leftmost a
+ Control.Lens.Internal.Fold: M :: a -> M a s
+ Control.Lens.Internal.Fold: Max :: a -> Max a
+ Control.Lens.Internal.Fold: Min :: a -> Min a
+ Control.Lens.Internal.Fold: NoMax :: Max a
+ Control.Lens.Internal.Fold: NoMin :: Min a
+ Control.Lens.Internal.Fold: RLeaf :: a -> Rightmost a
+ Control.Lens.Internal.Fold: RPure :: Rightmost a
+ Control.Lens.Internal.Fold: RStep :: (Rightmost a) -> Rightmost a
+ Control.Lens.Internal.Fold: ReifiedMonoid :: (a -> a -> a) -> a -> ReifiedMonoid a
+ Control.Lens.Internal.Fold: Sequenced :: m a -> Sequenced a m
+ Control.Lens.Internal.Fold: Traversed :: f a -> Traversed a f
+ Control.Lens.Internal.Fold: getFolding :: Folding f a -> f a
+ Control.Lens.Internal.Fold: getSequenced :: Sequenced a m -> m a
+ Control.Lens.Internal.Fold: getTraversed :: Traversed a f -> f a
+ Control.Lens.Internal.Fold: reifiedMappend :: ReifiedMonoid a -> a -> a -> a
+ Control.Lens.Internal.Fold: reifiedMempty :: ReifiedMonoid a -> a
+ Control.Lens.Internal.Getter: AlongsideLeft :: f (a, b) -> AlongsideLeft f b a
+ Control.Lens.Internal.Getter: AlongsideRight :: f (a, b) -> AlongsideRight f a b
+ Control.Lens.Internal.Getter: getAlongsideLeft :: AlongsideLeft f b a -> f (a, b)
+ Control.Lens.Internal.Getter: getAlongsideRight :: AlongsideRight f a b -> f (a, b)
+ Control.Lens.Internal.Indexed: Indexed :: (i -> a -> b) -> Indexed i a b
+ Control.Lens.Internal.Indexed: Indexing :: (Int -> (Int, f a)) -> Indexing f a
+ Control.Lens.Internal.Indexed: Indexing64 :: (Int64 -> (Int64, f a)) -> Indexing64 f a
+ Control.Lens.Internal.Indexed: instance i ~ j => Indexable i (Indexed j)
+ Control.Lens.Internal.Indexed: runIndexed :: Indexed i a b -> i -> a -> b
+ Control.Lens.Internal.Indexed: runIndexing :: Indexing f a -> Int -> (Int, f a)
+ Control.Lens.Internal.Indexed: runIndexing64 :: Indexing64 f a -> Int64 -> (Int64, f a)
+ Control.Lens.Internal.Iso: Exchange :: (s -> a) -> (b -> t) -> Exchange a b s t
+ Control.Lens.Internal.Level: Deepening :: (forall r. Int -> (Level i a -> Bool -> r) -> r) -> Deepening i a
+ Control.Lens.Internal.Level: Flows :: ([Level i b] -> a) -> Flows i b a
+ Control.Lens.Internal.Level: One :: i -> a -> Level i a
+ Control.Lens.Internal.Level: Two :: {-# UNPACK #-} !Word -> !(Level i a) -> !(Level i a) -> Level i a
+ Control.Lens.Internal.Level: Zero :: Level i a
+ Control.Lens.Internal.Level: runDeepening :: Deepening i a -> forall r. Int -> (Level i a -> Bool -> r) -> r
+ Control.Lens.Internal.Level: runFlows :: Flows i b a -> [Level i b] -> a
+ Control.Lens.Internal.Magma: Mafic :: Int -> (Int -> Magma Int t b a) -> Mafic a b t
+ Control.Lens.Internal.Magma: Magma :: i -> a -> Magma i b b a
+ Control.Lens.Internal.Magma: MagmaAp :: Magma i (x -> y) b a -> Magma i x b a -> Magma i y b a
+ Control.Lens.Internal.Magma: MagmaFmap :: (x -> y) -> Magma i x b a -> Magma i y b a
+ Control.Lens.Internal.Magma: MagmaPure :: x -> Magma i x b a
+ Control.Lens.Internal.Magma: Molten :: Magma i t b a -> Molten i a b t
+ Control.Lens.Internal.Magma: TakingWhile :: Bool -> t -> (Bool -> Magma () t b (Corep p a)) -> TakingWhile p a b t
+ Control.Lens.Internal.Magma: instance a ~ b => Comonad (Molten i a b)
+ Control.Lens.Internal.Magma: runMolten :: Molten i a b t -> Magma i t b a
+ Control.Lens.Internal.Prism: Market :: (b -> t) -> (s -> Either t a) -> Market a b s t
+ Control.Lens.Internal.Reflection: instance Typeable Stable
+ Control.Lens.Internal.Reflection: instance Typeable T0
+ Control.Lens.Internal.Reflection: instance Typeable T1
+ Control.Lens.Internal.Reflection: instance Typeable T10
+ Control.Lens.Internal.Reflection: instance Typeable T100
+ Control.Lens.Internal.Reflection: instance Typeable T101
+ Control.Lens.Internal.Reflection: instance Typeable T102
+ Control.Lens.Internal.Reflection: instance Typeable T103
+ Control.Lens.Internal.Reflection: instance Typeable T104
+ Control.Lens.Internal.Reflection: instance Typeable T105
+ Control.Lens.Internal.Reflection: instance Typeable T106
+ Control.Lens.Internal.Reflection: instance Typeable T107
+ Control.Lens.Internal.Reflection: instance Typeable T108
+ Control.Lens.Internal.Reflection: instance Typeable T109
+ Control.Lens.Internal.Reflection: instance Typeable T11
+ Control.Lens.Internal.Reflection: instance Typeable T110
+ Control.Lens.Internal.Reflection: instance Typeable T111
+ Control.Lens.Internal.Reflection: instance Typeable T112
+ Control.Lens.Internal.Reflection: instance Typeable T113
+ Control.Lens.Internal.Reflection: instance Typeable T114
+ Control.Lens.Internal.Reflection: instance Typeable T115
+ Control.Lens.Internal.Reflection: instance Typeable T116
+ Control.Lens.Internal.Reflection: instance Typeable T117
+ Control.Lens.Internal.Reflection: instance Typeable T118
+ Control.Lens.Internal.Reflection: instance Typeable T119
+ Control.Lens.Internal.Reflection: instance Typeable T12
+ Control.Lens.Internal.Reflection: instance Typeable T120
+ Control.Lens.Internal.Reflection: instance Typeable T121
+ Control.Lens.Internal.Reflection: instance Typeable T122
+ Control.Lens.Internal.Reflection: instance Typeable T123
+ Control.Lens.Internal.Reflection: instance Typeable T124
+ Control.Lens.Internal.Reflection: instance Typeable T125
+ Control.Lens.Internal.Reflection: instance Typeable T126
+ Control.Lens.Internal.Reflection: instance Typeable T127
+ Control.Lens.Internal.Reflection: instance Typeable T128
+ Control.Lens.Internal.Reflection: instance Typeable T129
+ Control.Lens.Internal.Reflection: instance Typeable T13
+ Control.Lens.Internal.Reflection: instance Typeable T130
+ Control.Lens.Internal.Reflection: instance Typeable T131
+ Control.Lens.Internal.Reflection: instance Typeable T132
+ Control.Lens.Internal.Reflection: instance Typeable T133
+ Control.Lens.Internal.Reflection: instance Typeable T134
+ Control.Lens.Internal.Reflection: instance Typeable T135
+ Control.Lens.Internal.Reflection: instance Typeable T136
+ Control.Lens.Internal.Reflection: instance Typeable T137
+ Control.Lens.Internal.Reflection: instance Typeable T138
+ Control.Lens.Internal.Reflection: instance Typeable T139
+ Control.Lens.Internal.Reflection: instance Typeable T14
+ Control.Lens.Internal.Reflection: instance Typeable T140
+ Control.Lens.Internal.Reflection: instance Typeable T141
+ Control.Lens.Internal.Reflection: instance Typeable T142
+ Control.Lens.Internal.Reflection: instance Typeable T143
+ Control.Lens.Internal.Reflection: instance Typeable T144
+ Control.Lens.Internal.Reflection: instance Typeable T145
+ Control.Lens.Internal.Reflection: instance Typeable T146
+ Control.Lens.Internal.Reflection: instance Typeable T147
+ Control.Lens.Internal.Reflection: instance Typeable T148
+ Control.Lens.Internal.Reflection: instance Typeable T149
+ Control.Lens.Internal.Reflection: instance Typeable T15
+ Control.Lens.Internal.Reflection: instance Typeable T150
+ Control.Lens.Internal.Reflection: instance Typeable T151
+ Control.Lens.Internal.Reflection: instance Typeable T152
+ Control.Lens.Internal.Reflection: instance Typeable T153
+ Control.Lens.Internal.Reflection: instance Typeable T154
+ Control.Lens.Internal.Reflection: instance Typeable T155
+ Control.Lens.Internal.Reflection: instance Typeable T156
+ Control.Lens.Internal.Reflection: instance Typeable T157
+ Control.Lens.Internal.Reflection: instance Typeable T158
+ Control.Lens.Internal.Reflection: instance Typeable T159
+ Control.Lens.Internal.Reflection: instance Typeable T16
+ Control.Lens.Internal.Reflection: instance Typeable T160
+ Control.Lens.Internal.Reflection: instance Typeable T161
+ Control.Lens.Internal.Reflection: instance Typeable T162
+ Control.Lens.Internal.Reflection: instance Typeable T163
+ Control.Lens.Internal.Reflection: instance Typeable T164
+ Control.Lens.Internal.Reflection: instance Typeable T165
+ Control.Lens.Internal.Reflection: instance Typeable T166
+ Control.Lens.Internal.Reflection: instance Typeable T167
+ Control.Lens.Internal.Reflection: instance Typeable T168
+ Control.Lens.Internal.Reflection: instance Typeable T169
+ Control.Lens.Internal.Reflection: instance Typeable T17
+ Control.Lens.Internal.Reflection: instance Typeable T170
+ Control.Lens.Internal.Reflection: instance Typeable T171
+ Control.Lens.Internal.Reflection: instance Typeable T172
+ Control.Lens.Internal.Reflection: instance Typeable T173
+ Control.Lens.Internal.Reflection: instance Typeable T174
+ Control.Lens.Internal.Reflection: instance Typeable T175
+ Control.Lens.Internal.Reflection: instance Typeable T176
+ Control.Lens.Internal.Reflection: instance Typeable T177
+ Control.Lens.Internal.Reflection: instance Typeable T178
+ Control.Lens.Internal.Reflection: instance Typeable T179
+ Control.Lens.Internal.Reflection: instance Typeable T18
+ Control.Lens.Internal.Reflection: instance Typeable T180
+ Control.Lens.Internal.Reflection: instance Typeable T181
+ Control.Lens.Internal.Reflection: instance Typeable T182
+ Control.Lens.Internal.Reflection: instance Typeable T183
+ Control.Lens.Internal.Reflection: instance Typeable T184
+ Control.Lens.Internal.Reflection: instance Typeable T185
+ Control.Lens.Internal.Reflection: instance Typeable T186
+ Control.Lens.Internal.Reflection: instance Typeable T187
+ Control.Lens.Internal.Reflection: instance Typeable T188
+ Control.Lens.Internal.Reflection: instance Typeable T189
+ Control.Lens.Internal.Reflection: instance Typeable T19
+ Control.Lens.Internal.Reflection: instance Typeable T190
+ Control.Lens.Internal.Reflection: instance Typeable T191
+ Control.Lens.Internal.Reflection: instance Typeable T192
+ Control.Lens.Internal.Reflection: instance Typeable T193
+ Control.Lens.Internal.Reflection: instance Typeable T194
+ Control.Lens.Internal.Reflection: instance Typeable T195
+ Control.Lens.Internal.Reflection: instance Typeable T196
+ Control.Lens.Internal.Reflection: instance Typeable T197
+ Control.Lens.Internal.Reflection: instance Typeable T198
+ Control.Lens.Internal.Reflection: instance Typeable T199
+ Control.Lens.Internal.Reflection: instance Typeable T2
+ Control.Lens.Internal.Reflection: instance Typeable T20
+ Control.Lens.Internal.Reflection: instance Typeable T200
+ Control.Lens.Internal.Reflection: instance Typeable T201
+ Control.Lens.Internal.Reflection: instance Typeable T202
+ Control.Lens.Internal.Reflection: instance Typeable T203
+ Control.Lens.Internal.Reflection: instance Typeable T204
+ Control.Lens.Internal.Reflection: instance Typeable T205
+ Control.Lens.Internal.Reflection: instance Typeable T206
+ Control.Lens.Internal.Reflection: instance Typeable T207
+ Control.Lens.Internal.Reflection: instance Typeable T208
+ Control.Lens.Internal.Reflection: instance Typeable T209
+ Control.Lens.Internal.Reflection: instance Typeable T21
+ Control.Lens.Internal.Reflection: instance Typeable T210
+ Control.Lens.Internal.Reflection: instance Typeable T211
+ Control.Lens.Internal.Reflection: instance Typeable T212
+ Control.Lens.Internal.Reflection: instance Typeable T213
+ Control.Lens.Internal.Reflection: instance Typeable T214
+ Control.Lens.Internal.Reflection: instance Typeable T215
+ Control.Lens.Internal.Reflection: instance Typeable T216
+ Control.Lens.Internal.Reflection: instance Typeable T217
+ Control.Lens.Internal.Reflection: instance Typeable T218
+ Control.Lens.Internal.Reflection: instance Typeable T219
+ Control.Lens.Internal.Reflection: instance Typeable T22
+ Control.Lens.Internal.Reflection: instance Typeable T220
+ Control.Lens.Internal.Reflection: instance Typeable T221
+ Control.Lens.Internal.Reflection: instance Typeable T222
+ Control.Lens.Internal.Reflection: instance Typeable T223
+ Control.Lens.Internal.Reflection: instance Typeable T224
+ Control.Lens.Internal.Reflection: instance Typeable T225
+ Control.Lens.Internal.Reflection: instance Typeable T226
+ Control.Lens.Internal.Reflection: instance Typeable T227
+ Control.Lens.Internal.Reflection: instance Typeable T228
+ Control.Lens.Internal.Reflection: instance Typeable T229
+ Control.Lens.Internal.Reflection: instance Typeable T23
+ Control.Lens.Internal.Reflection: instance Typeable T230
+ Control.Lens.Internal.Reflection: instance Typeable T231
+ Control.Lens.Internal.Reflection: instance Typeable T232
+ Control.Lens.Internal.Reflection: instance Typeable T233
+ Control.Lens.Internal.Reflection: instance Typeable T234
+ Control.Lens.Internal.Reflection: instance Typeable T235
+ Control.Lens.Internal.Reflection: instance Typeable T236
+ Control.Lens.Internal.Reflection: instance Typeable T237
+ Control.Lens.Internal.Reflection: instance Typeable T238
+ Control.Lens.Internal.Reflection: instance Typeable T239
+ Control.Lens.Internal.Reflection: instance Typeable T24
+ Control.Lens.Internal.Reflection: instance Typeable T240
+ Control.Lens.Internal.Reflection: instance Typeable T241
+ Control.Lens.Internal.Reflection: instance Typeable T242
+ Control.Lens.Internal.Reflection: instance Typeable T243
+ Control.Lens.Internal.Reflection: instance Typeable T244
+ Control.Lens.Internal.Reflection: instance Typeable T245
+ Control.Lens.Internal.Reflection: instance Typeable T246
+ Control.Lens.Internal.Reflection: instance Typeable T247
+ Control.Lens.Internal.Reflection: instance Typeable T248
+ Control.Lens.Internal.Reflection: instance Typeable T249
+ Control.Lens.Internal.Reflection: instance Typeable T25
+ Control.Lens.Internal.Reflection: instance Typeable T250
+ Control.Lens.Internal.Reflection: instance Typeable T251
+ Control.Lens.Internal.Reflection: instance Typeable T252
+ Control.Lens.Internal.Reflection: instance Typeable T253
+ Control.Lens.Internal.Reflection: instance Typeable T254
+ Control.Lens.Internal.Reflection: instance Typeable T255
+ Control.Lens.Internal.Reflection: instance Typeable T26
+ Control.Lens.Internal.Reflection: instance Typeable T27
+ Control.Lens.Internal.Reflection: instance Typeable T28
+ Control.Lens.Internal.Reflection: instance Typeable T29
+ Control.Lens.Internal.Reflection: instance Typeable T3
+ Control.Lens.Internal.Reflection: instance Typeable T30
+ Control.Lens.Internal.Reflection: instance Typeable T31
+ Control.Lens.Internal.Reflection: instance Typeable T32
+ Control.Lens.Internal.Reflection: instance Typeable T33
+ Control.Lens.Internal.Reflection: instance Typeable T34
+ Control.Lens.Internal.Reflection: instance Typeable T35
+ Control.Lens.Internal.Reflection: instance Typeable T36
+ Control.Lens.Internal.Reflection: instance Typeable T37
+ Control.Lens.Internal.Reflection: instance Typeable T38
+ Control.Lens.Internal.Reflection: instance Typeable T39
+ Control.Lens.Internal.Reflection: instance Typeable T4
+ Control.Lens.Internal.Reflection: instance Typeable T40
+ Control.Lens.Internal.Reflection: instance Typeable T41
+ Control.Lens.Internal.Reflection: instance Typeable T42
+ Control.Lens.Internal.Reflection: instance Typeable T43
+ Control.Lens.Internal.Reflection: instance Typeable T44
+ Control.Lens.Internal.Reflection: instance Typeable T45
+ Control.Lens.Internal.Reflection: instance Typeable T46
+ Control.Lens.Internal.Reflection: instance Typeable T47
+ Control.Lens.Internal.Reflection: instance Typeable T48
+ Control.Lens.Internal.Reflection: instance Typeable T49
+ Control.Lens.Internal.Reflection: instance Typeable T5
+ Control.Lens.Internal.Reflection: instance Typeable T50
+ Control.Lens.Internal.Reflection: instance Typeable T51
+ Control.Lens.Internal.Reflection: instance Typeable T52
+ Control.Lens.Internal.Reflection: instance Typeable T53
+ Control.Lens.Internal.Reflection: instance Typeable T54
+ Control.Lens.Internal.Reflection: instance Typeable T55
+ Control.Lens.Internal.Reflection: instance Typeable T56
+ Control.Lens.Internal.Reflection: instance Typeable T57
+ Control.Lens.Internal.Reflection: instance Typeable T58
+ Control.Lens.Internal.Reflection: instance Typeable T59
+ Control.Lens.Internal.Reflection: instance Typeable T6
+ Control.Lens.Internal.Reflection: instance Typeable T60
+ Control.Lens.Internal.Reflection: instance Typeable T61
+ Control.Lens.Internal.Reflection: instance Typeable T62
+ Control.Lens.Internal.Reflection: instance Typeable T63
+ Control.Lens.Internal.Reflection: instance Typeable T64
+ Control.Lens.Internal.Reflection: instance Typeable T65
+ Control.Lens.Internal.Reflection: instance Typeable T66
+ Control.Lens.Internal.Reflection: instance Typeable T67
+ Control.Lens.Internal.Reflection: instance Typeable T68
+ Control.Lens.Internal.Reflection: instance Typeable T69
+ Control.Lens.Internal.Reflection: instance Typeable T7
+ Control.Lens.Internal.Reflection: instance Typeable T70
+ Control.Lens.Internal.Reflection: instance Typeable T71
+ Control.Lens.Internal.Reflection: instance Typeable T72
+ Control.Lens.Internal.Reflection: instance Typeable T73
+ Control.Lens.Internal.Reflection: instance Typeable T74
+ Control.Lens.Internal.Reflection: instance Typeable T75
+ Control.Lens.Internal.Reflection: instance Typeable T76
+ Control.Lens.Internal.Reflection: instance Typeable T77
+ Control.Lens.Internal.Reflection: instance Typeable T78
+ Control.Lens.Internal.Reflection: instance Typeable T79
+ Control.Lens.Internal.Reflection: instance Typeable T8
+ Control.Lens.Internal.Reflection: instance Typeable T80
+ Control.Lens.Internal.Reflection: instance Typeable T81
+ Control.Lens.Internal.Reflection: instance Typeable T82
+ Control.Lens.Internal.Reflection: instance Typeable T83
+ Control.Lens.Internal.Reflection: instance Typeable T84
+ Control.Lens.Internal.Reflection: instance Typeable T85
+ Control.Lens.Internal.Reflection: instance Typeable T86
+ Control.Lens.Internal.Reflection: instance Typeable T87
+ Control.Lens.Internal.Reflection: instance Typeable T88
+ Control.Lens.Internal.Reflection: instance Typeable T89
+ Control.Lens.Internal.Reflection: instance Typeable T9
+ Control.Lens.Internal.Reflection: instance Typeable T90
+ Control.Lens.Internal.Reflection: instance Typeable T91
+ Control.Lens.Internal.Reflection: instance Typeable T92
+ Control.Lens.Internal.Reflection: instance Typeable T93
+ Control.Lens.Internal.Reflection: instance Typeable T94
+ Control.Lens.Internal.Reflection: instance Typeable T95
+ Control.Lens.Internal.Reflection: instance Typeable T96
+ Control.Lens.Internal.Reflection: instance Typeable T97
+ Control.Lens.Internal.Reflection: instance Typeable T98
+ Control.Lens.Internal.Reflection: instance Typeable T99
+ Control.Lens.Internal.Reflection: instance Typeable W
+ Control.Lens.Internal.Zoom: Effect :: m r -> Effect m r a
+ Control.Lens.Internal.Zoom: EffectRWS :: (st -> m (s, st, w)) -> EffectRWS w st m s a
+ Control.Lens.Internal.Zoom: Err :: Either e a -> Err e a
+ Control.Lens.Internal.Zoom: Focusing :: m (s, a) -> Focusing m s a
+ Control.Lens.Internal.Zoom: FocusingErr :: k (Err e s) a -> FocusingErr e k s a
+ Control.Lens.Internal.Zoom: FocusingMay :: k (May s) a -> FocusingMay k s a
+ Control.Lens.Internal.Zoom: FocusingOn :: k (f s) a -> FocusingOn f k s a
+ Control.Lens.Internal.Zoom: FocusingPlus :: k (s, w) a -> FocusingPlus w k s a
+ Control.Lens.Internal.Zoom: FocusingWith :: m (s, a, w) -> FocusingWith w m s a
+ Control.Lens.Internal.Zoom: May :: Maybe a -> May a
+ Control.Lens.Internal.Zoom: getEffect :: Effect m r a -> m r
+ Control.Lens.Internal.Zoom: getEffectRWS :: EffectRWS w st m s a -> st -> m (s, st, w)
+ Control.Lens.Internal.Zoom: getErr :: Err e a -> Either e a
+ Control.Lens.Internal.Zoom: getMay :: May a -> Maybe a
+ Control.Lens.Internal.Zoom: unfocusing :: Focusing m s a -> m (s, a)
+ Control.Lens.Internal.Zoom: unfocusingErr :: FocusingErr e k s a -> k (Err e s) a
+ Control.Lens.Internal.Zoom: unfocusingMay :: FocusingMay k s a -> k (May s) a
+ Control.Lens.Internal.Zoom: unfocusingOn :: FocusingOn f k s a -> k (f s) a
+ Control.Lens.Internal.Zoom: unfocusingPlus :: FocusingPlus w k s a -> k (s, w) a
+ Control.Lens.Internal.Zoom: unfocusingWith :: FocusingWith w m s a -> m (s, a, w)
+ Control.Lens.Lens: Context :: (b -> t) -> a -> Context a b t
+ Control.Lens.Plated: instance [overlap ok] (GPlated a f, GPlated a g) => GPlated a (f :*: g)
+ Control.Lens.Plated: instance [overlap ok] (GPlated a f, GPlated a g) => GPlated a (f :+: g)
+ Control.Lens.Plated: instance [overlap ok] (Traversable f, Traversable m) => Plated (FreeT f m a)
+ Control.Lens.Plated: instance [overlap ok] GPlated a (K1 i a)
+ Control.Lens.Plated: instance [overlap ok] GPlated a (K1 i b)
+ Control.Lens.Plated: instance [overlap ok] GPlated a U1
+ Control.Lens.Plated: instance [overlap ok] GPlated a V1
+ Control.Lens.Plated: instance [overlap ok] GPlated a f => GPlated a (M1 i c f)
+ Control.Lens.Plated: instance [overlap ok] Plated (Tree a)
+ Control.Lens.Plated: instance [overlap ok] Plated Con
+ Control.Lens.Plated: instance [overlap ok] Plated Dec
+ Control.Lens.Plated: instance [overlap ok] Plated Exp
+ Control.Lens.Plated: instance [overlap ok] Plated Pat
+ Control.Lens.Plated: instance [overlap ok] Plated Stmt
+ Control.Lens.Plated: instance [overlap ok] Plated Type
+ Control.Lens.Plated: instance [overlap ok] Plated [a]
+ Control.Lens.Plated: instance [overlap ok] Traversable f => Plated (Cofree f a)
+ Control.Lens.Plated: instance [overlap ok] Traversable f => Plated (F f a)
+ Control.Lens.Plated: instance [overlap ok] Traversable f => Plated (Free f a)
+ Control.Lens.Reified: Fold :: Fold s a -> ReifiedFold s a
+ Control.Lens.Reified: Getter :: Getter s a -> ReifiedGetter s a
+ Control.Lens.Reified: IndexedFold :: IndexedFold i s a -> ReifiedIndexedFold i s a
+ Control.Lens.Reified: IndexedGetter :: IndexedGetter i s a -> ReifiedIndexedGetter i s a
+ Control.Lens.Reified: IndexedLens :: IndexedLens i s t a b -> ReifiedIndexedLens i s t a b
+ Control.Lens.Reified: IndexedSetter :: IndexedSetter i s t a b -> ReifiedIndexedSetter i s t a b
+ Control.Lens.Reified: IndexedTraversal :: IndexedTraversal i s t a b -> ReifiedIndexedTraversal i s t a b
+ Control.Lens.Reified: Iso :: Iso s t a b -> ReifiedIso s t a b
+ Control.Lens.Reified: Lens :: Lens s t a b -> ReifiedLens s t a b
+ Control.Lens.Reified: Prism :: Prism s t a b -> ReifiedPrism s t a b
+ Control.Lens.Reified: Setter :: Setter s t a b -> ReifiedSetter s t a b
+ Control.Lens.Reified: Traversal :: Traversal s t a b -> ReifiedTraversal s t a b
+ Control.Lens.Reified: runFold :: ReifiedFold s a -> Fold s a
+ Control.Lens.Reified: runGetter :: ReifiedGetter s a -> Getter s a
+ Control.Lens.Reified: runIndexedFold :: ReifiedIndexedFold i s a -> IndexedFold i s a
+ Control.Lens.Reified: runIndexedGetter :: ReifiedIndexedGetter i s a -> IndexedGetter i s a
+ Control.Lens.Reified: runIndexedLens :: ReifiedIndexedLens i s t a b -> IndexedLens i s t a b
+ Control.Lens.Reified: runIndexedSetter :: ReifiedIndexedSetter i s t a b -> IndexedSetter i s t a b
+ Control.Lens.Reified: runIndexedTraversal :: ReifiedIndexedTraversal i s t a b -> IndexedTraversal i s t a b
+ Control.Lens.Reified: runIso :: ReifiedIso s t a b -> Iso s t a b
+ Control.Lens.Reified: runLens :: ReifiedLens s t a b -> Lens s t a b
+ Control.Lens.Reified: runPrism :: ReifiedPrism s t a b -> Prism s t a b
+ Control.Lens.Reified: runSetter :: ReifiedSetter s t a b -> Setter s t a b
+ Control.Lens.Reified: runTraversal :: ReifiedTraversal s t a b -> Traversal s t a b
+ Control.Lens.Setter: Identity :: a -> Identity a
+ Control.Lens.Setter: runIdentity :: Identity a -> a
+ Control.Lens.TH: MethodName :: Name -> Name -> DefName
+ Control.Lens.TH: TopName :: Name -> DefName
+ Control.Lens.Traversal: Bazaar :: (forall f. Applicative f => p a (f b) -> f t) -> Bazaar p a b t
+ Control.Lens.Traversal: Bazaar1 :: (forall f. Apply f => p a (f b) -> f t) -> Bazaar1 p a b t
+ Control.Lens.Traversal: runBazaar :: Bazaar p a b t -> forall f. Applicative f => p a (f b) -> f t
+ Control.Lens.Traversal: runBazaar1 :: Bazaar1 p a b t -> forall f. Apply f => p a (f b) -> f t
+ Control.Lens.Wrapped: instance Wrapped (Tagged s a)
+ Control.Lens.Wrapped: instance t ~ All => Rewrapped All t
+ Control.Lens.Wrapped: instance t ~ Any => Rewrapped Any t
+ Control.Lens.Wrapped: instance t ~ AssertionFailed => Rewrapped AssertionFailed t
+ Control.Lens.Wrapped: instance t ~ Backwards g b => Rewrapped (Backwards f a) t
+ Control.Lens.Wrapped: instance t ~ Comparison b => Rewrapped (Comparison a) t
+ Control.Lens.Wrapped: instance t ~ Compose f' g' a' => Rewrapped (Compose f g a) t
+ Control.Lens.Wrapped: instance t ~ ComposeCF f' g' a' => Rewrapped (ComposeCF f g a) t
+ Control.Lens.Wrapped: instance t ~ ComposeFC f' g' a' => Rewrapped (ComposeFC f g a) t
+ Control.Lens.Wrapped: instance t ~ Const a' x' => Rewrapped (Const a x) t
+ Control.Lens.Wrapped: instance t ~ Constant a' b' => Rewrapped (Constant a b) t
+ Control.Lens.Wrapped: instance t ~ ContT r' m' a' => Rewrapped (ContT r m a) t
+ Control.Lens.Wrapped: instance t ~ Coproduct f' g' a' => Rewrapped (Coproduct f g a) t
+ Control.Lens.Wrapped: instance t ~ Dual b => Rewrapped (Dual a) t
+ Control.Lens.Wrapped: instance t ~ Endo b => Rewrapped (Endo b) t
+ Control.Lens.Wrapped: instance t ~ Equivalence b => Rewrapped (Equivalence a) t
+ Control.Lens.Wrapped: instance t ~ ErrorCall => Rewrapped ErrorCall t
+ Control.Lens.Wrapped: instance t ~ ErrorT e' m' a' => Rewrapped (ErrorT e m a) t
+ Control.Lens.Wrapped: instance t ~ First b => Rewrapped (First a) t
+ Control.Lens.Wrapped: instance t ~ Identity b => Rewrapped (Identity a) t
+ Control.Lens.Wrapped: instance t ~ IdentityT n b => Rewrapped (IdentityT m a) t
+ Control.Lens.Wrapped: instance t ~ IntMap a' => Rewrapped (IntMap a) t
+ Control.Lens.Wrapped: instance t ~ IntSet => Rewrapped IntSet t
+ Control.Lens.Wrapped: instance t ~ Kleisli m' a' b' => Rewrapped (Kleisli m a b) t
+ Control.Lens.Wrapped: instance t ~ Last b => Rewrapped (Last a) t
+ Control.Lens.Wrapped: instance t ~ Last b => Rewrapped (Last b) t
+ Control.Lens.Wrapped: instance t ~ ListT n b => Rewrapped (ListT m a) t
+ Control.Lens.Wrapped: instance t ~ Max b => Rewrapped (Max a) t
+ Control.Lens.Wrapped: instance t ~ MaybeT n b => Rewrapped (MaybeT m a) t
+ Control.Lens.Wrapped: instance t ~ Min b => Rewrapped (Min a) t
+ Control.Lens.Wrapped: instance t ~ NoMethodError => Rewrapped NoMethodError t
+ Control.Lens.Wrapped: instance t ~ Op a' b' => Rewrapped (Op a b) t
+ Control.Lens.Wrapped: instance t ~ Option b => Rewrapped (Option a) t
+ Control.Lens.Wrapped: instance t ~ PatternMatchFail => Rewrapped PatternMatchFail t
+ Control.Lens.Wrapped: instance t ~ Predicate b => Rewrapped (Predicate a) t
+ Control.Lens.Wrapped: instance t ~ Product b => Rewrapped (Product a) t
+ Control.Lens.Wrapped: instance t ~ RWST r' w' s' m' a' => Rewrapped (RWST r w s m a) t
+ Control.Lens.Wrapped: instance t ~ ReaderT r n b => Rewrapped (ReaderT r m a) t
+ Control.Lens.Wrapped: instance t ~ RecConError => Rewrapped RecConError t
+ Control.Lens.Wrapped: instance t ~ RecSelError => Rewrapped RecSelError t
+ Control.Lens.Wrapped: instance t ~ RecUpdError => Rewrapped RecUpdError t
+ Control.Lens.Wrapped: instance t ~ Reverse g b => Rewrapped (Reverse f a) t
+ Control.Lens.Wrapped: instance t ~ Seq a' => Rewrapped (Seq a) t
+ Control.Lens.Wrapped: instance t ~ StateT s' m' a' => Rewrapped (StateT s m a) t
+ Control.Lens.Wrapped: instance t ~ Sum b => Rewrapped (Sum a) t
+ Control.Lens.Wrapped: instance t ~ Tagged s' a' => Rewrapped (Tagged s a) t
+ Control.Lens.Wrapped: instance t ~ TracedT m' w' a' => Rewrapped (TracedT m w a) t
+ Control.Lens.Wrapped: instance t ~ Vector a' => Rewrapped (Vector a) t
+ Control.Lens.Wrapped: instance t ~ WrappedArrow a' b' c' => Rewrapped (WrappedArrow a b c) t
+ Control.Lens.Wrapped: instance t ~ WrappedMonad m' a' => Rewrapped (WrappedMonad m a) t
+ Control.Lens.Wrapped: instance t ~ WrappedMonoid b => Rewrapped (WrappedMonoid a) t
+ Control.Lens.Wrapped: instance t ~ WriterT w' m' a' => Rewrapped (WriterT w m a) t
+ Control.Lens.Wrapped: instance t ~ ZipList b => Rewrapped (ZipList a) t
+ Control.Monad.Error.Lens: Handler :: (e -> Maybe a) -> (a -> m r) -> Handler e m r
+ Data.Data.Lens: instance Typeable FieldException
+ Language.Haskell.TH.Lens: _ClassP :: Prism' Pred (Name, [Type])
+ Language.Haskell.TH.Lens: _EqualP :: Prism' Pred (Type, Type)
+ Language.Haskell.TH.Lens: instance HasTypeVars Pred
+ Language.Haskell.TH.Lens: instance SubstType Pred
- Control.Lens.Fold: folding :: (Foldable f, Contravariant g, Applicative g) => (s -> f a) -> LensLike g s t a b
+ Control.Lens.Fold: folding :: Foldable f => (s -> f a) -> Fold s a
- Control.Lens.Indexed: conjoined :: Conjoined p => ((p ~ (->)) => q (a -> b) r) -> q (p a b) r -> q (p a b) r
+ Control.Lens.Indexed: conjoined :: Conjoined p => (p ~ (->) => q (a -> b) r) -> q (p a b) r -> q (p a b) r
- Control.Lens.Internal.Coerce: coerce :: Coercible * a b => a -> b
+ Control.Lens.Internal.Coerce: coerce :: Coercible k a b => a -> b
- Control.Lens.Internal.Indexed: conjoined :: Conjoined p => ((p ~ (->)) => q (a -> b) r) -> q (p a b) r -> q (p a b) r
+ Control.Lens.Internal.Indexed: conjoined :: Conjoined p => (p ~ (->) => q (a -> b) r) -> q (p a b) r -> q (p a b) r
Files
- .travis.yml +18/−4
- CHANGELOG.markdown +11/−1
- lens.cabal +2/−4
- src/Control/Lens/At.hs +4/−1
- src/Control/Lens/Each.hs +8/−1
- src/Control/Lens/Fold.hs +1/−4
- src/Control/Lens/Getter.hs +0/−3
- src/Control/Lens/Indexed.hs +92/−2
- src/Control/Lens/Internal/Bazaar.hs +0/−3
- src/Control/Lens/Internal/ByteString.hs +3/−0
- src/Control/Lens/Internal/Context.hs +0/−3
- src/Control/Lens/Internal/Deque.hs +0/−3
- src/Control/Lens/Internal/Indexed.hs +0/−3
- src/Control/Lens/Internal/Magma.hs +0/−3
- src/Control/Lens/Internal/Prism.hs +0/−3
- src/Control/Lens/Internal/Reflection.hs +9/−1
- src/Control/Lens/Internal/Setter.hs +0/−3
- src/Control/Lens/Iso.hs +0/−3
- src/Control/Lens/Lens.hs +0/−3
- src/Control/Lens/Level.hs +0/−3
- src/Control/Lens/Review.hs +0/−3
- src/Control/Lens/Setter.hs +0/−3
- src/Control/Lens/TH.hs +6/−0
- src/Control/Lens/Traversal.hs +7/−5
- src/Control/Lens/Tuple.hs +8/−1
- src/Control/Lens/Zoom.hs +0/−3
- src/Control/Monad/Primitive/Lens.hs +0/−27
- src/Data/Bits/Lens.hs +11/−2
- src/Data/Complex/Lens.hs +9/−1
- src/Data/List/Lens.hs +11/−2
- src/Data/Tree/Lens.hs +10/−1
- src/Data/Typeable/Lens.hs +9/−1
- src/Generics/Deriving/Lens.hs +9/−1
- src/System/Exit/Lens.hs +11/−2
- src/System/FilePath/Lens.hs +8/−0
.travis.yml view
@@ -3,7 +3,8 @@ env: - GHCVER=7.4.2 - GHCVER=7.6.3- - GHCVER=7.8.3+ - GHCVER=7.8.4+ - GHCVER=7.10.1 - GHCVER=head # - > # GHCVER=7.4.2@@ -37,8 +38,8 @@ # Update happy when building with GHC head - |- if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.3" ]; then- $CABAL install happy alex+ if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.4" ] || [ $GHCVER = "7.10.1" ]; then+ $CABAL install --constraint=transformers\ installed happy alex export PATH=$HOME/.cabal/bin:$PATH fi @@ -51,10 +52,23 @@ - $CABAL test --show-details=always - scripts/stats + # tests that a source-distribution can be generated+ - cabal sdist++ # check that the generated source-distribution can be built & installed+ - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;+ cd dist/;+ if [ -f "$SRC_TGZ" ]; then+ cabal install --force-reinstalls "$SRC_TGZ";+ else+ echo "expected '$SRC_TGZ' not found";+ exit 1;+ fi+ notifications: irc: channels: - "irc.freenode.org#haskell-lens" skip_join: true template:- - "\x0313lens\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"+ - "\x0313lens\x0f/\x0306%{branch}\x0f \x0314%{commit}\x0f %{message} \x0302\x1f%{build_url}\x0f"
CHANGELOG.markdown view
@@ -1,3 +1,13 @@+4.9+-------+* `filepath` 1.4 support+* Removed `Control.Monad.Primitive.Lens` and shed the `primitive` dependency.+* Add missing `_WithIndex` instances from `keys` package+* Much more code is inferred `Safe` rather than `Trustworthy`.+* Documented the difference between `unsafeSingular` and `singular`.+* `folding` now produces an actual `Fold`.+* Cleaned up builds for GHC 7.10 to get rid of redundant import warnings.+ 4.8 --- * When built with `profunctors` 4.4 on GHC 7.8+ we no longer need to use `unsafeCoerce` at all!@@ -32,7 +42,7 @@ 4.6.0.1 [maintenance release] --------* Compatibility with `base` 4.8+* Compatibility with `base` 4.8 [Edit: this turned out to not work for the final release of GHC 7.10] 4.6 ---
lens.cabal view
@@ -1,6 +1,6 @@ name: lens category: Data, Lenses, Generics-version: 4.8+version: 4.9 license: BSD3 cabal-version: >= 1.8 license-file: LICENSE@@ -189,7 +189,7 @@ contravariant >= 0.3 && < 2, containers >= 0.4.0 && < 0.6, distributive >= 0.3 && < 1,- filepath >= 1.2.0.0 && < 1.4,+ filepath >= 1.2.0.0 && < 1.5, free >= 4 && < 5, ghc-prim, hashable >= 1.1.2.3 && < 1.3,@@ -197,7 +197,6 @@ exceptions >= 0.1.1 && < 1, mtl >= 2.0.1 && < 2.3, parallel >= 3.1.0.1 && < 3.3,- primitive >= 0.4.0.1 && < 0.6, profunctors >= 4 && < 5, reflection >= 1.1.6 && < 2, semigroupoids >= 4 && < 5,@@ -263,7 +262,6 @@ Control.Lens.Wrapped Control.Lens.Zoom Control.Monad.Error.Lens- Control.Monad.Primitive.Lens Control.Parallel.Strategies.Lens Control.Seq.Lens Data.Array.Lens
src/Control/Lens/At.hs view
@@ -40,7 +40,6 @@ , Contains(..) ) where -import Control.Applicative import Control.Lens.Each import Control.Lens.Traversal import Control.Lens.Lens@@ -68,6 +67,10 @@ import Data.Vector.Storable as Storable import Data.Vector.Unboxed as Unboxed import Data.Word++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif type family Index (s :: *) :: * type instance Index (e -> a) = e
src/Control/Lens/Each.hs view
@@ -10,6 +10,10 @@ #ifdef TRUSTWORTHY {-# LANGUAGE Trustworthy #-} #endif++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Each@@ -26,7 +30,6 @@ Each(..) ) where -import Control.Applicative import Control.Lens.Iso import Control.Lens.Traversal import Data.Array.Unboxed as Unboxed@@ -51,6 +54,10 @@ import qualified Data.Vector.Unboxed as Unboxed import Data.Vector.Unboxed (Unbox) import Data.Word++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif -- $setup -- >>> :set -XNoOverloadedStrings
src/Control/Lens/Fold.hs view
@@ -3,9 +3,6 @@ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif {-# OPTIONS_GHC -fno-warn-orphans #-} ----------------------------------------------------------------------------@@ -194,7 +191,7 @@ -- -- >>> [1,2,3,4]^..folding tail -- [2,3,4]-folding :: (Foldable f, Contravariant g, Applicative g) => (s -> f a) -> LensLike g s t a b+folding :: Foldable f => (s -> f a) -> Fold s a folding sfa agb = coerce . traverse_ agb . sfa {-# INLINE folding #-}
src/Control/Lens/Getter.hs view
@@ -2,9 +2,6 @@ {-# LANGUAGE Rank2Types #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif #if __GLASGOW_HASKELL__ && __GLASGOW_HASKELL__ >= 704 {-# LANGUAGE NoPolyKinds #-} {-# LANGUAGE NoDataKinds #-}
src/Control/Lens/Indexed.hs view
@@ -76,7 +76,11 @@ import Control.Applicative import Control.Applicative.Backwards+import Control.Comonad.Cofree+import Control.Comonad.Trans.Traced import Control.Monad (void, liftM)+import Control.Monad.Trans.Identity+import Control.Monad.Trans.Reader import Control.Monad.Trans.State.Lazy as Lazy import Control.Monad.Free import Control.Lens.Fold@@ -88,17 +92,23 @@ import Control.Lens.Setter import Control.Lens.Traversal import Control.Lens.Type+import Data.Array (Array)+import qualified Data.Array as Array import Data.Foldable+import Data.Functor.Compose+import Data.Functor.Product import Data.Functor.Reverse import Data.Hashable import Data.HashMap.Lazy as HashMap import Data.IntMap as IntMap+import Data.Ix (Ix) import Data.List.NonEmpty as NonEmpty import Data.Map as Map-import Data.Monoid+import Data.Monoid hiding (Product) import Data.Profunctor.Unsafe-import Data.Sequence hiding (index)+import Data.Sequence hiding ((:<), index) import Data.Traversable+import Data.Tree import Data.Tuple (swap) import Data.Vector (Vector) import qualified Data.Vector as V@@ -744,6 +754,86 @@ instance TraversableWithIndex i f => TraversableWithIndex [i] (Free f) where itraverse f (Pure a) = Pure <$> f [] a itraverse f (Free s) = Free <$> itraverse (\i -> itraverse (f . (:) i)) s+ {-# INLINE itraverse #-}++instance Ix i => FunctorWithIndex i (Array i) where+ imap f arr = Array.listArray (Array.bounds arr) . fmap (uncurry f) $ Array.assocs arr+ {-# INLINE imap #-}++instance Ix i => FoldableWithIndex i (Array i) where+ ifoldMap f = foldMap (uncurry f) . Array.assocs+ {-# INLINE ifoldMap #-}++instance Ix i => TraversableWithIndex i (Array i) where+ itraverse f arr = Array.listArray (Array.bounds arr) <$> traverse (uncurry f) (Array.assocs arr)+ {-# INLINE itraverse #-}++instance FunctorWithIndex i f => FunctorWithIndex [i] (Cofree f) where+ imap f (a :< as) = f [] a :< imap (\i -> imap (f . (:) i)) as+ {-# INLINE imap #-}++instance FoldableWithIndex i f => FoldableWithIndex [i] (Cofree f) where+ ifoldMap f (a :< as) = f [] a `mappend` ifoldMap (\i -> ifoldMap (f . (:) i)) as+ {-# INLINE ifoldMap #-}++instance TraversableWithIndex i f => TraversableWithIndex [i] (Cofree f) where+ itraverse f (a :< as) = (:<) <$> f [] a <*> itraverse (\i -> itraverse (f . (:) i)) as+ {-# INLINE itraverse #-}++instance (FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (i, j) (Compose f g) where+ imap f (Compose fg) = Compose $ imap (\k -> imap (f . (,) k)) fg+ {-# INLINE imap #-}++instance (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (i, j) (Compose f g) where+ ifoldMap f (Compose fg) = ifoldMap (\k -> ifoldMap (f . (,) k)) fg+ {-# INLINE ifoldMap #-}++instance (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (i, j) (Compose f g) where+ itraverse f (Compose fg) = Compose <$> itraverse (\k -> itraverse (f . (,) k)) fg+ {-# INLINE itraverse #-}++instance FunctorWithIndex i m => FunctorWithIndex i (IdentityT m) where+ imap f (IdentityT m) = IdentityT $ imap f m+ {-# INLINE imap #-}++instance FoldableWithIndex i m => FoldableWithIndex i (IdentityT m) where+ ifoldMap f (IdentityT m) = ifoldMap f m+ {-# INLINE ifoldMap #-}++instance TraversableWithIndex i m => TraversableWithIndex i (IdentityT m) where+ itraverse f (IdentityT m) = IdentityT <$> itraverse f m+ {-# INLINE itraverse #-}++instance (FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (Product f g) where+ imap f (Pair a b) = Pair (imap (f . Left) a) (imap (f . Right) b)+ {-# INLINE imap #-}++instance (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (Product f g) where+ ifoldMap f (Pair a b) = ifoldMap (f . Left) a `mappend` ifoldMap (f . Right) b+ {-# INLINE ifoldMap #-}++instance (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (Product f g) where+ itraverse f (Pair a b) = Pair <$> itraverse (f . Left) a <*> itraverse (f . Right) b+ {-# INLINE itraverse #-}++instance FunctorWithIndex i m => FunctorWithIndex (e, i) (ReaderT e m) where+ imap f (ReaderT m) = ReaderT $ \k -> imap (f . (,) k) (m k)+ {-# INLINE imap #-}++instance FunctorWithIndex i w => FunctorWithIndex (s, i) (TracedT s w) where+ imap f (TracedT w) = TracedT $ imap (\k' g k -> f (k, k') (g k)) w+ {-# INLINE imap #-}++instance FunctorWithIndex [Int] Tree where+ imap f (Node a as) = Node (f [] a) $ imap (\i -> imap (f . (:) i)) as+ {-# INLINE imap #-}++instance FoldableWithIndex [Int] Tree where+ ifoldMap f (Node a as) = f [] a `mappend` ifoldMap (\i -> ifoldMap (f . (:) i)) as+ {-# INLINE ifoldMap #-}++instance TraversableWithIndex [Int] Tree where+ itraverse f (Node a as) = Node <$> f [] a <*> itraverse (\i -> itraverse (f . (:) i)) as {-# INLINE itraverse #-} -------------------------------------------------------------------------------
src/Control/Lens/Internal/Bazaar.hs view
@@ -7,9 +7,6 @@ #if __GLASGOW_HASKELL__ >= 707 {-# LANGUAGE RoleAnnotations #-} #endif-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Internal.Bazaar
src/Control/Lens/Internal/ByteString.hs view
@@ -35,7 +35,10 @@ , unpackLazy8, traversedLazy8 ) where +#if !MIN_VERSION_base(4,8,0) import Control.Applicative+#endif+ import Control.Lens import qualified Data.ByteString as B #if MIN_VERSION_bytestring(0,10,4)
src/Control/Lens/Internal/Context.hs view
@@ -9,9 +9,6 @@ #if __GLASGOW_HASKELL__ >= 707 {-# LANGUAGE RoleAnnotations #-} #endif-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Internal.Context
src/Control/Lens/Internal/Deque.hs view
@@ -3,9 +3,6 @@ {-# LANGUAGE PatternGuards #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 1 #endif
src/Control/Lens/Internal/Indexed.hs view
@@ -5,9 +5,6 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE MultiParamTypeClasses #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Internal.Indexed
src/Control/Lens/Internal/Magma.hs view
@@ -7,9 +7,6 @@ {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE MultiParamTypeClasses #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif #if __GLASGOW_HASKELL__ >= 707 {-# LANGUAGE RoleAnnotations #-} #endif
src/Control/Lens/Internal/Prism.hs view
@@ -1,7 +1,4 @@ {-# LANGUAGE CPP #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Internal.Prism
src/Control/Lens/Internal/Reflection.hs view
@@ -10,6 +10,11 @@ {-# OPTIONS_GHC -fno-full-laziness #-} {-# OPTIONS_GHC -fno-float-in #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ---------------------------------------------------------------------------- -- | -- Module : Control.Lens.Internal.Reflection@@ -57,12 +62,15 @@ import Foreign.Ptr import Foreign.StablePtr import System.IO.Unsafe-import Control.Applicative import Data.Proxy import Data.Bits import Data.Word import Data.Typeable import Data.Reflection++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif #ifdef HLINT {-# ANN module "HLint: ignore Avoid lambda" #-}
src/Control/Lens/Internal/Setter.hs view
@@ -1,7 +1,4 @@ {-# LANGUAGE CPP #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Internal.Setter
src/Control/Lens/Iso.hs view
@@ -2,9 +2,6 @@ {-# LANGUAGE Rank2Types #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FunctionalDependencies #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif #ifndef MIN_VERSION_bytestring #define MIN_VERSION_bytestring(x,y,z) 1
src/Control/Lens/Lens.hs view
@@ -5,9 +5,6 @@ {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE MultiParamTypeClasses #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif #ifndef MIN_VERSION_mtl #define MIN_VERSION_mtl(x,y,z) 1
src/Control/Lens/Level.hs view
@@ -1,9 +1,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE FlexibleContexts #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Level
src/Control/Lens/Review.hs view
@@ -1,8 +1,5 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE Rank2Types #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ------------------------------------------------------------------------------- -- | -- Module : Control.Lens.Review
src/Control/Lens/Setter.hs view
@@ -3,9 +3,6 @@ {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Setter
src/Control/Lens/TH.hs view
@@ -4,6 +4,10 @@ {-# LANGUAGE Trustworthy #-} #endif +#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ #ifndef MIN_VERSION_template_haskell #define MIN_VERSION_template_haskell(x,y,z) (defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 706) #endif@@ -54,7 +58,9 @@ , generateLazyPatterns ) where +#if !MIN_VERSION_base(4,8,0) import Control.Applicative+#endif #if !(MIN_VERSION_template_haskell(2,7,0)) import Control.Monad (ap) #endif
src/Control/Lens/Traversal.hs view
@@ -7,10 +7,6 @@ {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE ScopedTypeVariables #-} -#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif- #ifndef MIN_VERSION_containers #define MIN_VERSION_containers(x,y,z) 1 #endif@@ -630,6 +626,9 @@ -- >>> [1..10] ^. singular (ix 7) -- 8 --+-- >>> [] & singular traverse .~ 0+-- []+-- -- @ -- 'singular' :: 'Traversal' s t a a -> 'Lens' s t a a -- 'singular' :: 'Fold' s a -> 'Getter' s a@@ -654,6 +653,9 @@ -- The resulting 'Lens' or 'Getter' will be partial if the 'Traversal' targets nothing -- or more than one element. --+-- >>> [] & unsafeSingular traverse .~ 0+-- *** Exception: unsafeSingular: empty traversal+-- -- @ -- 'unsafeSingular' :: 'Traversal' s t a b -> 'Lens' s t a b -- 'unsafeSingular' :: 'Fold' s a -> 'Getter' s a@@ -1222,7 +1224,7 @@ xs -> unsafeOuts b <$> traverse (corep pafb) xs where b = l sell s --- | "Fuse" a 'Traversal' by reassociating all of the '<*>' operations to the+-- | "Fuse" a 'Traversal' by reassociating all of the '\<*\>' operations to the -- left and fusing all of the 'fmap' calls into one. This is particularly -- useful when constructing a 'Traversal' using operations from GHC.Generics. --
src/Control/Lens/Tuple.hs view
@@ -12,6 +12,10 @@ {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FunctionalDependencies #-} +#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ------------------------------------------------------------------------------- -- | -- Module : Control.Lens.Tuple@@ -38,13 +42,16 @@ , _1', _2', _3', _4', _5', _6', _7', _8', _9' ) where -import Control.Applicative import Control.Lens.Lens import Data.Functor.Identity import Data.Functor.Product import Data.Profunctor (dimap) import Data.Proxy (Proxy (Proxy)) import GHC.Generics (Generic (..), (:*:) (..), K1 (..), M1 (..), U1 (..))++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif -- $setup -- >>> :set -XNoOverloadedStrings
src/Control/Lens/Zoom.hs view
@@ -4,9 +4,6 @@ {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FunctionalDependencies #-}-#ifdef TRUSTWORTHY-{-# LANGUAGE Trustworthy #-}-#endif {-# OPTIONS_GHC -fno-warn-warnings-deprecations #-} #ifndef MIN_VERSION_mtl
− src/Control/Monad/Primitive/Lens.hs
@@ -1,27 +0,0 @@-{-# LANGUAGE MagicHash #-}-{-# LANGUAGE UnboxedTuples #-}-{-# LANGUAGE TypeFamilies #-}--------------------------------------------------------------------------------- |--- Module : Control.Monad.Primitive.Lens--- Copyright : (C) 2014-2015 Edward Kmett--- License : BSD-style (see the file LICENSE)--- Maintainer : Edward Kmett <ekmett@gmail.com>--- Stability : provisional--- Portability : Control.Monad.Primitive---------------------------------------------------------------------------------module Control.Monad.Primitive.Lens- (- prim- ) where--import Control.Lens-import Control.Monad.Primitive (PrimMonad(..))-import GHC.Prim (State#)--{-# ANN module "HLint: ignore Unused LANGUAGE pragma" #-}--prim :: (PrimMonad m) => Iso' (m a) (State# (PrimState m) -> (# State# (PrimState m), a #))-prim = iso internal primitive-{-# INLINE prim #-}
src/Data/Bits/Lens.hs view
@@ -1,5 +1,11 @@-{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE CPP #-} {-# LANGUAGE Rank2Types #-}+{-# LANGUAGE FlexibleContexts #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : Data.Bits.Lens@@ -22,8 +28,11 @@ import Control.Lens import Control.Monad.State import Data.Bits-import Data.Functor import Data.Word++#if !MIN_VERSION_base(4,8,0)+import Data.Functor+#endif -- $setup -- >>> :set -XNoOverloadedStrings
src/Data/Complex/Lens.hs view
@@ -1,5 +1,10 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : Data.Complex.Lens@@ -21,9 +26,12 @@ , _conjugate ) where -import Control.Applicative import Control.Lens import Data.Complex++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif -- $setup -- >>> import Debug.SimpleReflect
src/Data/List/Lens.hs view
@@ -1,5 +1,11 @@-{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE CPP #-} {-# LANGUAGE Rank2Types #-}+{-# LANGUAGE FlexibleContexts #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : Data.List.Lens@@ -20,8 +26,11 @@ import Control.Monad (guard) import Control.Lens-import Data.Functor import Data.List++#if !MIN_VERSION_base(4,8,0)+import Data.Functor+#endif -- $setup -- >>> :set -XNoOverloadedStrings
src/Data/Tree/Lens.hs view
@@ -1,4 +1,10 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : Data.Tree.Lens@@ -16,8 +22,11 @@ ) where import Control.Lens-import Data.Functor import Data.Tree++#if !MIN_VERSION_base(4,8,0)+import Data.Functor+#endif -- | A 'Lens' that focuses on the root of a 'Tree'. --
src/Data/Typeable/Lens.hs view
@@ -1,5 +1,10 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE Rank2Types #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : Data.Typeable.Lens@@ -15,10 +20,13 @@ , _gcast ) where -import Control.Applicative import Control.Lens import Data.Typeable import Data.Maybe++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif -- | A 'Traversal'' for working with a 'cast' of a 'Typeable' value. _cast :: (Typeable s, Typeable a) => Traversal' s a
src/Generics/Deriving/Lens.hs view
@@ -3,6 +3,11 @@ {-# LANGUAGE TypeOperators #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE UndecidableInstances #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : Generics.Deriving.Lens@@ -32,12 +37,15 @@ , GTraversal ) where -import Control.Applicative import Control.Lens import Data.Maybe (fromJust) import Data.Typeable import qualified GHC.Generics as Generic import GHC.Generics hiding (from, to)++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif -- $setup -- >>> :set -XNoOverloadedStrings
src/System/Exit/Lens.hs view
@@ -1,5 +1,11 @@-{-# LANGUAGE MultiParamTypeClasses #-}+{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE MultiParamTypeClasses #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : System.Exit.Lens@@ -17,11 +23,14 @@ , _ExitSuccess ) where -import Control.Applicative import Control.Exception import Control.Exception.Lens import Control.Lens import System.Exit++#if !MIN_VERSION_base(4,8,0)+import Control.Applicative+#endif -- | Exit codes that a program can return with: class AsExitCode p f t where
src/System/FilePath/Lens.hs view
@@ -1,3 +1,9 @@+{-# LANGUAGE CPP #-}++#ifndef MIN_VERSION_base+#define MIN_VERSION_base(x,y,z) 1+#endif+ ----------------------------------------------------------------------------- -- | -- Module : System.FilePath.Lens@@ -17,7 +23,9 @@ , basename, directory, extension, filename ) where +#if !MIN_VERSION_base(4,8,0) import Control.Applicative ((<$>))+#endif import Control.Monad.State as State import System.FilePath