| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
ADP.Fusion.Core.Term.Edge
Synopsis
- newtype From = From {}
- newtype To = To {}
- data Edge = Edge
- class EdgeFromTo k where- edgeFromTo :: Proxy k -> SetBoundary -> NewBoundary -> From :. To
 
- newtype SetBoundary = SetBoundary Int
- newtype NewBoundary = NewBoundary Int
Documentation
An edge in a graph. As a parsing symbol, it will provide (From:.To) pairs.
Constructors
| Edge | 
Instances
| Build Edge Source # | |
| (Show i, Show (RunningIndex i), Show (Elm ls i)) => Show (Elm (ls :!: Edge) i) Source # | |
| Element ls i => Element (ls :!: Edge) i Source # | |
| type Stack Edge Source # | |
| type TermArg Edge Source # | |
| data Elm (ls :!: Edge) i Source # | |
| Defined in ADP.Fusion.Core.Term.Edge | |
| type Arg (ls :!: Edge) Source # | |
class EdgeFromTo k where Source #
edgeFromTo creates a (From:.To) structure for edges. How this is
 filled depends on the Proxy. Possible are Proxy First and Proxy Last.
 First denotes that To is the first node to be visited. I.e. First(From)
 → Set(To). Last on the other hand is Set(From) → Last(To).
Methods
edgeFromTo :: Proxy k -> SetBoundary -> NewBoundary -> From :. To Source #
Instances
| EdgeFromTo First Source # | In case our sets have a  
 | 
| Defined in ADP.Fusion.Core.Term.Edge Methods edgeFromTo :: Proxy First -> SetBoundary -> NewBoundary -> From :. To Source # | |
| EdgeFromTo Last Source # | And if the set has a  
 | 
| Defined in ADP.Fusion.Core.Term.Edge Methods edgeFromTo :: Proxy Last -> SetBoundary -> NewBoundary -> From :. To Source # | |
newtype SetBoundary Source #
Constructors
| SetBoundary Int | 
newtype NewBoundary Source #
Constructors
| NewBoundary Int |