@@ -88,8 +88,6 @@ data NameMatcher = NameMatcher
8888 -- ^ Field for 'Show' instance and bulding usefull errors
8989 }
9090
91−makeLenses ''NameMatcher
92−
9391-- | Instance use 'matchCILocalName' as most general and liberal
9492-- matching strategy (while XML is often malformed).
9593--
@@ -121,6 +119,8 @@ matchCILocalName tname = NameMatcher
121119 , _nmShow = tname
122120 }
123121
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, Monoid)
137+ } deriving (Eq, Ord, Show, Semigroup, 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, Monoid, Generic)
187+ } deriving (Show, Semigroup, Monoid, Generic)
188188
189189makePrisms ''ParserErrors
190190