File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ ### next [ ????.??.??]
2+ * Make the test suite pass with ` base-4.21.* ` (GHC 9.12).
3+
14## 3.11 [ 2024.10.23]
25* Support building with GHC 9.12.
36* Add a ` TextShow ` instance for ` IoManagerFlag ` in ` TextShow.GHC.RTS.Flags `
Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ module TextShow.Control.Exception () where
2222
2323import Control.Exception.Base
2424
25- import Data.Text.Lazy.Builder (fromString , singleton )
25+ import Data.Text.Lazy.Builder (fromString )
26+ #if !MIN_VERSION_base(4,21,0)
27+ import Data.Text.Lazy.Builder (singleton )
28+ #endif
2629
2730import Prelude ()
2831import Prelude.Compat
@@ -166,9 +169,13 @@ instance TextShow RecUpdError where
166169
167170-- | /Since: 2/
168171instance TextShow ErrorCall where
172+ #if MIN_VERSION_base(4,21,0)
173+ showb (ErrorCall err) = fromString err
174+ #else
169175 showb (ErrorCallWithLocation err " " ) = fromString err
170176 showb (ErrorCallWithLocation err loc) =
171177 fromString err <> singleton ' \n ' <> fromString loc
178+ #endif
172179
173180-- | /Since: 2/
174181$ (deriveTextShow ''MaskingState)
You can’t perform that action at this time.
0 commit comments