runMigrationSilent stomps on the encoding of stderr handle #474
Comments
Can you send this report upstream? import System.IO.Silently (hSilence)
runMigrationSilent m = liftBaseOp_ (hSilence [stderr]) $ runMigration' m True |
In general, I think it would be more robust to not rely on |
merijn
added a commit
to merijn/persistent
that referenced
this issue
Oct 11, 2019
This commit fixes/provides workarounds for: yesodweb#474, yesodweb#640, yesodweb#948, and yesodweb#966.
Fixed by #971 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This transcript shows a really strange side effect, and surely it's a bug this happens:
stdout's encoding is not effected, only stderr.
I'm using persistent-2.1.6 and persistent-sqlite-2.1.4.2, with ghc 7.8.4.
In case it matters somehow, here's the TH code that generated the migration:
The text was updated successfully, but these errors were encountered: