Skip to content

Commit de41517

Browse files
author
Marcin Szamotulski
committed
Ord instance for RoutePart
1 parent 2ee0c88 commit de41517

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Routing/Types.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ module Routing.Types where
22

33
import Data.List (List)
44
import Data.Map (Map)
5+
import Data.Ord (class Ord)
56
import Prelude (class Eq)
67

78
data RoutePart = Path String | Query (Map String String)
89

910
derive instance eqRoutePart :: Eq RoutePart
11+
derive instance ordRoutePart :: Ord RoutePart
1012

1113
type Route = List RoutePart

0 commit comments

Comments
 (0)