Skip to content

Make Lift instances more efficient - #413

Merged
Bodigrim merged 2 commits into
haskell:masterfrom
TeofilC:more-efficient-lift
Mar 15, 2022
Merged

Make Lift instances more efficient#413
Bodigrim merged 2 commits into
haskell:masterfrom
TeofilC:more-efficient-lift

Conversation

@TeofilC

@TeofilC TeofilC commented Mar 4, 2022

Copy link
Copy Markdown
Member

This patch allows the Lift instance to make use of the primitive bytes literals made available since template-haskell 2.16.

It also adds some extra tests to make sure the instance works correctly with multi codepoint characters.

Let me know if you'd like some changes

@Bodigrim

Bodigrim commented Mar 5, 2022

Copy link
Copy Markdown
Contributor

@phadej could you please review?

@TeofilC

TeofilC commented Mar 5, 2022

Copy link
Copy Markdown
Member Author

The CI failures seem to be due to the change in template-haskell 2.17 for the type of lift from a -> Q a to Quote m => a -> m a. I'll push a fix

@TeofilC
TeofilC force-pushed the more-efficient-lift branch from 453f039 to 607ad17 Compare March 14, 2022 14:27
@TeofilC

TeofilC commented Mar 14, 2022

Copy link
Copy Markdown
Member Author

I've force pushed to squash the fixup commit

@TeofilC

TeofilC commented Mar 14, 2022

Copy link
Copy Markdown
Member Author

Ah dear it seems like I dropped that commit by accident instead of squashing it. I'll fix it in a bit

@Bodigrim

Copy link
Copy Markdown
Contributor

I'll squash all commits any way, so do not worry about that.

@TeofilC
TeofilC force-pushed the more-efficient-lift branch from 607ad17 to 98e9cb3 Compare March 14, 2022 22:46
@Bodigrim
Bodigrim merged commit f256cbb into haskell:master Mar 15, 2022
@Bodigrim

Copy link
Copy Markdown
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants