Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global --debug flag #155

Merged
merged 5 commits into from
Mar 21, 2019
Merged

Add global --debug flag #155

merged 5 commits into from
Mar 21, 2019

Conversation

f-f
Copy link
Member

@f-f f-f commented Mar 20, 2019

This PR adds a global --debug flag.
When enabled, it will print additional logging, e.g. purs commands that are being called by spago (and this will include other debug messages in the future)

Note: the diff is huge because I took advantage of this to:

  • transition the app to the ReaderT pattern, so we can easily access a global config
  • move to a custom Prelude instead of using Turtle (reason is that many of the functions in Turtle are fixed in IO, and this conflicts with the above point)

Fix #154

@f-f f-f merged commit 130d460 into master Mar 21, 2019
@f-f f-f deleted the add-debug branch May 1, 2019 18:59
elliotdavies pushed a commit to elliotdavies/spago that referenced this pull request Jul 1, 2019
When enabled, it will print additional logging, e.g. purs commands that are being 
called by spago (and this will include other debug messages in the future)

This PR also introduces:
- a transition of the app to the ReaderT pattern, so we can easily access a global config
- move to a custom Prelude instead of using straight Turtle (reason is that many of the
  functions in Turtle are fixed in IO, and this conflicts with the above point)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make printing purs commands optional
1 participant