From a5a627db58ac41e37067f047889ca3b803285f7c Mon Sep 17 00:00:00 2001 From: Christopher Reichert Date: Tue, 21 Jul 2015 13:19:00 -0500 Subject: [PATCH] Clarify IsString instance for Widget only works with Strings. --- yesod-core/Yesod/Core/Types.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yesod-core/Yesod/Core/Types.hs b/yesod-core/Yesod/Core/Types.hs index 331238c0..2c39f90d 100644 --- a/yesod-core/Yesod/Core/Types.hs +++ b/yesod-core/Yesod/Core/Types.hs @@ -251,8 +251,7 @@ instance (a ~ (), Monad m) => Monoid (WidgetT site m a) where mappend x y = x >> y instance (a ~ (), Monad m) => Semigroup (WidgetT site m a) --- | Any type with an 'IsString' instance can be trivially --- promoted to a widget. +-- | A 'String' can be trivially promoted to a widget. -- -- For example, in a yesod-scaffold site you could use: --