-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Fix build with text
2.1.2
#752
Conversation
All previous versions are broken, especially without Hackage revisions to add bounds: dmjio/miso#752.
@dmjio Could I nudge you for a release and revisions here? I keep hitting build errors in all of my projects because of the lax bounds. And thus having to manually constrain Cabal to pick an older |
Coming back to this, I think the better solution would be to not re-export {-# LANGUAGE CPP #-}
module Miso.String ( module X ) where
#if MIN_VERSION_text(2,1,2)
import qualified Data.Text as X hiding (show)
#else
import qualified Data.Text as X
#endif |
Yes, much better idea! I can't remember why I did it my way to be honest. I will say again, Hackage revisions for old versions would be useful in order to prevent bad build plans. This is quite easy to do with hackage-cli. |
It should be fine now that the CPP is in. Regarding build plans, they aren't necessary if nix is used as your resolver. Nix is unfortunately still necessary for reasonably working with GHC cross compilers. It also keeps us from playing "package bumper" all the time. The external APIs for most of miso's deps. don't change, like |
This isn't really true for the Wasm backend. And even when using Nix there, the common approach is to use the Anyway, I can't force you to do it! And I'm aware that there's some PvP skepticism among Nix and Stack users. I will just have to keep a mental note that not using the latest version of Miso might result in build failures. |
So far there's been no build failures reported by users until |
If it starts getting out of hand I'll add constraints. |
https://hackage.haskell.org/package/text-2.1.2/changelog
We need to deal with
show
now being exported fromData.Text
.Strictly speaking, all old versions of Miso need a Hackage revision setting
text < 2.1.2
.