File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
1
index-state :
2
2
-- Bump this if you need newer packages from Hackage
3
- , hackage.haskell.org 2024-12-09T15:45 :06Z
3
+ , hackage.haskell.org 2024-12-30T06:24 :32Z
4
4
5
5
packages :
6
6
fs-api
Original file line number Diff line number Diff line change 1
1
# Revision history for fs-api
2
2
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
+
3
11
## 0.3.0.1 -- 2024-10-02
4
12
5
13
### Patch
Original file line number Diff line number Diff line change 5
5
{-# LANGUAGE RecordWildCards #-}
6
6
{-# LANGUAGE ScopedTypeVariables #-}
7
7
8
- -- For Show Errno and Condense SeekMode instances
9
- {-# OPTIONS_GHC -Wno-orphans #-}
10
8
module System.FS.API.Types (
11
9
-- * Modes
12
10
AllowExisting (.. )
@@ -452,11 +450,6 @@ ioToFsErrorType ioErr = case Errno <$> GHC.ioe_errno ioErr of
452
450
Condense instances
453
451
-------------------------------------------------------------------------------}
454
452
455
- instance Condense SeekMode where
456
- condense RelativeSeek = " r"
457
- condense AbsoluteSeek = " a"
458
- condense SeekFromEnd = " e"
459
-
460
453
instance Condense AllowExisting where
461
454
condense AllowExisting = " "
462
455
condense MustBeNew = " !"
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import Data.Text (Text, unpack)
23
23
import Data.Void
24
24
import Data.Word
25
25
import Numeric.Natural
26
+ import System.IO (SeekMode (.. ))
26
27
import Text.Printf (printf )
27
28
28
29
{- ------------------------------------------------------------------------------
@@ -111,3 +112,8 @@ instance Condense BS.Strict.ByteString where
111
112
112
113
instance Condense BS.Lazy. ByteString where
113
114
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