packages feed

reflex-localize 1.0.2.0 → 1.1.0.0

raw patch · 5 files changed

+26/−10 lines, 5 filesdep ~reflexPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: reflex

API changes (from Hackage documentation)

- Reflex.Localize.Trans: instance (GHC.Base.Monoid w, Reflex.BehaviorWriter.Class.MonadBehaviorWriter t w m) => Reflex.BehaviorWriter.Class.MonadBehaviorWriter t w (Reflex.Localize.Trans.LocalizeT t m)
+ Reflex.Localize.Class: instance Reflex.Localize.Class.LocalizedPrint ()

Files

CHANGELOG.md view
@@ -1,10 +1,22 @@+# 1.1.0.0++* Added instance for `LocalizedPrint ()`++# 1.0.4.0++* Remove warnings++# 1.0.3.0++* Allow `reflex-0.8`+ # 1.0.2.0  * Add CPP to language extensions  # 1.0.1.0 -* Add ifdef for GHCJS compilation	+* Add ifdef for GHCJS compilation  # 1.0.0.0 
reflex-localize.cabal view
@@ -1,5 +1,5 @@ name:                reflex-localize-version:             1.0.2.0+version:             1.1.0.0 synopsis:            Localization library for reflex description:         Library provides helpers for dynamic strings that depends on current selected language.   See also `reflex-localize-dom` for examples and DOM related helpers.@@ -18,7 +18,7 @@ maintainer:          - Anton Gushcha <ncrashed@gmail.com>                      - Aminion <>                      - Vladimir Krutkin <krutkinvs@gmail.com>-                     - Levon Oganyan+                     - Levon Oganyan <lemarwin42@protonmail.com> bug-reports:         https://github.com/hexresearch/ergvein/issues homepage:            https://github.com/hexresearch/ergvein extra-source-files:@@ -37,7 +37,7 @@       base                      >= 4.5      && < 4.15     , jsaddle     , mtl-    , reflex                    >= 0.4      && < 0.8+    , reflex                    >= 0.4      && < 0.9     , reflex-external-ref     , text   default-language:    Haskell2010@@ -51,6 +51,7 @@     GeneralizedNewtypeDeriving     LambdaCase     MultiParamTypeClasses+    OverloadedStrings     RankNTypes     ScopedTypeVariables     StandaloneDeriving
src/Reflex/Localize/Class.hs view
@@ -6,10 +6,8 @@ ) where  import Data.Data-import Data.Monoid import Data.Text (Text) import GHC.Generics-import qualified Data.Text as T import Reflex import Reflex.Localize.Language import Reflex.Localize.Monad@@ -53,6 +51,12 @@   localizedShow l = either (localizedShow l) (localizedShow l)   {-# INLINE localizedShow #-}   localized = either localized localized+  {-# INLINE localized #-}++instance LocalizedPrint () where+  localizedShow _ _ = "()"+  {-# INLINE localizedShow #-}+  localized _ = pure (pure "()")   {-# INLINE localized #-}  -- | Default implementation
src/Reflex/Localize/Language.hs view
@@ -13,8 +13,5 @@     Language   ) where -import GHC.Generics (Generic)-import Prelude (Eq, Ord, Show, Read)- -- | Possible languages enumeration that is defined in your application data family Language
src/Reflex/Localize/Trans.hs view
@@ -43,7 +43,9 @@ #endif deriving instance (Group q, Additive q, Query q, Eq q, MonadQuery t q m, Monad m) => MonadQuery t q (LocalizeT t m) deriving instance (Monoid w, DynamicWriter t w m) => DynamicWriter t w (LocalizeT t m)-deriving instance (Monoid w, MonadBehaviorWriter t w m) => MonadBehaviorWriter t w (LocalizeT t m)+#if !MIN_VERSION_reflex(0,7,0)+deriving instance (Monoid w, MonadBehaviorWriter t w m) => MonadBehaviorWriter t w (RetractT t m)+#endif deriving instance (Semigroup w, EventWriter t w m) => EventWriter t w (LocalizeT t m) deriving instance (Requester t m) => Requester t (LocalizeT t m)