File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3838 "purescript-aff" : " ^4.0.0" ,
3939 "purescript-control" : " ^3.0.0" ,
4040 "purescript-console" : " ^3.0.0" ,
41- "purescript-integers" : " ^3.0.0"
41+ "purescript-integers" : " ^3.0.0" ,
42+ "purescript-foldable-traversable" : " ^3.7.1"
4243 },
4344 "devDependencies" : {
4445 "purescript-console" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import DOM.HTML.Event.EventTypes (hashchange)
2020import DOM.HTML.Location as L
2121import DOM.HTML.Types (windowToEventTarget )
2222import DOM.HTML.Window (location )
23- import Data.Foldable (class Foldable , find )
23+ import Data.Foldable (class Foldable , indexl )
2424import Data.Maybe (Maybe (..), fromMaybe , maybe )
2525import Data.String (Pattern (..), stripPrefix )
2626import Routing (RoutingEffects , match , matchWith )
@@ -87,5 +87,5 @@ matchesWith parser cb = foldHashes go (go Nothing)
8787 where
8888 go a =
8989 maybe (pure a) (\b -> Just b <$ cb a b)
90- <<< find (const true )
90+ <<< indexl 0
9191 <<< parser
You can’t perform that action at this time.
0 commit comments