lucid 2.5 → 2.6.0
raw patch · 3 files changed
+7/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Lucid.Base: instance (Monoid a, Monad m) => Monoid (HtmlT m a)
+ Lucid.Base: instance (a ~ (), Monad m) => Monoid (HtmlT m a)
Files
- CHANGELOG.md +5/−0
- lucid.cabal +1/−1
- src/Lucid/Base.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+## 2.6++* Restrict monoid instance's a to ~ () (means you can use mempty+ without inference errors)+ ## 2.2 * Export renderToFile from top-level Lucid module.
lucid.cabal view
@@ -1,5 +1,5 @@ name: lucid-version: 2.5+version: 2.6.0 synopsis: Clear to write, read and edit DSL for HTML description: Clear to write, read and edit DSL for HTML. See the 'Lucid' module for description and documentation.
src/Lucid/Base.hs view
@@ -78,7 +78,7 @@ } -- | Monoid is right-associative, a la the 'Builder' in it.-instance (Monoid a,Monad m) => Monoid (HtmlT m a) where+instance (a ~ (),Monad m) => Monoid (HtmlT m a) where mempty = HtmlT (return (\_ _ -> mempty,mempty)) mappend (HtmlT get_f_a) (HtmlT get_g_b) = HtmlT (do ~(f,a) <- get_f_a