Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Lens' s a = forall f. Functor f => (a -> f a) -> s -> f s
- _class :: ClassId -> Lens' (EGraph l) (EClass l)
- _memo :: Lens' (EGraph l) (NodeMap l ClassId)
- _classes :: Lens' (EGraph l) (ClassIdMap (EClass l))
- _data :: Lens' (EClass l) (Domain l)
- _parents :: Lens' (EClass l) (SList (ClassId, ENode l))
- _nodes :: Lens' (EClass l) (Set (ENode l))
- (^.) :: s -> Lens' s a -> a
- (.~) :: Lens' s a -> a -> s -> s
- (%~) :: Lens' s a -> (a -> a) -> s -> s
- view :: Lens' s a -> s -> a
- set :: Lens' s a -> a -> s -> s
- over :: Lens' s a -> (a -> a) -> s -> s
Documentation
type Lens' s a = forall f. Functor f => (a -> f a) -> s -> f s Source #
A Lens'
as defined in other lenses libraries
_class :: ClassId -> Lens' (EGraph l) (EClass l) Source #
Lens for the e-class with the given id in an e-graph
Calls error
when the e-class doesn't exist
_memo :: Lens' (EGraph l) (NodeMap l ClassId) Source #
Lens for the memo of e-nodes in an e-graph, that is, a mapping from e-nodes to the e-class they're represented in
_classes :: Lens' (EGraph l) (ClassIdMap (EClass l)) Source #
Lens for the map of existing classes by id in an e-graph