on master help sign in
Merge pull request #92 from pradd/patch-1

One more place to write build-plan in UTF8 #90

commit976c6acb8b129f2e7a57235c24e43a00dbf1d735 authorMichael Snoyman <michael@snoyman.com> dateTue 30 Jul 2013, 03:46 (13 years ago) parent66342283e68315
1 file changed+2−1
Stackage/InstallInfo.hs+2−1
Stackage/InstallInfo.hs+2−1
@@ -16,6 +16,7 @@ import Stackage.LoadDatabase
1616import Stackage.NarrowDatabase
1717import Stackage.Types
1818import Stackage.Util
19+import qualified System.IO.UTF8
1920import System.Exit (exitFailure)
2021
2122dropExcluded :: SelectSettings
@@ -54,7 +55,7 @@ getInstallInfo settings = do
5455 (final, errs) <- narrowPackageDB settings totalCore pdb $ Set.fromList $ Map.toList $ Map.map snd $ allPackages
5556
5657 putStrLn "Printing build plan to build-plan.log"
57− writeFile "build-plan.log" $ unlines $ map showDep $ Map.toList final
58+ System.IO.UTF8.writeFile "build-plan.log" $ unlines $ map showDep $ Map.toList final
5859
5960 unless (Set.null errs) $ do
6061 putStrLn "Build plan requires some disallowed packages"