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

Look at template Haskell again? #756

Open
yaxu opened this issue Jan 12, 2021 · 0 comments
Open

Look at template Haskell again? #756

yaxu opened this issue Jan 12, 2021 · 0 comments

Comments

@yaxu
Copy link
Member

yaxu commented Jan 12, 2021

I don't fully understand TH, but a couple of potential uses for it:

Parsing the mininotation at compile time, to reduce/remove runtime errors. I've had a couple of cases where errors have turned up late, and patterns have rolled back unexpectedly. We could do some pre-processing of the source to still support the mininotation-as-strings (feedforward already does something similar to track source code location of the mininotation for highlighting active events, in a hacky way). This would need to be optional so that minitidal isn't affected.

Removing the large amount of boilerplate from Sound.Tidal.Parse, especially as I want to add a variant of each control function that accepts a bus number. Would be nice although if minitidal can't work with template haskell (is that the case?) then that would be a point against.

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

No branches or pull requests

1 participant