git.iko.soy/typeable/dom-parser
on master help sign in
adjust to support text>=2.1.2 (Data.Text.show)
commitb8d9af75595072026a1706e94750dba55e65326b authorodr <dima@typeable.io> dateThu 24 Jul 2025, 10:51 (1 year ago) parentaff453f
1 file changed+2−1
src/Text/XML/DOM/Parser/Content.hs+2−1
src/Text/XML/DOM/Parser/Content.hs+2−1
@@ -20,6 +20,7 @@ import Data.List as L
2020import Data.Monoid
2121import Data.Text as T
2222import Data.Typeable
23+import Prelude as P
2324import Text.Read
2425import Text.XML.DOM.Parser.Types
2526import Text.XML.Lens
@@ -93,7 +94,7 @@ maybeReadContent
9394maybeReadContent 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