-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Yesod support for Text.Markdown.
--   
--   Use Text.Markdown in a typical yesod project. This module contains
--   instances related to persistence, even though it isn't tightly coupled
--   to yesod.
--   
--   This package is different from the yesod-markdown package which uses
--   the pandoc renderer for markdown. The main advantages of having
--   Text.Markdown as underlying renderer is the much smaller dependencies
--   and the permissiver license. See
--   <a>https://github.com/pbrisbin/yesod-markdown</a> and
--   <a>https://github.com/snoyberg/markdown</a>.
--   
--   This package intentionally tries to be like yesod-markdown, so
--   switching between the markdown backends should be easy.
--   
--   If you wonder why the haddocks only show a few exports, it's because
--   it doesn't show exporting of instances which is most of what this
--   package is about.
@package yesod-text-markdown
@version 0.1.10

module Yesod.Text.Markdown

-- | Creates a <tt>&lt;textarea&gt;</tt> tag whose returned value is
--   wrapped in a <a>Markdown</a> newtype; see <a>Markdown</a> for details.
markdownField :: (Monad m, RenderMessage (HandlerSite m) FormMessage) => Field m Markdown
instance Database.Persist.Class.PersistField.PersistField Text.Markdown.Markdown
instance Database.Persist.Sql.Class.PersistFieldSql Text.Markdown.Markdown
instance Data.Aeson.Types.ToJSON.ToJSON Text.Markdown.Markdown
instance Data.Aeson.Types.FromJSON.FromJSON Text.Markdown.Markdown
