stack-2.11.1: src/Stack/Types/IsMutable.hs
{-# LANGUAGE NoImplicitPrelude #-}
module Stack.Types.IsMutable
( IsMutable (..)
) where
import Stack.Prelude
data IsMutable
= Mutable
| Immutable
deriving (Eq, Show)
instance Semigroup IsMutable where
Mutable <> _ = Mutable
_ <> Mutable = Mutable
Immutable <> Immutable = Immutable
instance Monoid IsMutable where
mempty = Immutable
mappend = (<>)