From 21ebb16544af8f2ecbc5ddcfd6b271625e2edbb3 Mon Sep 17 00:00:00 2001 From: Serhii Khoma Date: Tue, 9 Feb 2021 18:24:05 +0200 Subject: [PATCH 1/2] feat: update to v0.14 -> WIP --- bower.json | 1 - src/WebSocket.purs | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bower.json b/bower.json index 36fc058..b3a7281 100644 --- a/bower.json +++ b/bower.json @@ -27,7 +27,6 @@ "purescript-web-events": "^1.0.0", "purescript-effect": "^2.0.0", "purescript-exceptions": "^4.0.0", - "purescript-generics-rep": "^6.0.0", "purescript-var": "v3.0.0" }, "devDependencies": { diff --git a/src/WebSocket.purs b/src/WebSocket.purs index fac33af..4878341 100644 --- a/src/WebSocket.purs +++ b/src/WebSocket.purs @@ -32,9 +32,9 @@ import Foreign (unsafeFromForeign) import Data.Function.Uncurried (runFn2, Fn2) import Data.Functor.Invariant (imap) import Data.Generic.Rep (class Generic) -import Data.Generic.Rep.Show (genericShow) -import Data.Generic.Rep.Eq (genericEq) -import Data.Generic.Rep.Ord (genericCompare) +import Data.Show.Generic (genericShow) +import Data.Eq.Generic (genericEq) +import Data.Ord.Generic (genericCompare) import Data.Maybe (Maybe(..), fromMaybe) import Data.Nullable (toNullable, Nullable) import Prelude (class Ord, compare, class Eq, eq, class Bounded, class Show, Unit, (<$>), (>>>), (>>=), ($)) From f3b33411438237fde1eead2f7bd8d5d843867ae4 Mon Sep 17 00:00:00 2001 From: Serhii Khoma Date: Tue, 9 Feb 2021 18:24:18 +0200 Subject: [PATCH 2/2] fix: warning "An export for BufferedAmount hides data constructors but the type declares an instance of Data.Generic.Rep.Generic. Such instance allows to match and construct values of this type, effectively making the constructors public." --- src/WebSocket.purs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebSocket.purs b/src/WebSocket.purs index 4878341..31c1872 100644 --- a/src/WebSocket.purs +++ b/src/WebSocket.purs @@ -16,7 +16,7 @@ module WebSocket , ReadyState(..) , Protocol(..) , runProtocol - , BufferedAmount() + , BufferedAmount(..) , runBufferedAmount , BinaryType(..) ) where