File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 11# Revision history for fs-api
22
3+ ## ?.?.?.? -- ????-??-??
4+
5+ ### Non-breaking
6+
7+ * Make the orphan ` Condense ` instance for ` System.IO.SeekMode ` into a non-orphan
8+ instance. The instance is still exported from the same modules it was exported
9+ from previously, ` System.FS.API.Types ` in particular.
10+
311## 0.3.0.1 -- 2024-10-02
412
513### Patch
Original file line number Diff line number Diff line change 55{-# LANGUAGE RecordWildCards #-}
66{-# LANGUAGE ScopedTypeVariables #-}
77
8- -- For Show Errno and Condense SeekMode instances
9- {-# OPTIONS_GHC -Wno-orphans #-}
108module System.FS.API.Types (
119 -- * Modes
1210 AllowExisting (.. )
@@ -452,11 +450,6 @@ ioToFsErrorType ioErr = case Errno <$> GHC.ioe_errno ioErr of
452450 Condense instances
453451-------------------------------------------------------------------------------}
454452
455- instance Condense SeekMode where
456- condense RelativeSeek = " r"
457- condense AbsoluteSeek = " a"
458- condense SeekFromEnd = " e"
459-
460453instance Condense AllowExisting where
461454 condense AllowExisting = " "
462455 condense MustBeNew = " !"
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import Data.Text (Text, unpack)
2323import Data.Void
2424import Data.Word
2525import Numeric.Natural
26+ import System.IO (SeekMode (.. ))
2627import Text.Printf (printf )
2728
2829{- ------------------------------------------------------------------------------
@@ -111,3 +112,8 @@ instance Condense BS.Strict.ByteString where
111112
112113instance Condense BS.Lazy. ByteString where
113114 condense bs = show bs ++ " <" ++ show (BS.Lazy. length bs) ++ " b>"
115+
116+ instance Condense SeekMode where
117+ condense RelativeSeek = " r"
118+ condense AbsoluteSeek = " a"
119+ condense SeekFromEnd = " e"
You can’t perform that action at this time.
0 commit comments