0

As someone who is new to Haskell, I was setting up my text-editors, environments etc. when I found that any new projects I created using the command-line:

stack new my-project new-template

would always be stored in the directory:

C:\Users\username

This isn't ideal, and I wondered if it was possible to change the default directory somehow (this also happens when I clone projects from GitLab).

My operating system is Windows 10 (64 bit) and I have installed Haskell 8.4.3 along with Haskell stack and Git.

Any potential solution would be greatly appreciated; please do ask for more information if it's needed.

Thanks!

1
  • 2
    If you cd into different directory and invoke the about command, does that still result in C:\Users\username ? Commented Oct 6, 2018 at 12:56

1 Answer 1

2

It's because you current directory is C:\Users\username

I think the simple solution is just cd to your preferred directory. For example if have a project directory named project in drive D then cd D:\project followed by stack new my-project new-template.

If you use cmd.exe, then you must type d: first.

Sign up to request clarification or add additional context in comments.

1 Comment

cd doesn't change the current drive by default. cd /d d:\project might work better.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.