Skip to content

Commit b8d9af7

Browse files
committed
adjust to support text>=2.1.2 (Data.Text.show)
1 parent aff453f commit b8d9af7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Text/XML/DOM/Parser/Content.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Data.List as L
2020
import Data.Monoid
2121
import Data.Text as T
2222
import Data.Typeable
23+
import Prelude as P
2324
import Text.Read
2425
import Text.XML.DOM.Parser.Types
2526
import Text.XML.Lens
@@ -93,7 +94,7 @@ maybeReadContent
9394
maybeReadContent f t = maybe (Left msg) Right $ f t
9495
where
9596
msg = "Not readable " <> n <> ": " <> t
96-
n = T.pack $ show $ typeRep (Proxy :: Proxy a)
97+
n = T.pack $ P.show $ typeRep (Proxy :: Proxy a)
9798

9899

99100
-- | Tries to read given text to value using 'Read'. Useful to use

0 commit comments

Comments
 (0)