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

snowball: wrong argument order in example in haddock #986

Closed
jwaldmann opened this issue Dec 31, 2022 · 1 comment
Closed

snowball: wrong argument order in example in haddock #986

jwaldmann opened this issue Dec 31, 2022 · 1 comment

Comments

@jwaldmann
Copy link
Contributor

it says snowball (+) (slow 2 . rev) 8 "0 ~ . -1 . 5 3 4 . ~ -2"
https://github.com/tidalcycles/Tidal/blob/main/src/Sound/Tidal/UI.hs#L1919

but it should be snowball 8 (+) (slow 2 . rev) "0 ~ . -1 . 5 3 4 . ~ -2"
(the number of repetitions goes first).

I can send MR (but probably not today).

@jwaldmann
Copy link
Contributor Author

jwaldmann commented Jan 1, 2023

I wonder how bugs of this kind (code snippet in comments/documentation is out-of-synch with actual implementation) could be found automatically.

Do the examples consistently have d1 $ ... shape? then they'd be easier to detect.

Perhaps something like https://hackage.haskell.org/package/doctest-extract

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