Skip to content

Commit

Permalink
The System.IO.Seek module is redundant from ghc-8.10.7 onwards.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdral committed Mar 17, 2023
1 parent 3f7c90f commit 96c805f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 40 deletions.
6 changes: 0 additions & 6 deletions fs-api/fs-api.cabal
Expand Up @@ -42,12 +42,6 @@ library
, Util.CallStack
, Util.Condense

if os(windows)
exposed-modules:
-- TODO Delete this module once all our projects have upgraded to at least
-- ghc-8.10.7, but not before
System.IO.Seek

default-language: Haskell2010

build-depends: base >=4.14 && <4.17
Expand Down
6 changes: 1 addition & 5 deletions fs-api/src-win32/System/IO/FS.hs
Expand Up @@ -20,14 +20,10 @@ import Data.ByteString
import Data.ByteString.Internal as Internal
import Data.Word (Word32, Word64, Word8)
import Foreign (Int64, Ptr)

-- Dodgy import when Win32 >= 2.6.2.0
import System.Win32 hiding (setFilePointerEx)

import System.FS.API.Types (AllowExisting (..), FsError (..),
FsErrorType (..), OpenMode (..), SeekMode (..))
import System.FS.Handle
import System.IO.Seek (setFilePointerEx)
import System.Win32

type FHandle = HandleOS HANDLE

Expand Down
29 changes: 0 additions & 29 deletions fs-api/src-win32/System/IO/Seek.hsc

This file was deleted.

0 comments on commit 96c805f

Please sign in to comment.