-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Improve the default BootTidal.hs #954
Comments
Hi @yaxu - Just went through some Tidal Club videos and I'm getting Tidal set up now! I set up my repo as a Stack project and had to make a custom My primary suggestion is to put as little as possible in the boot file. With more functions in real Haskell files you get the benefits of CI + Haddock. The primary problem here is that the functions in the boot file are essentially partial applications of library functions with some in-scope You can see my boot file and my prelude. Please let me know what you think - I would be happy to contribute a PR if you like this approach. |
Hi @ejconlon, this looks good! I'm a bit unsure about the mechanics of this, how a nullary typeclass works and exactly the In terms of moving UI definitions into a library, that's great. I wouldn't necessarily agree that there should be as little as possible in the boot file. On one hand yes it's great to put as much as possible in the haskell modules. However if the boot file works as a configuration file, I think it makes sense for it to have documented, explicit configuration in there, rather than relying on defaults - just because it's easier to edit a configuration than to create one from scratch. Otherwise, a PR would be appreciated yes! |
I do not believe either of those are a concern. If people want to keep their existing boot file, it will still work. |
closing this for now, because changes seem to be merged already and BootTidal.hs looks easier. :) |
It would be good to document it a bit more, switching from the old
startTidal
function to the more flexiblestartStream
to make it easier for people to add new targets, etc (like in this situation).The text was updated successfully, but these errors were encountered: