Skip to content

Commit 3b86c48

Browse files
authored
Merge pull request #45 from coot/eqRoutePart
Eq instance for RoutePart
2 parents bc97e20 + de41517 commit 3b86c48

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Routing/Types.purs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
module Routing.Types where
22

3-
import Data.List (List())
4-
import Data.Map (Map())
3+
import Data.List (List)
4+
import Data.Map (Map)
5+
import Data.Ord (class Ord)
6+
import Prelude (class Eq)
57

68
data RoutePart = Path String | Query (Map String String)
9+
10+
derive instance eqRoutePart :: Eq RoutePart
11+
derive instance ordRoutePart :: Ord RoutePart
12+
713
type Route = List RoutePart

0 commit comments

Comments
 (0)