packages feed

threepenny-editors 0.2.0.5 → 0.2.0.6

raw patch · 4 files changed

+10/−7 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Graphics.UI.Threepenny.Editors: Compose :: f (g a) -> Compose k k1
- Graphics.UI.Threepenny.Editors: [getCompose] :: Compose k k1 -> f (g a)
- Graphics.UI.Threepenny.Editors: newtype Compose k k1 (f :: k1 -> *) (g :: k -> k1) (a :: k) :: forall k k1. (k1 -> *) -> (k -> k1) -> k -> *
- Graphics.UI.Threepenny.Editors.Profunctor: Compose :: f (g a) -> Compose k k1
- Graphics.UI.Threepenny.Editors.Profunctor: [getCompose] :: Compose k k1 -> f (g a)
- Graphics.UI.Threepenny.Editors.Profunctor: newtype Compose k k1 (f :: k1 -> *) (g :: k -> k1) (a :: k) :: forall k k1. (k1 -> *) -> (k -> k1) -> k -> *
+ Graphics.UI.Threepenny.Editors: editorIdentity :: EditorFactory a a -> EditorFactory (Identity a) (Identity a)
+ Graphics.UI.Threepenny.Editors.Profunctor: editorIdentity :: EditorFactory a a -> EditorFactory (Identity a) (Identity a)

Files

CHANGELOG.md view
@@ -1,4 +1,6 @@-# 0.2.1.0 (2017-05-14)+# 0.2.0.6 (2017-05-15)+    * Fix the `Editable` instance for `Identity` and remove reexports.+# 0.2.0.5 (2017-05-14)  	* Add `editorGeneric` and `editorGenericSimple` for types with generics-sop instances. 	The latter is only for record and newtypes, whereas the former supports also
src/Graphics/UI/Threepenny/Editors.hs view
@@ -13,6 +13,7 @@   , field     -- ** Editor constructors   , editorUnit+  , editorIdentity   , editorReadShow   , editorEnumBounded   , editorSum@@ -20,8 +21,6 @@     -- ** Generic editors   , editorGeneric   , editorGenericSimple-  -- * Reexports-  , Compose(..)   )where  import Graphics.UI.Threepenny.Editors.Profunctor
src/Graphics/UI/Threepenny/Editors/Profunctor.hs view
@@ -28,6 +28,7 @@   , field     -- ** Editor constructors   , editorUnit+  , editorIdentity   , editorReadShow   , editorEnumBounded   , editorSum@@ -35,8 +36,6 @@     -- ** Generic editors   , editorGeneric   , editorGenericSimple-  -- * Reexports-  , Compose(..)   )where  import           Data.Bifunctor@@ -129,7 +128,10 @@   editor = (,) <$> lmap fst editor |*| lmap snd editor  instance Editable a => Editable (Identity a) where-  editor = dimap Identity runIdentity editor+  editor = editorIdentity editor++editorIdentity :: EditorFactory a a -> EditorFactory (Identity a) (Identity a)+editorIdentity = dimap runIdentity Identity  {--------------------------------------------   Generic derivations
threepenny-editors.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack  name:           threepenny-editors-version:        0.2.0.5+version:        0.2.0.6 synopsis:       Composable algebraic editors description:    This package provides a type class 'Editable' and combinators to                 easily put together form-like editors for algebraic datatypes.