|author||Joey Hess||2018-04-30 09:03:46 -0400|
|committer||Joey Hess||2018-04-30 09:03:46 -0400|
fix broken SemigroupMonoid transition <<loop>>
Turns out that with ghc 8.2.2, the instructions given on the page don't work. And the cppless variant that I had compiles, but into effectively mappend = mappend so it loops. The only way I can see to make it work without cpp is to use mappend = (Sem.<>) which is ugly and a land mine waiting to explode if someone changes it to a nicer mappend = (<>) with a newer version of ghc which will compile it and work ok, while breaking it with 8.2.2. Sigh. I posted to haskell-cafe about this.
Diffstat (limited to 'src/Propellor/Property/Ccache.hs')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Ccache.hs b/src/Propellor/Property/Ccache.hs
index ebc21b88..ea729b7c 100644
@@ -31,7 +31,7 @@ instance Sem.Semigroup Limit where
instance Monoid Limit where
mempty = NoLimit
- mappend = (<>)
+ mappend = (Sem.<>)
-- | A string that will be parsed to get a data size.