@@ -88,6 +88,8 @@ data NameMatcher = NameMatcher
8888 -- ^ Field for 'Show' instance and bulding usefull errors
8989 }
9090
91+makeLenses ''NameMatcher
92+
9193-- | Instance use 'matchCILocalName' as most general and liberal
9294-- matching strategy (while XML is often malformed).
9395--
@@ -119,8 +121,6 @@ matchCILocalName tname = NameMatcher
119121 , _nmShow = tname
120122 }
121123
122−makeLenses ''NameMatcher
123−
124124-- | Makes matcher which match name by 'Eq' with given
125125--
126126-- @since 2.0.0
@@ -134,7 +134,7 @@ matchName n = NameMatcher
134134-- element of the document. Errors are much more usefull with path.
135135newtype DomPath = DomPath
136136 { unDomPath :: [Text]
137− } deriving (Eq, Ord, Show, Semigroup, Monoid)
137+ } deriving (Eq, Ord, Show, Monoid)
138138
139139-- | DOM parser error description.
140140data ParserError
@@ -184,7 +184,7 @@ instance Exception ParserError
184184
185185newtype ParserErrors = ParserErrors
186186 { unParserErrors :: [ParserError]
187− } deriving (Show, Semigroup, Monoid, Generic)
187+ } deriving (Show, Monoid, Generic)
188188
189189makePrisms ''ParserErrors
190190