Closed dlorch closed 7 years ago
No... Sorry
No problem. Maybe you could add an info to the README?
Updated.
It's probably vty
that using unix
, I could just disable the interactive bits; if you want to do that this is just a very small program. I think it's the interactive mode stack run -i
with a list prompt is what doesn't support Windows.
My level of Haskell is still very low so unfortunately I can't provide you with a patch. I'd appreciate if you could consider doing what you suggested and simply remove the interactive mode for Windows users. stack-run
is integrated into Haskelly and this might be useful for other users, too.
Actually I've run into this issue as well. Haskelly looks like a decent Haskell extension and so it'd be nice with Windows support in stack-run
.
Accidentally closed the issue; pushing fixes to get the project building on AppVeyor, then if someone could test an updated version I'd really appreciate it - so I don't have to set-up a Windows VM for Haskell.
Aahhh... Okay, supporting Windows isn't as straightforward as I'd like.
It should work if projectroot is updated to work on Windows. I'm not going to do this at this time. I suggest Haskelly use something else or someone that knows Windows to provide a simple patch there.
Currently the issue seems to be just Windows doesn't have glob.h
: https://ci.appveyor.com/project/yamadapc/projectroot
Any hints on what is that header file?
It's a globbing library; overall really simple to remove the dependency...
The only real "pattern" is to match *.cabal
. https://github.com/yamadapc/projectroot/blob/master/libprojectroot.c#L39
Then I guess we need a fork of projectroot
in stack-run
that matches only *.cabal
files, right?
I'm another Haskelly user that would like to see this working on Windows. If I wanted to take a crack at this would you consider a patch that dropped projectroot all together and just reimplemented its functionality using filepath (or of course adding a glob'ing Haskell lib, I figured you'd probably prefer not to add another dependency though).
Yes, I think projectroot
should just be removed or implemented very simply in Haskell only, it's a shame since it's all very simple.
@dfarmer If you can implement getCabalProjectRootCurrent :: IO (Maybe FilePath)
in Haskell,
getCabalProjectRootCurrent :: IO (Maybe FilePath)
getCabalProjectRootCurrent = do
cwd <- getCurrentDirectory
-- while cwd isn't the root look for `.cabal` and go up
Fine if it just looks for extname .cabal
.
I'd be happy to accept.
v0.1.1.4
should work on windows
🎉
I don't see any indications to the contrary, but installation fails on my machine:
I am running Windows 7 Enterprise.