mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-10 21:37:30 +01:00
Possibly fix a path separator issue #372
This commit is contained in:
parent
18b12d86ff
commit
f9c2d9284c
@ -90,7 +90,7 @@ sourcePackageIndex = do
|
|||||||
return gpd
|
return gpd
|
||||||
|
|
||||||
parseNameVersion t1 = do
|
parseNameVersion t1 = do
|
||||||
let (p', t2) = break (== '/') t1
|
let (p', t2) = break (== '/') $ T.replace "\\" "/" t1
|
||||||
p <- simpleParse p'
|
p <- simpleParse p'
|
||||||
t3 <- maybe (throwM $ InvalidCabalPath t1 "no slash") return
|
t3 <- maybe (throwM $ InvalidCabalPath t1 "no slash") return
|
||||||
$ stripPrefix "/" t2
|
$ stripPrefix "/" t2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user