Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Conversation

fsoikin
Copy link
Contributor

@fsoikin fsoikin commented Nov 9, 2018

No description provided.

@@ -200,28 +200,19 @@ stack --stack-yaml=stack-8.0.2.yaml install

### Installation on Windows

#### The `make` tool
The `Makefile` doesn't work on Windows due to several UNIX-specific things, such
Copy link
Collaborator

@Anrock Anrock Nov 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm, since when? I'm using makefile exlusively to build hie and everything works.

Copy link
Contributor Author

@fsoikin fsoikin Nov 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how this could work: https://github.com/haskell/haskell-ide-engine/blob/master/Makefile#L22

When I build, there is no file $(STACKLOCALBINDIR)/hie, instead there is a file named $(STACKLOCALBINDIR)/hie.exe - note the extension.

Could it be that you're running everything under WSL or in Docker?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fsoikin no, i'm usually running it under cmd.exe but have msys binaries in path. The only thing i had to do is install make with msys.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Anrock so then, how does cp $(STACKLOCALBINDIR)/hie $(STACKLOCALBINDIR)/hie-8.2.2 work for you? I'm assuming cp must come from msys (though I'm not sure it does), but what about the non-existent file $(STACKLOCALBINDIR)/hie?

@alanz
Copy link
Collaborator

alanz commented Nov 11, 2018

I am not sure what the next step should be around this, not being a part of the windows world.

@lorenzo
Copy link
Collaborator

lorenzo commented Nov 11, 2018

just merging it will be enough. This is already a nice improvement for windows users

@alanz
Copy link
Collaborator

alanz commented Nov 11, 2018

Ok, did not realise it was an add, rather than a change.

@alanz alanz merged commit 782394e into haskell:master Nov 11, 2018
@alanz
Copy link
Collaborator

alanz commented Nov 11, 2018

And I notice it deleted the .bat file. Perhaps we should restore it, as an alternative way of doing things?

@lorenzo
Copy link
Collaborator

lorenzo commented Nov 11, 2018

Not sure why we would need different ways, Powershell is the default shell in windows.

@alanz
Copy link
Collaborator

alanz commented Nov 11, 2018

ok, as I say, I am not familiar with the ecosystem.

@fsoikin
Copy link
Contributor Author

fsoikin commented Nov 11, 2018

@lorenzo @alanz it is possible that the PowerShell script won't work on a very old version of Windows (pre-2000 or so), but I'm pretty sure that stack won't work there either :-)

@alanz also, here's prior conversation: #931 (comment)

@fsoikin fsoikin deleted the powershell-make branch November 11, 2018 14:48
@alanz alanz added this to the prehistory milestone Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants