Skip to content

Commit

Permalink
Remove text module name in error for doctest (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrom911 authored Oct 4, 2023
1 parent 71e2f53 commit 4a9727b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Relude/String/Conversion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ class ConvertUtf8 a b where
#if MIN_VERSION_text(2,0,2)
>>> decodeUtf8Strict @Text @ByteString "\208\208\176\209\130\208\176\208\186"
Left Cannot decode byte '\xd0': Data.Text.Encoding: Invalid UTF-8 stream
Left Cannot decode byte '\xd0': ...: Invalid UTF-8 stream
#elif MIN_VERSION_text(2,0,0)
>>> decodeUtf8Strict @Text @ByteString "\208\208\176\209\130\208\176\208\186"
Left Cannot decode byte '\xd0': Data.Text.Internal.Encoding: Invalid UTF-8 stream
Left Cannot decode byte '\xd0': ...: Invalid UTF-8 stream
#else
>>> decodeUtf8Strict @Text @ByteString "\208\208\176\209\130\208\176\208\186"
Left Cannot decode byte '\xd0': Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream
Left Cannot decode byte '\xd0': ...: Invalid UTF-8 stream
#endif
-}
decodeUtf8Strict :: b -> Either T.UnicodeException a
Expand Down

0 comments on commit 4a9727b

Please sign in to comment.