You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ghcs <- hSilence [stderr] $do-- Silence warnings about broken symlinks produced by @find@.
evaluate =<<do-- Needed under Windows, otherwise warnings are raised too lazily-- and not caught by @hSilence@.concat<$>mapM (find recursionP filterP) path
unsafePerformIO: Your pact with the devil. Experience pleasure now, pay in eternity.
The text was updated successfully, but these errors were encountered:
find
lives inIO
, but nevertheless usesunsafePerformIO
.filemanip/System/FilePath/Find.hs
Line 131 in 1ed1659
This leads to weird effects.
E.g. I experienced that on Windows some warnings cause by
find
are printed tostderr
only after the results produced byfind
were inspected. This forced me to wrapfind
intoControl.Exceptions.evaluate
to trigger the printing of warnings at the correct moment.Details are here: https://github.com/andreasabel/cabal-clean/blob/015cf3d6bda2e7b9118f3b19f50e27c70592d75c/src/DiscoverGHCs.hs#L30-L33
unsafePerformIO
: Your pact with the devil. Experience pleasure now, pay in eternity.The text was updated successfully, but these errors were encountered: