Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Namespaced templates don't work on windows #4394
Steps to reproduce
Downloads the template at https://github.com/yesodweb/stack-templates/blob/master/simple.hsfiles.
The problem seems to be that
(Also, I'm using Windows.)
Method of installation
Official binary, downloaded from stackage.org or fpcomplete's package repository
It works for me on 220.127.116.11 (the RC) — I've put the output below.
Edit: works for me on Linux.
I think this is a Windows issue.
Note the backslash, where you entered a solidus? This is probably overeager path conversion for Windows.
The relevant PR is #4103. I got as far as this, for now:
It's treating the namespaced template as a path.
I'm not too sure that line in
I think I've managed to find the bug. The issue is in these part of
If the template name begins with
Right, so when stack sees
I don't like that a
Would you be willing to work on a PR, @bradrn?
This is already done:
Admittedly, there is a comment next to the constructor clarifying the name:
Yes, I would definitely be willing to work on a PR. Unfortunately, I'm not entirely sure how to fix this problem, as it is impossible to distinguish a