File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ hashes cb =
3838 where dropHash h = R .replace (R .regex " ^[^#]*#" R .noFlags) " " h
3939
4040
41+ -- | Stream of hash changed, callback called when new hash can be matched
42+ -- | First argument of callback is `Just a` when old hash can be matched
43+ -- | and `Nothing` when it can't.
4144matches :: forall e a . Match a -> (Maybe a -> a -> Eff e Unit ) -> Eff e Unit
4245matches = matches' decodeURIComponent
4346
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ import Routing.Types
2121import Routing.Match.Class
2222import Routing.Match.Error
2323
24- import Debug.Foreign
25-
2624newtype Match a = Match (Route -> V (Free MatchError ) (Tuple Route a ))
2725
2826instance matchMatchClass :: MatchClass Match where
You can’t perform that action at this time.
0 commit comments