Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t
- type Lens' s a = Lens s s a a
- type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t
- type Traversal' s a = Traversal s s a a
- class HasTypes s a where
- types_ :: Traversal' s a
- over :: Traversal' s a -> (a -> a) -> s -> s
- flattenValues :: forall a s. Traversal' s a -> s -> [a]
- replaceValues :: forall a s. Traversal' s a -> s -> [a] -> s
- types :: forall a s. HasTypes s a => Traversal' s a
- class GHasTypes s a where
- gtypes :: forall b. Traversal' (s b) a
Documentation
type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t Source #
type Traversal' s a = Traversal s s a a Source #
class HasTypes s a where Source #
Nothing
types_ :: Traversal' s a Source #
Instances
over :: Traversal' s a -> (a -> a) -> s -> s Source #
flattenValues :: forall a s. Traversal' s a -> s -> [a] Source #
replaceValues :: forall a s. Traversal' s a -> s -> [a] -> s Source #
types :: forall a s. HasTypes s a => Traversal' s a Source #
class GHasTypes s a where Source #
gtypes :: forall b. Traversal' (s b) a Source #
Instances
GHasTypes (U1 :: Type -> Type) a Source # | |
Defined in Torch.Lens gtypes :: Traversal' (U1 b) a Source # | |
(GHasTypes f a, GHasTypes g a) => GHasTypes (f :*: g) a Source # | |
Defined in Torch.Lens gtypes :: Traversal' ((f :*: g) b) a Source # | |
(GHasTypes f a, GHasTypes g a) => GHasTypes (f :+: g) a Source # | |
Defined in Torch.Lens gtypes :: Traversal' ((f :+: g) b) a Source # | |
HasTypes s a => GHasTypes (K1 i s :: Type -> Type) a Source # | |
Defined in Torch.Lens gtypes :: Traversal' (K1 i s b) a Source # | |
GHasTypes s a => GHasTypes (M1 i t s) a Source # | |
Defined in Torch.Lens gtypes :: Traversal' (M1 i t s b) a Source # |