Skip to content

Commit

Permalink
Add specialized implementation of semigroup methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
kindaro committed Apr 12, 2024
1 parent 180645e commit bf0c343
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Data/Text.hs
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ instance Read Text where
-- | @since 1.2.2.0
instance Semigroup Text where
(<>) = append
stimes = replicate . P.fromIntegral
sconcat = concat . NonEmptyList.toList

instance Monoid Text where
mempty = empty
Expand Down

0 comments on commit bf0c343

Please sign in to comment.