Skip to content

Commit

Permalink
Add ToPath instance for lines and loops
Browse files Browse the repository at this point in the history
  • Loading branch information
cchalmers committed Aug 26, 2015
1 parent 9bb8671 commit 57a6461
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Diagrams/Path.hs
Expand Up @@ -189,6 +189,9 @@ instance ToPath (Path v n) where
instance ToPath (Trail v n) where
toPath = pathFromTrail

instance ToPath (Trail' l v n) where
toPath t = Path [Trail t `at` origin]

instance ToPath (Located (Trail v n)) where
toPath = pathFromLocTrail

Expand Down

0 comments on commit 57a6461

Please sign in to comment.