@@ -88,8 +88,6 @@ data NameMatcher = NameMatcher
88 -- ^ Field for 'Show' instance and bulding usefull errors
88 -- ^ Field for 'Show' instance and bulding usefull errors
91−makeLenses ''NameMatcher
93-- | Instance use 'matchCILocalName' as most general and liberal
91-- | Instance use 'matchCILocalName' as most general and liberal
94-- matching strategy (while XML is often malformed).
92-- matching strategy (while XML is often malformed).
@@ -121,6 +119,8 @@ matchCILocalName tname = NameMatcher
121 , _nmShow = tname
119 , _nmShow = tname
122+makeLenses ''NameMatcher
124-- | Makes matcher which match name by 'Eq' with given
124-- | Makes matcher which match name by 'Eq' with given
126-- @since 2.0.0
126-- @since 2.0.0
@@ -134,7 +134,7 @@ matchName n = NameMatcher
134-- element of the document. Errors are much more usefull with path.
134-- element of the document. Errors are much more usefull with path.
135newtype DomPath = DomPath
135newtype DomPath = DomPath
136 { unDomPath :: [Text]
136 { unDomPath :: [Text]
137− } deriving (Eq, Ord, Show, Monoid)
137+ } deriving (Eq, Ord, Show, Semigroup, Monoid)
139-- | DOM parser error description.
139-- | DOM parser error description.
140data ParserError
140data ParserError
@@ -184,7 +184,7 @@ instance Exception ParserError
185newtype ParserErrors = ParserErrors
185newtype ParserErrors = ParserErrors
186 { unParserErrors :: [ParserError]
186 { unParserErrors :: [ParserError]
187− } deriving (Show, Monoid, Generic)
187+ } deriving (Show, Semigroup, Monoid, Generic)
189makePrisms ''ParserErrors
189makePrisms ''ParserErrors