Clarify IsString instance for Widget only works with Strings.
This commit is contained in:
parent
66ed314866
commit
a5a627db58
@ -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:
|
||||
--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user