packages feed

reflex-dom-retractable 0.1.0.0 → 0.1.3.0

raw patch · 8 files changed

+35/−13 lines, 8 filesdep +ref-tfdep ~basedep ~reflex-domsetup-changed

Dependencies added: ref-tf

Dependency ranges changed: base, reflex-dom

Files

CHANGELOG.md view
@@ -1,3 +1,18 @@+0.1.3.0+=======++* Bump version for `reflex-dom`.++0.1.2.0+=======++* Add instance for `MonadReflexCreateTrigger`.++0.1.1.0+=======++* Add instances for `MonadRef`, `HasJSContext`, `HasDocument`.+ 0.1.0.0 ======= 
LICENSE view
@@ -1,4 +1,4 @@-Copyright 2019 Investment Solutions AG+Copyright 2019 ATUM SOLUTIONS AG  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
reflex-dom-retractable.cabal view
@@ -1,5 +1,5 @@ name:                reflex-dom-retractable-version:             0.1.0.0+version:             0.1.3.0 synopsis:            Routing and retractable back button for reflex-dom description:         Library that automates widget switches and back button retract stack. See README.md Stability:           Experimental@@ -8,7 +8,7 @@ cabal-version:       >=1.10 license:             MIT license-file:        LICENSE-copyright:           2019 Investment Solutions AG+copyright:           2019 ATUM SOLUTIONS AG author:              Anton Gushcha, Aminion, Vladimir Krutkin, Levon Oganyan maintainer:          Anton Gushcha <ncrashed@protonmail.com>, Vladimir Krutkin <krutkinvs@gmail.com> extra-source-files:@@ -23,12 +23,13 @@     Reflex.Dom.Retractable.Trans     Reflex.Dom.Retractable.Trans.Internal   build-depends:-      base                 >= 4.7      && < 4.12+      base                 >= 4.7      && < 4.13     , containers           >= 0.5      && < 0.7     , jsaddle              >= 0.9      && < 0.10     , mtl                  >= 2.1      && < 2.3-    , reflex               >= 0.4      && < 0.7-    , reflex-dom           >= 0.4      && < 0.7+    , ref-tf               >= 0.4      && < 0.5+    , reflex               >= 0.6      && < 0.7+    , reflex-dom           >= 0.5      && < 0.7   default-language:    Haskell2010   default-extensions:     DataKinds@@ -42,3 +43,8 @@     StandaloneDeriving     TypeFamilies     UndecidableInstances++source-repository head+  type: git+  location: https://github.com/hexresearch/ergvein+  subdir: retractable
src/Reflex/Dom/Retractable.hs view
@@ -1,6 +1,6 @@ -- | -- Module      : Reflex.Dom.Retractable--- Copyright   : (c) 2019 Investment Solutions AG+-- Copyright   : (c) 2019 ATUM SOLUTIONS AG -- License     : MIT -- Maintainer  : ncrashed@protonmail.com -- Stability   : unstable
src/Reflex/Dom/Retractable/Class.hs view
@@ -1,6 +1,6 @@ -- | -- Module      : Reflex.Dom.Retractable.Class--- Copyright   : (c) 2019 Investment Solutions AG+-- Copyright   : (c) 2019 ATUM SOLUTIONS AG -- License     : MIT -- Maintainer  : ncrashed@protonmail.com -- Stability   : unstable
src/Reflex/Dom/Retractable/Trans.hs view
@@ -1,6 +1,6 @@ -- | -- Module      : Reflex.Dom.Retractable.Trans--- Copyright   : (c) 2019 Investment Solutions AG+-- Copyright   : (c) 2019 ATUM SOLUTIONS AG -- License     : MIT -- Maintainer  : ncrashed@protonmail.com -- Stability   : unstable
src/Reflex/Dom/Retractable/Trans/Internal.hs view
@@ -1,6 +1,6 @@ -- | -- Module      : Reflex.Dom.Retractable.Trans.Internal--- Copyright   : (c) 2019 Investment Solutions AG+-- Copyright   : (c) 2019 ATUM SOLUTIONS AG -- License     : MIT -- Maintainer  : ncrashed@protonmail.com -- Stability   : unstable@@ -11,12 +11,14 @@ module Reflex.Dom.Retractable.Trans.Internal where  import Control.Monad.Reader+import Control.Monad.Ref import Control.Monad.State.Strict import GHC.Generics import Language.Javascript.JSaddle.Types import Reflex import Reflex.Dom import Reflex.Dom.Retractable.Class+import Reflex.Host.Class  -- | Helper to simplify types in `RetractEnv` type RetractableT t m = Retractable t (RetractT t m)@@ -50,7 +52,7 @@  -- | Plug-in implementation of `MonadRetract`. newtype RetractT t m a = RetractT { unRetractT :: ReaderT (RetractEnv t m) m a }-  deriving (Functor, Applicative, Monad, Generic, MonadFix)+  deriving (Functor, Applicative, Monad, Generic, MonadFix, MonadRef, HasJSContext, HasDocument)  deriving instance PostBuild t m => PostBuild t (RetractT t m) deriving instance NotReady t m => NotReady t (RetractT t m)@@ -66,6 +68,7 @@ deriving instance (Monoid w, MonadBehaviorWriter t w m) => MonadBehaviorWriter t w (RetractT t m) deriving instance (Semigroup w, EventWriter t w m) => EventWriter t w (RetractT t m) deriving instance (Requester t m) => Requester t (RetractT t m)+deriving instance MonadReflexCreateTrigger t m => MonadReflexCreateTrigger t (RetractT t m)  instance MonadTrans (RetractT t) where   lift = RetractT . lift