packages feed

ghcjs-base-stub 0.1.0.4 → 0.2.0.0

raw patch · 3 files changed

+31/−22 lines, 3 filesdep ~aesondep ~attoparsecdep ~deepseqPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, attoparsec, deepseq, primitive, scientific, text, transformers, unordered-containers, vector

API changes (from Hackage documentation)

- Data.JSString.Internal.Fusion: Skip :: ~s -> Step s a
+ Data.JSString.Internal.Fusion: Skip :: !s -> Step s a
- Data.JSString.Internal.Fusion: Yield :: ~a -> ~s -> Step s a
+ Data.JSString.Internal.Fusion: Yield :: !a -> !s -> Step s a
- GHCJS.Marshal: class FromJSVal a where fromJSValUnchecked = fmap fromJust . fromJSVal fromJSValListOf = fmap sequence . (mapM fromJSVal <=< fromJSArray) fromJSValUncheckedListOf = mapM fromJSValUnchecked <=< fromJSArray fromJSVal = fromJSVal_generic id
+ GHCJS.Marshal: class FromJSVal a
- GHCJS.Marshal: class ToJSVal a where toJSValListOf = toJSArray <=< mapM toJSVal toJSVal = toJSVal_generic id
+ GHCJS.Marshal: class ToJSVal a
- GHCJS.Marshal.Internal: class FromJSVal a where fromJSValUnchecked = fmap fromJust . fromJSVal fromJSValListOf = fmap sequence . (mapM fromJSVal <=< fromJSArray) fromJSValUncheckedListOf = mapM fromJSValUnchecked <=< fromJSArray fromJSVal = fromJSVal_generic id
+ GHCJS.Marshal.Internal: class FromJSVal a
- GHCJS.Marshal.Internal: class ToJSVal a where toJSValListOf = toJSArray <=< mapM toJSVal toJSVal = toJSVal_generic id
+ GHCJS.Marshal.Internal: class ToJSVal a
- GHCJS.Types: class IsJSVal a where jsval_ _ = JSVal ()
+ GHCJS.Types: class IsJSVal a
- JavaScript.Array.Internal: type STJSArray s = SomeJSArray (STMutable s)
+ JavaScript.Array.Internal: type STJSArray s = SomeJSArray ( 'STMutable s)

Files

README.md view
@@ -16,15 +16,18 @@  # Changelog -* 0.1.0.0-  - Initial version with a subset of ghcjs base+* 0.2.0.0+  - Added Semigroup instance to JSString for ghc 8.4.1 and base 4.11.0 -* 0.1.0.2-  - Added JavaScript.Cast-  - Added Marshall and Callbacks+* 0.1.0.4+  - Added Javascript.Web.Location  * 0.1.0.3   - Added Javascript.Web.Storage -* 0.1.0.4-  - Added Javascript.Web.Location+* 0.1.0.2+  - Added JavaScript.Cast+  - Added Marshall and Callbacks++* 0.1.0.0+  - Initial version with a subset of ghcjs base
ghcjs-base-stub.cabal view
@@ -1,5 +1,5 @@ name:                ghcjs-base-stub-version:             0.1.0.4+version:             0.2.0.0 synopsis:            Allow GHCJS projects to compile under GHC and develop using intero. description:         Allow GHCJS projects to compile under GHC and develop using intero. homepage:            https://github.com/louispan/javascript-stub#readme@@ -46,17 +46,17 @@                        JavaScript.Object.Internal                        JavaScript.Web.Location                        JavaScript.Web.Storage-      build-depends:   aeson >= 0.11 && < 2-                     , attoparsec >= 0.13 && < 1+      build-depends:   aeson >= 0.11+                     , attoparsec >= 0.13                      , containers ==0.5.*-                     , deepseq >= 1.4 && < 2+                     , deepseq >= 1.4                      , ghc-prim-                     , primitive >= 0.6 && < 1-                     , scientific >= 0.3.4 && < 1-                     , text >= 1.2 && < 2-                     , transformers >= 0.5 && < 0.6-                     , unordered-containers >= 0.2.7 && < 1-                     , vector >= 0.11 && < 1+                     , primitive >= 0.6+                     , scientific >= 0.3.4+                     , text >= 1.2+                     , transformers >= 0.5+                     , unordered-containers >= 0.2.7+                     , vector >= 0.11   default-language:    Haskell2010   ghc-options:         -Wall 
src/Data/JSString/Internal/Type.hs view
@@ -1,18 +1,24 @@ {-# LANGUAGE BangPatterns #-}+{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-}  module Data.JSString.Internal.Type where -import           Control.DeepSeq                      (NFData(..))-import           Data.Data+import Control.DeepSeq (NFData(..))+import Data.Data import qualified Data.Text as T-import           GHC.Exts as Exts-import           GHCJS.Internal.Types-import           GHCJS.Prim+import GHC.Exts as Exts+import GHCJS.Internal.Types+import GHCJS.Prim +#if MIN_VERSION_base(4,11,0) newtype JSString = JSString T.Text+    deriving (Exts.IsString, Monoid, Semigroup, Eq, Ord, Data, Show, Read)+#else+newtype JSString = JSString T.Text     deriving (Exts.IsString, Monoid, Eq, Ord, Data, Show, Read)+#endif  instance IsJSVal JSString where     jsval_ _ = JSVal ()