Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Commit f9df6b2

Browse files
committed
Silence warning about non-canonical mappend
1 parent ff20b96 commit f9df6b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Data/Ini.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ data Ini =
9090
deriving (Show, Eq)
9191

9292
instance Semigroup Ini where
93-
(<>) = mappend
93+
x <> y = Ini {iniGlobals = mempty, iniSections = iniSections x <> iniSections y}
9494

9595
instance Monoid Ini where
9696
mempty = Ini {iniGlobals = mempty, iniSections = mempty}
97-
mappend x y =
98-
Ini {iniGlobals = mempty, iniSections = iniSections x <> iniSections y}
97+
mappend = (<>)
98+
9999

100100
{-# DEPRECATED #-}
101101
unIni :: Ini -> HashMap Text (HashMap Text Text)

0 commit comments

Comments
 (0)