Skip to content

Can stack ghci handle spaces in main-is path, on Windows? #2266

Closed
@mpilgrem

Description

@mpilgrem

On Windows 10, if I do stack new SomeFunc; cd SomeFunc; stack setup; stack build; and then stack ghci an error is reported which suggests to me that perhaps a main-is path with a space is not being handled correctly.

With no space in the path (eg Users folder jsmith), the GHCi startup output of stack ghci includes:

GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Lib              ( C:\Users\jsmith\Documents\Code\Haskell\SomeFunc\src\Lib.hs, interpreted )
Ok, modules loaded: Lib.
[2 of 2] Compiling Main ( C:\Users\jsmith\Documents\Haskell\SomeFunc\app\Main.hs, interpreted )
Ok, modules loaded: Lib, Main.
*Main Lib>

With a space in the path (eg Users folder Jane Smith), the same part of that output has:

GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Lib              ( C:\Users\Jane Smith\Documents\Code\Haskell\SomeFunc\src\Lib.hs, interpreted )
Ok, modules loaded: Lib.
target `C:\Users\Jane' is not a module name or a source file
*Lib Lib>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions