packages feed

yesod-form-richtext 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+11/−9 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Yesod.Form.Summernote: class Yesod a => YesodSummernote a
+ Yesod.Form.Summernote: class Yesod a => YesodSummernote a where urlBootstrapCss _ = Right "http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css" urlBootstrapScript _ = Right "http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.js" urlJQueryScript _ = Right "http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js" urlSummernoteCss _ = Right "http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.0/summernote.css" urlSummernoteScript _ = Right "http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.0/summernote.js" summernoteLoadLibrariesAndCss _ = False
- Yesod.Form.Summernote: snHtmlField :: YesodSummernote site => Field (HandlerT site IO) Html
+ Yesod.Form.Summernote: snHtmlField :: (YesodSummernote site, MonadHandler m) => Field (HandlerT site m) Html
- Yesod.Form.Summernote: snHtmlFieldCustomized :: YesodSummernote site => String -> Field (HandlerT site IO) Html
+ Yesod.Form.Summernote: snHtmlFieldCustomized :: (YesodSummernote site, MonadHandler m) => String -> Field (HandlerT site m) Html

Files

LICENSE view
@@ -1,4 +1,4 @@-Copyright © 2015-2016 Arthur S. Fayzrakhmanov <https://github.com/geraldus>+Copyright © 2015-2017 Arthur S. Fayzrakhmanov <https://github.com/geraldus>  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in
src/Yesod/Form/Summernote.hs view
@@ -8,8 +8,8 @@ -- @ -- summerForm :: Form HtmlComment -- summerForm = renderBootstrap3 BootstrapBasicForm $ HtmlComment---   \<$\> areq (snHtmlFieldCustomized "{toolbar:false}") "Title" Nothing---   \<*\> areq snHtmlField "Comment" Nothing+--   \<$\> areq (snHtmlFieldCustomized "{toolbar:false}") \"Title\" Nothing+--   \<*\> areq snHtmlField \"Comment\" Nothing -- @  module Yesod.Form.Summernote@@ -67,8 +67,9 @@ -- @ -- snHtmlFieldCustomized "{ height: 150, codemirror: { theme:'monokai' } }" -- @-snHtmlFieldCustomized :: YesodSummernote site-                      => String -> Field (HandlerT site IO) Html+snHtmlFieldCustomized :: (YesodSummernote site, MonadHandler m)+                      => String+                      -> Field (HandlerT site m) Html snHtmlFieldCustomized cfg = Field     { fieldParse =         \e _ -> return $@@ -98,7 +99,8 @@     showVal = either id (pack . renderHtml)  -- | Summernote editor field with default settings.-snHtmlField :: YesodSummernote site => Field (HandlerT site IO) Html+snHtmlField :: (YesodSummernote site, MonadHandler m)+            => Field (HandlerT site m) Html snHtmlField = snHtmlFieldCustomized ""  
yesod-form-richtext.cabal view
@@ -1,5 +1,5 @@ name:                yesod-form-richtext-version:             0.1.0.0+version:             0.1.0.1 synopsis:            Various rich-text WYSIWYG editors for Yesod forms. description:         Please see README.md homepage:            http://github.com/geraldus/yesod-form-richtext#readme@@ -7,8 +7,8 @@ license-file:        LICENSE author:              Arthur S. Fayzrakhmanov maintainer:          heraldhoi@gmail.com-copyright:           2016 Arthur S. Fayzrakhmanov-category:            Web+copyright:           2017 Arthur S. Fayzrakhmanov+category:            Web, Yesod build-type:          Simple cabal-version:       >=1.10