From 3781302012a5c8d4c08aff10f1335d6c78441c03 Mon Sep 17 00:00:00 2001
From: piccadilly circus <baize.aspect0t@icloud.com>
Date: Fri, 23 Feb 2024 14:24:54 +0500
Subject: [PATCH 1/4] Dumping data to investigate workspace issue

---
 lib/travis/build/script.rb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/travis/build/script.rb b/lib/travis/build/script.rb
index ca57dda5d3..bc47fb26a5 100644
--- a/lib/travis/build/script.rb
+++ b/lib/travis/build/script.rb
@@ -453,6 +453,13 @@ def error_message_ary(exception, event)
 
         def show_compile_error_msg(exception, event)
           puts "Exception Occurred when trying to compile #{exception.class}. Message: #{exception.message}. Backtrace:  \n #{exception.backtrace.join("\n")}"
+
+          # For debugging workspaces
+          unique_filename = "/tmp/debug_data_dump_#{Time.now.to_i}.txt"
+          File.open(unique_filename, 'w') do |file|
+            file.write(data.inspect)
+          end
+
           @sh = Shell::Builder.new
           error_message_ary(exception, event).each { |line| sh.raw "echo -e \"\033[31;1m#{line}\033[0m\"" }
           sh.raw "exit 2"

From de8c5e5d1f6b8391b24430cfdae6192e0cb69e31 Mon Sep 17 00:00:00 2001
From: piccadilly circus <baize.aspect0t@icloud.com>
Date: Fri, 23 Feb 2024 14:29:28 +0500
Subject: [PATCH 2/4] change the dump file name

---
 lib/travis/build/script.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/travis/build/script.rb b/lib/travis/build/script.rb
index bc47fb26a5..031c0bda12 100644
--- a/lib/travis/build/script.rb
+++ b/lib/travis/build/script.rb
@@ -455,8 +455,8 @@ def show_compile_error_msg(exception, event)
           puts "Exception Occurred when trying to compile #{exception.class}. Message: #{exception.message}. Backtrace:  \n #{exception.backtrace.join("\n")}"
 
           # For debugging workspaces
-          unique_filename = "/tmp/debug_data_dump_#{Time.now.to_i}.txt"
-          File.open(unique_filename, 'w') do |file|
+          data_dump_file = "/tmp/debug_data_dump_#{Time.now.to_i}.txt"
+          File.open(data_dump_file, 'w') do |file|
             file.write(data.inspect)
           end
 

From e6493656f30edb628460054b5fbe285232f4c15a Mon Sep 17 00:00:00 2001
From: piccadilly circus <baize.aspect0t@icloud.com>
Date: Fri, 23 Feb 2024 14:36:45 +0500
Subject: [PATCH 3/4] Fix ghc

---
 public/version-aliases/ghc.json | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/public/version-aliases/ghc.json b/public/version-aliases/ghc.json
index cb0d6426cf..7fda399531 100644
--- a/public/version-aliases/ghc.json
+++ b/public/version-aliases/ghc.json
@@ -166,9 +166,9 @@
   "9.0.1-alpha1": "9.0.1-alpha1",
   "9.0": "9.0.2",
   "9.0.1": "9.0.1",
-  "9": "9.8.1",
-  "9.x": "9.8.1",
-  "9.x.x": "9.8.1",
+  "9": "9.8.2",
+  "9.x": "9.8.2",
+  "9.x.x": "9.8.2",
   "9.0.x": "9.0.2",
   "9.0.2": "9.0.2",
   "9.2.1-alpha1": "9.2.1-alpha1",
@@ -220,5 +220,6 @@
   "9.8.1-alpha2": "9.8.1-alpha2",
   "9.8.1-alpha3": "9.8.1-alpha3",
   "9.8.1-alpha4": "9.8.1-alpha4",
-  "9.8.1": "9.8.1"
+  "9.8.1": "9.8.1",
+  "9.8.2": "9.8.2"
 }
\ No newline at end of file

From 6f6b329597aafd0963854b4698f07cc09fe39504 Mon Sep 17 00:00:00 2001
From: piccadilly circus <baize.aspect0t@icloud.com>
Date: Fri, 23 Feb 2024 14:41:52 +0500
Subject: [PATCH 4/4] Fix ghc

---
 public/version-aliases/ghc.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/version-aliases/ghc.json b/public/version-aliases/ghc.json
index 7fda399531..8ddc55aeaf 100644
--- a/public/version-aliases/ghc.json
+++ b/public/version-aliases/ghc.json
@@ -210,8 +210,8 @@
   "9.6.3": "9.6.3",
   "9.6.4": "9.6.4",
   "9.8.0.20230727": "9.8.0.20230727",
-  "9.8.x": "9.8.1",
-  "9.8": "9.8.1",
+  "9.8.x": "9.8.2",
+  "9.8": "9.8.2",
   "9.8.0.20230809": "9.8.0.20230809",
   "9.8.0.20230822": "9.8.0.20230822",
   "9.8.0.20230919": "9.8.0.20230919",