mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-10 10:07:29 +01:00
Fix parsing error
This commit is contained in:
parent
c04686aad0
commit
7f3bb119f4
@ -22,7 +22,7 @@ instance PathPiece SnapName where
|
|||||||
fromPathPiece t0 =
|
fromPathPiece t0 =
|
||||||
nightly <|> lts
|
nightly <|> lts
|
||||||
where
|
where
|
||||||
nightly = stripPrefix "nightly-" t0 >>= readMay
|
nightly = fmap SNNightly $ stripPrefix "nightly-" t0 >>= readMay
|
||||||
lts = do
|
lts = do
|
||||||
t1 <- stripPrefix "lts-" t0
|
t1 <- stripPrefix "lts-" t0
|
||||||
Right (x, t2) <- Just $ decimal t1
|
Right (x, t2) <- Just $ decimal t1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user