git.iko.soy/monoidal-containers
on master help sign in
Inline things
commit6a42c154c6a3bcf62423546766ecd2c08da69a2f authorBen Gamari <bgamari.foss@gmail.com> dateTue 20 Jan 2015, 11:26 (12 years ago) parentbde5122
1 file changed+3
src/Data/Map/Monoidal.hs+3
src/Data/Map/Monoidal.hs+3
@@ -61,8 +61,11 @@ instance Newtype (MonoidalMap k a) (M.Map k a) where
6161instance Ord k => IsList (MonoidalMap k a) where
6262 type Item (MonoidalMap k a) = (k, a)
6363 fromList = MM . M.fromList
64+ {-# INLINE fromList #-}
6465 toList = M.toList . unpack
66+ {-# INLINE toList #-}
6567#endif
6668
6769singleton :: Ord k => k -> a -> MonoidalMap k a
6870singleton k a = MM $ M.singleton k a
71+{-# INLINE singleton #-}