packages feed

yesod-pnotify 0.1.0.0 → 0.2.0.0

raw patch · 2 files changed

+9/−7 lines, 2 filesdep +shakespeare-jsdep ~yesod-form

Dependencies added: shakespeare-js

Dependency ranges changed: yesod-form

Files

Yesod/Goodies/PNotify.hs view
@@ -19,6 +19,7 @@ import qualified Data.Text.Lazy as TL import Control.Monad.Trans.Maybe import Data.Char (toLower)+import Text.Julius (RawJS(..))  data PNotify = PNotify                 { sty :: NotifyStyling@@ -71,6 +72,6 @@       addScriptEither $ urlPnotifyJs y       addStylesheetEither $ urlPnotifyCss y       addStylesheetEither $ urlPnotifyIconsCss y-      let toJs p = [julius|{styling:'#{map toLower $ show $ sty p}',title:'#{ttl p}',text:'#{msg p}',type:'#{map toLower $ show $ typ p}'},|]+      let toJs p = [julius|{styling:'#{rawJS $ map toLower $ show $ sty p}',title:'#{rawJS $ ttl p}',text:'#{rawJS $ msg p}',type:'#{rawJS $ map toLower $ show $ typ p}'},|]           ws = foldr ((<>).toJs) mempty ps       toWidget [julius|$(document).ready(function(e){var ws=[^{ws}];for(var i in ws){$.pnotify(ws[i]);}});|]
yesod-pnotify.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                yesod-pnotify-version:             0.1.0.0+version:             0.2.0.0 synopsis:            Yet another getMessage/setMessage using pnotify jquery plugins description:         Yet another getMessage/setMessage using pnotify jquery plugins homepage:            https://github.com/cutsea110/yesod-pnotify@@ -18,8 +18,9 @@ library   exposed-modules:     Yesod.Goodies.PNotify   -- other-modules:       -  build-depends:         base ==4.5.*-                       , yesod ==1.1.*-                       , yesod-form ==1.1.*-                       , text ==0.11.*-                       , transformers ==0.3.*+  build-depends:         base >= 4.5 && < 4.6+                       , yesod >= 1.1 && < 1.2+                       , yesod-form >= 1.2 && < 1.3+                       , text >= 0.11 && < 0.12+                       , transformers >= 0.3 && < 0.4+                       , shakespeare-js >= 1.1 && < 1.2