mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08: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
|
||||
|
||||
parseNameVersion t1 = do
|
||||
let (p', t2) = break (== '/') t1
|
||||
let (p', t2) = break (== '/') $ T.replace "\\" "/" t1
|
||||
p <- simpleParse p'
|
||||
t3 <- maybe (throwM $ InvalidCabalPath t1 "no slash") return
|
||||
$ stripPrefix "/" t2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user