diff options
Diffstat (limited to 'src/Propellor/Property/Debootstrap.hs')
| -rw-r--r-- | src/Propellor/Property/Debootstrap.hs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Propellor/Property/Debootstrap.hs b/src/Propellor/Property/Debootstrap.hs index 7c8e9618..c6e5c373 100644 --- a/src/Propellor/Property/Debootstrap.hs +++ b/src/Propellor/Property/Debootstrap.hs @@ -19,12 +19,13 @@ import Utility.FileMode import Data.List import Data.Char +import qualified Data.Semigroup as Sem import System.Posix.Directory import System.Posix.Files type Url = String --- | A monoid for debootstrap configuration. +-- | A data type for debootstrap configuration. -- mempty is a default debootstrapped system. data DebootstrapConfig = DefaultConfig @@ -35,9 +36,12 @@ data DebootstrapConfig | DebootstrapConfig :+ DebootstrapConfig deriving (Show) +instance Sem.Semigroup DebootstrapConfig where + (<>) = (:+) + instance Monoid DebootstrapConfig where mempty = DefaultConfig - mappend = (:+) + mappend = (<>) toParams :: DebootstrapConfig -> [CommandParam] toParams DefaultConfig = [] |
