diagrams / diagrams-lib

Diagrams standard library
https://diagrams.github.io/
Other
138 stars 62 forks source link

add derived Eq and Ord instances for FixedSegment #333

Closed bacchanalia closed 5 years ago

bacchanalia commented 5 years ago

These already exist for Located (Segment Closed v n), which FixedSegment v n is isomorphic to, but adding the instances avoids having to do the conversion. The Eq instance is useful to prevent trivial cases of running segmentSegment on overlaping segments.