Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | Haskell2010 |
Data types that help encodedecode a planegraph as a JSONYAML file.
Documentation
Data type representing the graph in its JSON/Yaml format
Gr | |
|
Instances
Bifunctor Gr | |
Generic (Gr v f) | |
(ToJSON v, ToJSON f) => ToJSON (Gr v f) | |
Defined in Data.PlanarGraph.AdjRep | |
(FromJSON v, FromJSON f) => FromJSON (Gr v f) | |
type Rep (Gr v f) | |
Defined in Data.PlanarGraph.AdjRep type Rep (Gr v f) = D1 ('MetaData "Gr" "Data.PlanarGraph.AdjRep" "hgeometry-combinatorial-0.12.0.1-3UsM6nqO83QAAGVLl4vU5w" 'False) (C1 ('MetaCons "Gr" 'PrefixI 'True) (S1 ('MetaSel ('Just "adjacencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [v]) :*: S1 ('MetaSel ('Just "faces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [f]))) |
A vertex, represented by an id, location, its adjacencies, and its data.
Instances
Functor (Vtx v e) Source # | |
Generic (Vtx v e r) Source # | |
(ToJSON r, ToJSON v, ToJSON e) => ToJSON (Vtx v e r) Source # | |
Defined in Data.PlaneGraph.AdjRep | |
(FromJSON r, FromJSON v, FromJSON e) => FromJSON (Vtx v e r) Source # | |
type Rep (Vtx v e r) Source # | |
Defined in Data.PlaneGraph.AdjRep type Rep (Vtx v e r) = D1 ('MetaData "Vtx" "Data.PlaneGraph.AdjRep" "hgeometry-0.12.0.1-744QXwUb5uS54emseMX1Co" 'False) (C1 ('MetaCons "Vtx" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "loc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Point 2 r))) :*: (S1 ('MetaSel ('Just "adj") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Int, e)]) :*: S1 ('MetaSel ('Just "vData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 v)))) |
Faces
Face | |
|
Instances
Functor Face | |
Generic (Face f) | |
ToJSON f => ToJSON (Face f) | |
Defined in Data.PlanarGraph.AdjRep | |
FromJSON f => FromJSON (Face f) | |
type Rep (Face f) | |
Defined in Data.PlanarGraph.AdjRep type Rep (Face f) = D1 ('MetaData "Face" "Data.PlanarGraph.AdjRep" "hgeometry-combinatorial-0.12.0.1-3UsM6nqO83QAAGVLl4vU5w" 'False) (C1 ('MetaCons "Face" 'PrefixI 'True) (S1 ('MetaSel ('Just "incidentEdge") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int, Int)) :*: S1 ('MetaSel ('Just "fData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 f))) |