Added clean with platform agnostic workaround #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Yeah this isn't a pretty script. I first wanted to use ifeq like a in a proper Makefile but then windows started acting up with not being able to find that specific command. Read on stack overflow that it could be several issues with the path so I decided I wouldn't bother and work around it for now. (Because fixing path issues would make running this template a lot worse)
So right now I just added an or true to the back of the clean operations for both unix and windows and the only ugly thing remaining is that your terminal complains that it it doesn't recognize the command. No clue how to suppress that so if you know if that's possible that would be great.
This does fix the issue of lingering code in your build output and should also prevent people from writing huge swats of haskell code in the lib build folder.
Also added .vscode to gitignore. (I was also thinking of adding the lib file to gitignore because it's build output but that might cause some confusion?)