-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Overriding take
and drop
.. or making a tidal prelude?
#1144
Comments
Relatedly, previously |
It seems the problem I'm having is that |
I have no strong opinion on this. |
Due to haskell/cabal#10786 , and that |
We're already replacing the Haskell prelude's
<*
and*>
operators, and now I'd quite like to replacetake
anddrop
with functions that operate on pattern steps rather than lists. At the moment I'm definingsteptake
andstepdrop
, which are justtake
anddrop
in strudel.So it crossed my mind that we could more fully embrace Tidal as a domain specific language, and only import selected functions from the Prelude. (Of course end-user live coders could still explicitly import it all themselves if they wanted.)
But in any case we could hide the prelude's
take
anddrop
, in a way that people could still doPrelude.take
etc if they wanted. Or is this a bit far for such well-used haskell functions?Ideally we could make a polymorphic version that works on both patterns and lists, but sadly I think that's not possible as the pattern version will take patterns of rationals, whereas the list version takes plain integers.
The text was updated successfully, but these errors were encountered: