summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Ccache.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Ccache.hs')
-rw-r--r--src/Propellor/Property/Ccache.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Propellor/Property/Ccache.hs b/src/Propellor/Property/Ccache.hs
index a2bef117..ebc21b88 100644
--- a/src/Propellor/Property/Ccache.hs
+++ b/src/Propellor/Property/Ccache.hs
@@ -14,6 +14,7 @@ import qualified Propellor.Property.Apt as Apt
import Utility.FileMode
import Utility.DataUnits
import System.Posix.Files
+import qualified Data.Semigroup as Sem
-- | Limits on the size of a ccache
data Limit
@@ -25,9 +26,12 @@ data Limit
| NoLimit
| Limit :+ Limit
+instance Sem.Semigroup Limit where
+ (<>) = (:+)
+
instance Monoid Limit where
mempty = NoLimit
- mappend = (:+)
+ mappend = (<>)
-- | A string that will be parsed to get a data size.
--