yesod-form 1.3.16 → 1.4.0
raw patch · 2 files changed
+5/−31 lines, 2 filesdep −hamletdep −shakespeare-cssdep −shakespeare-jsdep ~persistentdep ~shakespearedep ~yesod-core
Dependencies removed: hamlet, shakespeare-css, shakespeare-js
Dependency ranges changed: persistent, shakespeare, yesod-core, yesod-persistent
Files
- Yesod/Form/Fields.hs +0/−23
- yesod-form.cabal +5/−8
Yesod/Form/Fields.hs view
@@ -75,11 +75,7 @@ import qualified Blaze.ByteString.Builder.Html.Utf8 as B import Blaze.ByteString.Builder (writeByteString, toLazyByteString) import Blaze.ByteString.Builder.Internal.Write (fromWriteList)-#if MIN_VERSION_persistent(2, 0, 0) import Database.Persist (PersistEntityBackend)-#else-import Database.Persist (PersistMonadBackend, PersistEntityBackend)-#endif import Text.Blaze.Html.Renderer.String (renderHtml) import qualified Data.ByteString as S@@ -559,21 +555,12 @@ optionsEnum :: (MonadHandler m, Show a, Enum a, Bounded a) => m (OptionList a) optionsEnum = optionsPairs $ map (\x -> (pack $ show x, x)) [minBound..maxBound] -#if MIN_VERSION_persistent(2, 0, 0) optionsPersist :: ( YesodPersist site, PersistEntity a , PersistQuery (PersistEntityBackend a) , PathPiece (Key a) , RenderMessage site msg , YesodPersistBackend site ~ PersistEntityBackend a )-#else-optionsPersist :: ( YesodPersist site, PersistEntity a- , PersistQuery (YesodPersistBackend site (HandlerT site IO))- , PathPiece (Key a)- , PersistEntityBackend a ~ PersistMonadBackend (YesodPersistBackend site (HandlerT site IO))- , RenderMessage site msg- )-#endif => [Filter a] -> [SelectOpt a] -> (a -> msg)@@ -591,7 +578,6 @@ -- the entire @Entity@. -- -- Since 1.3.2-#if MIN_VERSION_persistent(2, 0, 0) optionsPersistKey :: (YesodPersist site , PersistEntity a@@ -600,15 +586,6 @@ , RenderMessage site msg , YesodPersistBackend site ~ PersistEntityBackend a )-#else-optionsPersistKey- :: (YesodPersist site- , PersistEntity a- , PersistQuery (YesodPersistBackend site (HandlerT site IO))- , PathPiece (Key a)- , RenderMessage site msg- , PersistEntityBackend a ~ PersistMonadBackend (YesodDB site))-#endif => [Filter a] -> [SelectOpt a] -> (a -> msg)
yesod-form.cabal view
@@ -1,5 +1,5 @@ name: yesod-form-version: 1.3.16+version: 1.4.0 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -18,14 +18,11 @@ library build-depends: base >= 4 && < 5- , yesod-core >= 1.2 && < 1.3- , yesod-persistent >= 1.2 && < 1.3+ , yesod-core >= 1.4 && < 1.5+ , yesod-persistent >= 1.4 && < 1.5 , time >= 1.1.4- , hamlet >= 1.1.8- , shakespeare- , shakespeare-css >= 1.0- , shakespeare-js >= 1.0.2- , persistent >= 1.2 && < 2.1+ , shakespeare >= 2.0+ , persistent , template-haskell , transformers >= 0.2.2 , data-default