-
Notifications
You must be signed in to change notification settings - Fork 180
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
Use a fake GADT for sequence folds and traversals #1078
base: master
Are you sure you want to change the base?
Conversation
As promised, here's the working draft. It's incomplete and completely unbenchmarked. |
@@ -1078,7 +1135,33 @@ instance Sized a => Sized (FingerTree a) where | |||
size (Single x) = size x | |||
size (Deep v _ _ _) = v | |||
|
|||
-- We don't fold FingerTrees directly, but instead coerce them to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lie at the moment. It might or might not be true later. WIP....
@augustss I'm sure this code is nonsense under MicroHs, but the error message it gives me looks equally nonsensical. |
If GHC doesn't complain then MicroHs shouldn't either. I'm happy to take a
bug report.
…On Sun, Dec 15, 2024, 05:26 David Feuer ***@***.***> wrote:
@augustss <https://github.com/augustss> I'm sure this code is nonsense
under MicroHs, but the error message it gives me looks equally nonsensical.
—
Reply to this email directly, view it on GitHub
<#1078 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIARHTII3IMPFIWVETMHG32FUAFXAVCNFSM6AAAAABTUEXLAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBTGQ2DENZYHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It's not just MicroHs, I've never seen GHC react in this many ways to the same piece of code 😀
|
Use in more functions, etc.
No description provided.