packages feed

threepenny-editors 0.2.0.1 → 0.2.0.2

raw patch · 3 files changed

+9/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

examples/Person.hs view
@@ -70,7 +70,7 @@ setup w = void $ mdo   _ <- return w # set title "Threepenny editors example"   person1 <- createEditor editor person1B-  person1B <- stepper (Person Basic_ "" "" Nothing False Single) (edited person1)+  person1B <- stepper (Person Basic_ "First" "Last" (Just 18) False Single) (edited person1)    getBody w #+ [grid     [ [return $ editorElement person1]
src/Graphics/UI/Threepenny/Editors/Base.hs view
@@ -172,8 +172,14 @@  instance a ~ Char => Editable [a] where   editor b = Compose $ do+    w <- askWindow     t <- entry b+    liftIOLater $ do+      initialValue <- currentValue b+      _ <- runUI w $ set value initialValue (element t)+      return ()     return $ Editor (userText t) (getElement t)+ instance Editable Bool where   editor b = Compose $ do     t <- sink checked b $ input # set type_ "checkbox"
threepenny-editors.cabal view
@@ -1,9 +1,9 @@--- This file has been generated from package.yaml by hpack version 0.17.0.+-- This file has been generated from package.yaml by hpack version 0.15.0. -- -- see: https://github.com/sol/hpack  name:           threepenny-editors-version:        0.2.0.1+version:        0.2.0.2 synopsis:       Composable algebraic editors description:    This package provides a type class 'Editable' and combinators to                 easily put together form-like editors for algebraic datatypes.