haskell / file-io

File IO (read/write/open) for OsPath API
Other
11 stars 5 forks source link

Redundant imports in `System.File.Platform` with filepath >= 1.5 #30

Open wz1000 opened 4 days ago

wz1000 commented 4 days ago
libraries/file-io/posix/System/File/Platform.hs:30:1: error: [GHC-66111] [-Wunused-imports, Werror=unused-imports]
    The import of ‘System.OsString.Internal.Types’ is redundant
      except perhaps to import instances from ‘System.OsString.Internal.Types’
    To import instances alone, use: import System.OsString.Internal.Types()
   |
30 | import "os-string" System.OsString.Internal.Types (PosixString(..), PosixChar(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

libraries/file-io/posix/System/File/Platform.hs:31:1: error: [GHC-66111] [-Wunused-imports, Werror=unused-imports]
    The qualified import of ‘System.OsString.Data.ByteString.Short’ is redundant
      except perhaps to import instances from ‘System.OsString.Data.ByteString.Short’
    To import instances alone, use: import System.OsString.Data.ByteString.Short()
   |
31 | import qualified "os-string" System.OsString.Data.ByteString.Short as BC
hasufell commented 4 days ago

Feel free to create a PR