Skip to content

Commit efcac8f

Browse files
committed
removed debug.foreign, added comment
1 parent 8e1d059 commit efcac8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Routing.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
4144
matches :: forall e a. Match a -> (Maybe a -> a -> Eff e Unit) -> Eff e Unit
4245
matches = matches' decodeURIComponent
4346

src/Routing/Match.purs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import Routing.Types
2121
import Routing.Match.Class
2222
import Routing.Match.Error
2323

24-
import Debug.Foreign
25-
2624
newtype Match a = Match (Route -> V (Free MatchError) (Tuple Route a))
2725

2826
instance matchMatchClass :: MatchClass Match where

0 commit comments

Comments
 (0)