stack-3.7.1: src/Stack/Types/IsMutable.hs
{-# LANGUAGE NoImplicitPrelude #-}
{-|
Module : Stack.Types.IsMutable
License : BSD-3-Clause
-}
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 = (<>)