reform 0.2.7.5 → 0.2.7.6
raw patch · 3 files changed
+8/−5 lines, 3 filesdep ~containersdep ~mtldep ~text
Dependency ranges changed: containers, mtl, text
Files
- Text/Reform/Core.hs +1/−0
- Text/Reform/Generalized.hs +2/−0
- reform.cabal +5/−5
Text/Reform/Core.hs view
@@ -98,6 +98,7 @@ (Found x, Found y) -> return $ Found (x SG.<> y) (Found x, _ ) -> return $ Found x (_ , Found y) -> return $ Found y+ (Default, Default) -> return Default -- | Not quite sure when this is useful and so hard to say if the rules for combining things with Missing/Default are correct instance (SG.Semigroup input, Monad m) => Monoid (Environment m input) where
Text/Reform/Generalized.hs view
@@ -41,6 +41,7 @@ return ( View $ const $ toView i initialValue , return $ Error [(unitRange i, error)] )+ (Found fromInput) -> error "input: How could this even happen?" Missing -> return ( View $ const $ toView i initialValue , return $ Error [(unitRange i, commonFormError (InputMissing i))]@@ -306,6 +307,7 @@ selectFirst :: [(Form m input error view proof a, lbl)] -> [(Form m input error view proof a, lbl, Bool)] selectFirst ((frm, lbl):fs) = (frm,lbl,True) : map (\(frm',lbl') -> (frm', lbl', False)) fs+ selectFirst [] = [] markSelected :: Int -> [(Int, (Form m input error view proof a, lbl))] -> [(Form m input error view proof a, lbl, Bool)] markSelected n choices =
reform.cabal view
@@ -1,5 +1,5 @@ Name: reform-Version: 0.2.7.5+Version: 0.2.7.6 Synopsis: reform is a type-safe HTML form generation and validation library Description: reform follows in the footsteps of formlets and digestive-functors <= 0.2. It provides a@@ -14,7 +14,7 @@ Build-type: Simple Homepage: http://www.happstack.com/ Cabal-version: >=1.10-tested-with: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.2+tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.8, GHC == 9.4.8, GHC == 9.6.7, GHC == 9.8.4, GHC == 9.10.2, GHC == 9.12.2, GHC == 9.14.1 source-repository head type: git@@ -30,8 +30,8 @@ Text.Reform.Proof Text.Reform.Result Build-depends: base >= 4 && < 5,- containers >= 0.4 && < 0.7,- mtl >= 2.0 && < 2.3,+ containers >= 0.4 && < 0.9,+ mtl >= 2.0 && < 2.4, semigroups >= 0.16 && < 0.21,- text >= 0.11 && < 2.1+ text >= 0.11 && < 2.2