@@ -154,10 +154,14 @@ import Data.Align
154154
155155-- | A 'Map' with monoidal accumulation
156156newtype MonoidalMap k a = MonoidalMap { getMonoidalMap :: M.Map k a }
157− deriving (Show, Read, Functor, Eq, Ord, NFData,
158− Foldable, Traversable,
159− FromJSON, ToJSON, FromJSON1, ToJSON1,
160− Data, Typeable, Align)
157+ deriving ( Show, Read, Functor, Eq, Ord, NFData
158+ , Foldable, Traversable
159+ , FromJSON, ToJSON, FromJSON1, ToJSON1
160+ , Data, Typeable, Align
161+#if MIN_VERSION_these(0,8,0)
162+ , Semialign
163+#endif
164+ )
161165
162166#if MIN_VERSION_containers(0,5,9)
163167deriving instance (Ord k) => Eq1 (MonoidalMap k)