aboutsummaryrefslogtreecommitdiff
path: root/threepenny.patch
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-17 19:21:56 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-07-17 19:21:56 +0200
commit2b9ceaead3f3cd80e973cccecb9a3eebc51154f7 (patch)
treedf2378943480647606b6a06f62c0f4b8b2ab406d /threepenny.patch
parentac4cf4a0a494eafe55364f816569c517684fdf32 (diff)
downloadthermoprint-2b9ceaead3f3cd80e973cccecb9a3eebc51154f7.tar
thermoprint-2b9ceaead3f3cd80e973cccecb9a3eebc51154f7.tar.gz
thermoprint-2b9ceaead3f3cd80e973cccecb9a3eebc51154f7.tar.bz2
thermoprint-2b9ceaead3f3cd80e973cccecb9a3eebc51154f7.tar.xz
thermoprint-2b9ceaead3f3cd80e973cccecb9a3eebc51154f7.zip
Fixes for GHC 8.0.1
Diffstat (limited to 'threepenny.patch')
-rw-r--r--threepenny.patch51
1 files changed, 45 insertions, 6 deletions
diff --git a/threepenny.patch b/threepenny.patch
index 1feb733..5dbb84f 100644
--- a/threepenny.patch
+++ b/threepenny.patch
@@ -1,7 +1,46 @@
1From 480675cba32803ab74ec064e14ed6b2001c8e071 Mon Sep 17 00:00:00 2001 1From 86574dffb26128252159a6f25a3ea29be965047f Mon Sep 17 00:00:00 2001
2From: Heinrich Apfelmus <apfelmus@quantentunnel.de>
3Date: Fri, 27 May 2016 22:47:04 +0200
4Subject: [PATCH 1/3] Fix #138: Update the use of `GHC.mkWeak#` to GHC 8.0.1
5
6---
7 src/Foreign/RemotePtr.hs | 10 +++++++---
8 1 file changed, 7 insertions(+), 3 deletions(-)
9
10diff --git a/src/Foreign/RemotePtr.hs b/src/Foreign/RemotePtr.hs
11index b534b74..fce37bc 100644
12--- a/src/Foreign/RemotePtr.hs
13+++ b/src/Foreign/RemotePtr.hs
14@@ -33,14 +33,18 @@ import qualified GHC.IORef as GHC
15 import qualified GHC.STRef as GHC
16
17 mkWeakIORefValue :: IORef a -> value -> IO () -> IO (Weak value)
18-mkWeakIORefValue r@(GHC.IORef (GHC.STRef r#)) v f = GHC.IO $ \s ->
19- case GHC.mkWeak# r# v f s of (# s1, w #) -> (# s1, GHC.Weak w #)
20-
21 #if CABAL
22 #if MIN_VERSION_base(4,6,0)
23 #else
24 atomicModifyIORef' = atomicModifyIORef
25 #endif
26+#if MIN_VERSION_base(4,9,0)
27+mkWeakIORefValue r@(GHC.IORef (GHC.STRef r#)) v (GHC.IO f) = GHC.IO $ \s ->
28+ case GHC.mkWeak# r# v f s of (# s1, w #) -> (# s1, GHC.Weak w #)
29+#endif
30+#else
31+mkWeakIORefValue r@(GHC.IORef (GHC.STRef r#)) v f = GHC.IO $ \s ->
32+ case GHC.mkWeak# r# v f s of (# s1, w #) -> (# s1, GHC.Weak w #)
33 #endif
34
35 type Map = Map.Map
36--
372.9.0
38
39
40From 0ed2c2ebb64b24fdcded4e273bfda1583763a815 Mon Sep 17 00:00:00 2001
2From: Gregor Kleen <gkleen@yggdrasil.li> 41From: Gregor Kleen <gkleen@yggdrasil.li>
3Date: Tue, 23 Feb 2016 18:14:48 +0000 42Date: Tue, 23 Feb 2016 18:14:48 +0000
4Subject: [PATCH 1/2] Switched to using location.host 43Subject: [PATCH 2/3] Switched to using location.host
5 44
6--- 45---
7 js/comm.js | 2 +- 46 js/comm.js | 2 +-
@@ -21,13 +60,13 @@ index 2d24f08..01763ba 100644
21 60
22 // Close WebSocket when the browser window is closed. 61 // Close WebSocket when the browser window is closed.
23-- 62--
242.7.0 632.9.0
25 64
26 65
27From 52f45089ccf786c13d185faf1ad7436a63c13002 Mon Sep 17 00:00:00 2001 66From 4fb9b3304467a48d8ebeec85803464ec1a2aeeb6 Mon Sep 17 00:00:00 2001
28From: Gregor Kleen <gkleen@yggdrasil.li> 67From: Gregor Kleen <gkleen@yggdrasil.li>
29Date: Tue, 1 Mar 2016 00:22:01 +0100 68Date: Tue, 1 Mar 2016 00:22:01 +0100
30Subject: [PATCH 2/2] Now manipulating the location object 69Subject: [PATCH 3/3] Now manipulating the location object
31 70
32--- 71---
33 js/comm.js | 3 +- 72 js/comm.js | 3 +-
@@ -148,5 +187,5 @@ index 0d2a564..ceec6f4 100644
148 , [include|js/comm.js|] 187 , [include|js/comm.js|]
149 , [include|js/ffi.js|] 188 , [include|js/ffi.js|]
150-- 189--
1512.7.0 1902.9.0
152 191