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 21, 2023
1 parent eedae1d commit f6a4598
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 41 deletions.
4 changes: 3 additions & 1 deletion README.md
@@ -1,4 +1,6 @@
[![Haskell CI](https://img.shields.io/github/actions/workflow/status/input-output-hk/fs-sim/haskell.yml?label=Build&style=for-the-badge)](https://github.com/input-output-hk/fs-sim/actions/workflows/haskell.yml)
[![handbook](https://img.shields.io/badge/policy-Cardano%20Engineering%20Handbook-informational?style=for-the-badge)](https://input-output-hk.github.io/cardano-engineering-handbook)

# fs-sim
# fs-sim

`fs-sim` and `fs-api` are unlikely to work with GHC versions before `ghc-8.10.7`. See the `tested-with` fields in [`fs-api.cabal`](./fs-api/fs-api.cabal) and [`fs-sim.cabal`](./fs-sim/fs-sim.cabal) for the GHC versions that we test with.
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 f6a4598

Please sign in to comment.