Skip to content

Commit

Permalink
added setup section doctests with GHC 8.10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlix committed Dec 3, 2023
1 parent 117b079 commit 750c709
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Network/HTTP/Types/URI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ import Data.Text.Encoding (decodeUtf8With, encodeUtf8)
import Data.Text.Encoding.Error (lenientDecode)
import Data.Word (Word8)

-- This section is needed to run doctests for GHC 8.10.7
#if !MIN_VERSION_bytestring(0,11,1)
-- $setup
-- >>> :{
-- instance Show B.Builder where
-- show = show . toLazyByteString
-- :}
#endif

-- | An item from the query string, split up into two parts.
--
-- The second part should be 'Nothing' if there was no key-value
Expand Down

0 comments on commit 750c709

Please sign in to comment.