Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Ixed c => At c where
- type family Index c
- type family IxValue c
- atSet :: (Index c -> c -> Bool) -> (Index c -> c -> c) -> (Index c -> c -> c) -> Index c -> Lens' c (Maybe ())
- atMap :: (Index c -> c -> Maybe (IxValue c)) -> (Index c -> IxValue c -> c -> c) -> (Index c -> c -> c) -> Index c -> Lens' c (Maybe (IxValue c))
- ixAt :: At a => Index a -> Optional' a (IxValue a)
- sans :: At c => Index c -> c -> c
Updateable collections
Instances
type Index IntSet Source # | |
Defined in Fresnel.Ixed | |
type Index [v] Source # | |
Defined in Fresnel.Ixed | |
type Index (Maybe a) Source # | |
Defined in Fresnel.Ixed | |
type Index (NonEmpty v) Source # | |
Defined in Fresnel.Ixed | |
type Index (IntMap v) Source # | |
Defined in Fresnel.Ixed | |
type Index (Set k) Source # | |
Defined in Fresnel.Ixed | |
type Index (HashSet k) Source # | |
Defined in Fresnel.Ixed type Index (HashSet k) = k | |
type Index (Map k v) Source # | |
Defined in Fresnel.Ixed | |
type Index (HashMap k v) Source # | |
Defined in Fresnel.Ixed type Index (HashMap k v) = k |
type family IxValue c Source #
Instances
type IxValue IntSet Source # | |
Defined in Fresnel.Ixed | |
type IxValue [v] Source # | |
Defined in Fresnel.Ixed type IxValue [v] = v | |
type IxValue (Maybe a) Source # | |
Defined in Fresnel.Ixed | |
type IxValue (NonEmpty v) Source # | |
Defined in Fresnel.Ixed | |
type IxValue (IntMap v) Source # | |
Defined in Fresnel.Ixed | |
type IxValue (Set k) Source # | |
Defined in Fresnel.Ixed | |
type IxValue (HashSet k) Source # | |
Defined in Fresnel.Ixed type IxValue (HashSet k) = () | |
type IxValue (Map k v) Source # | |
Defined in Fresnel.Ixed | |
type IxValue (HashMap k v) Source # | |
Defined in Fresnel.Ixed type IxValue (HashMap k v) = v |
Construction
atSet :: (Index c -> c -> Bool) -> (Index c -> c -> c) -> (Index c -> c -> c) -> Index c -> Lens' c (Maybe ()) Source #
atMap :: (Index c -> c -> Maybe (IxValue c)) -> (Index c -> IxValue c -> c -> c) -> (Index c -> c -> c) -> Index c -> Lens' c (Maybe (IxValue c)) Source #