Skip to content

Commit 5ea79fb

Browse files
authored
Fix compile error due to String.splitAt
It no longer returns Maybe.
1 parent 6e26229 commit 5ea79fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Routing/Parser.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ parseQueryPart decoder =
2929
-- | applied to every hash part (usually `decodeURIComponent`)
3030
parse :: (String -> String) -> String -> Route
3131
parse decoder hash =
32-
case flip S.splitAt hash =<< S.indexOf (S.Pattern "?") hash of
32+
case flip S.splitAt hash <$> S.indexOf (S.Pattern "?") hash of
3333
Just { before, after } ->
3434
pathParts before
3535
<> map Query (L.fromFoldable (parseQueryPart decoder (S.drop 1 after)))

0 commit comments

Comments
 (0)