Skip to content

Future-proof against potential Prelude.foldl' #39

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

Closed
wants to merge 1 commit into from
Closed

Future-proof against potential Prelude.foldl' #39

wants to merge 1 commit into from

Conversation

Bodigrim
Copy link
Contributor

@Bodigrim Bodigrim commented Jun 4, 2023

See haskell/core-libraries-committee#167

This is, of course, a bit speculative at the moment, but given that the change does not involve CPP, it should not hurt to merge it early to simplify further impact assessment.

@Bodigrim
Copy link
Contributor Author

Bodigrim commented Jun 8, 2023

@phadej shall I rather make all imports from Prelude explicitly listed avoiding hiding altogether?

@phadej
Copy link
Collaborator

phadej commented Jun 8, 2023

@phadej shall I rather make all imports from Prelude explicitly listed avoiding hiding altogether?

That would be nice.

@Bodigrim
Copy link
Contributor Author

Bodigrim commented Jun 8, 2023

Done.

@@ -106,6 +106,12 @@ module Data.Text.Short.Internal
, isValidUtf8
) where

import Prelude
(Bool(..), Ordering(..), Int, Char, String, Maybe(..), IO, Eq, Ord, Num, Read,
Show, Monoid, ($), ($!), (.), (==), (/=), (+), (*), (-), (>>), (<=), (<), (>), (>=),
Copy link
Collaborator

@phadej phadej Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import Data.Monoid (Monoid, mempty, mconcat)

as separate import.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phadej done, thanks.

@Bodigrim
Copy link
Contributor Author

@phadej anything else you'd like me to do here? CI failures seem unrelated.

@phadej
Copy link
Collaborator

phadej commented Jul 29, 2023

No. I was waiting (and kind of still do) for text-2.1 to happen, so text-short can be updated for that as well at the same time.

@Bodigrim
Copy link
Contributor Author

text-2.1 has been released.

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