mirror of
https://github.com/gren-lang/compiler.git
synced 2024-10-03 20:17:48 +03:00
Make sourcemap generation work for submodules on Windows
This commit is contained in:
parent
360ceef378
commit
b887523da9
@ -315,7 +315,7 @@ moduleNameFromFilePath root filePath =
|
||||
& reverse
|
||||
& drop 5 -- .gren
|
||||
& reverse
|
||||
& map (\c -> if c == '/' then '.' else c)
|
||||
& map (\c -> if c == '/' || c == '\\' then '.' else c)
|
||||
& Name.fromChars
|
||||
|
||||
resolvePackagePaths :: Pkg.Name -> PossibleFilePath V.Version -> IO (Pkg.Name, FilePath)
|
||||
|
Loading…
Reference in New Issue
Block a user