Skip to content

Refine the imports of `System.IO.OS`

Commit 68bd0805 replaced the GHC.Internal.Data.Bool import by a GHC.Internal.Base import. However, while the GHC.Internal.Data.Bool import was conditional and partial, the GHC.Internal.Base import is unconditional and total. As a result, the import list is not tuned to import only the necessary bits anymore, and furthermore GHC emits a lot of warnings about redundant imports.

This commit makes the GHC.Internal.Base import conditional and partial in the same way that the GHC.Internal.Data.Bool import was.

Merge request reports

Loading