Skip to content

Make Lift Text work under RebindableSyntax - #534

Merged
Bodigrim merged 1 commit into
masterfrom
rebindablesyntax
Jul 28, 2023
Merged

Make Lift Text work under RebindableSyntax#534
Bodigrim merged 1 commit into
masterfrom
rebindablesyntax

Conversation

@Lysxia

@Lysxia Lysxia commented Jul 28, 2023

Copy link
Copy Markdown
Contributor

The Lift Int instance produces a polymorphic literal, which desugars to fromIntegral under RebindableSyntax. Fixing that instance in base may be too much of a breaking change if a lot of code relies on the accidental polymorphism. We can at least fix Lift Text by not relying on Lift Int.

Fixes #533

The Lift Int instance produces a polymorphic literal, which desugars to
fromIntegral under RebindableSyntax. Fixing that instance in base may be
too much of a breaking change if a lot of code relies on the accidental
polymorphism. We can at least fix Lift Text by not relying on Lift Int.
@Bodigrim
Bodigrim merged commit a7a7eb0 into master Jul 28, 2023
@Bodigrim

Copy link
Copy Markdown
Contributor

Great!

hubot pushed a commit to ghc/ghc that referenced this pull request Sep 18, 2024
Previously these Lift instances could not be used with a custom
fromInteger introduced by RebindableSyntax.

We implement the same workaround as: haskell/text#534
to fix this.

Resolves #25272
hubot pushed a commit to ghc/ghc that referenced this pull request Sep 18, 2024
Previously these Lift instances could not be used with a custom
fromInteger introduced by RebindableSyntax.

We implement the same workaround as: haskell/text#534
to fix this.

Resolves #25272
hubot pushed a commit to ghc/ghc that referenced this pull request Sep 18, 2024
Previously these Lift instances could not be used with a custom
fromInteger introduced by RebindableSyntax.

We implement the same workaround as: haskell/text#534
to fix this.

Resolves #25272
@Lysxia
Lysxia deleted the rebindablesyntax branch January 27, 2026 11:12
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.

The new lift implementation in text-2.0.1 breaks with RebindableSyntax

2 participants