Skip to content

Commit a4fb706

Browse files
committed
Re-export matchers from .Class in .Match
1 parent c3e1433 commit a4fb706

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Routing/Match.purs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
module Routing.Match where
1+
module Routing.Match
2+
( module Routing.Match
3+
, module Routing.Match.Class
4+
) where
25

36
import Prelude
47

@@ -18,7 +21,7 @@ import Data.String.NonEmpty as NES
1821
import Data.Tuple (Tuple(..), snd)
1922
import Data.Validation.Semiring (V, invalid, unV)
2023
import Global (readFloat, isNaN)
21-
import Routing.Match.Class (class MatchClass, str)
24+
import Routing.Match.Class (class MatchClass, bool, end, fail, int, lit, num, param, params, root, str)
2225
import Routing.Match.Error (MatchError(..), showMatchError)
2326
import Routing.Types (Route, RoutePart(..))
2427

test/Test/Main.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import Data.String.NonEmpty as NES
1717
import Data.Tuple (Tuple(..))
1818
import Partial.Unsafe (unsafePartial)
1919
import Routing (match)
20-
import Routing.Match (Match, list, nonempty)
21-
import Routing.Match.Class (bool, end, int, lit, num, str, param, params)
20+
import Routing.Match (Match, bool, end, int, list, lit, nonempty, num, param, params, str)
2221
import Test.Assert (ASSERT, assertEqual)
2322

2423
data MyRoutes

0 commit comments

Comments
 (0)