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

More efficient folds for Seq #1036

Open
meooow25 opened this issue Sep 10, 2024 · 1 comment
Open

More efficient folds for Seq #1036

meooow25 opened this issue Sep 10, 2024 · 1 comment

Comments

@meooow25
Copy link
Contributor

We can define folds for Seq more efficiently. See thread starting #1016 (comment) and in particular the code by treeowl in #1016 (comment)

The catch is that we need GADTs, which is not portable.

@meooow25
Copy link
Contributor Author

Might be worth noting that we already use a couple of extensions in a non-portable way

  1. CPP - Primarily to guard GHC features, including other extensions, or provide faster implementations on GHC
  2. BangPatterns - Compared to the portable alternative (seq), this is just so much nicer to use and read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant