From 0963081fd85fa62f80cf0d41fc67cca4a7c40ad6 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 21 Mar 2020 22:19:37 +0100 Subject: [PATCH] Use OverloadedStrings instead of TH --- app/ghcup-gen/GHCupDownloads.hs | 288 ++++++++++++++++---------------- app/ghcup/Main.hs | 66 ++++---- lib/GHCup.hs | 49 +++--- lib/GHCup/Download.hs | 52 +++--- lib/GHCup/Platform.hs | 26 +-- lib/GHCup/Types/JSON.hs | 4 +- lib/GHCup/Utils.hs | 30 ++-- lib/GHCup/Utils/Dirs.hs | 10 +- 8 files changed, 261 insertions(+), 264 deletions(-) diff --git a/app/ghcup-gen/GHCupDownloads.hs b/app/ghcup-gen/GHCupDownloads.hs index d1bcca7..cba00f8 100644 --- a/app/ghcup-gen/GHCupDownloads.hs +++ b/app/ghcup-gen/GHCupDownloads.hs @@ -1,10 +1,10 @@ +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module GHCupDownloads where import GHCup.Types -import GHCup.Utils.String.QQ import GHCup.Utils.Version.QQ import HPath @@ -21,49 +21,49 @@ ghc_7103_64_cenots67 :: DownloadInfo ghc_7103_64_cenots67 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-centos67-linux.tar.bz2|] (Just [rel|ghc-7.10.3|]) - [s|a8957f7a2fd81720c5d3dc403571d77d31115ff5f42edb2917c36d8e714220d4|] + "a8957f7a2fd81720c5d3dc403571d77d31115ff5f42edb2917c36d8e714220d4" ghc_7103_32_cenots67 :: DownloadInfo ghc_7103_32_cenots67 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-i386-centos67-linux.tar.bz2|] (Just [rel|ghc-7.10.3|]) - [s|c50aa20275e8d1ba9148f380eb7598bc148143281fc17c9acd38ea7b325852bd|] + "c50aa20275e8d1ba9148f380eb7598bc148143281fc17c9acd38ea7b325852bd" ghc_7103_64_deb8 :: DownloadInfo ghc_7103_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-deb8-linux.tar.bz2|] (Just [rel|ghc-7.10.3|]) - [s|01cfbad8dff1e8b34a5fdca8caeaf843b56e36af919e29cd68870d2588563db5|] + "01cfbad8dff1e8b34a5fdca8caeaf843b56e36af919e29cd68870d2588563db5" ghc_7103_32_deb8 :: DownloadInfo ghc_7103_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-i386-deb8-linux.tar.bz2|] (Just [rel|ghc-7.10.3|]) - [s|d2ccf072457fb100503f6f5430a1e3589ca525a97424263d036b0550bc277f0c|] + "d2ccf072457fb100503f6f5430a1e3589ca525a97424263d036b0550bc277f0c" ghc_7103_64_darwin :: DownloadInfo ghc_7103_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-apple-darwin.tar.bz2|] (Just [rel|ghc-7.10.3|]) - [s|80893e367e8318105f7db2064adf202e3d96b1f014e792b73e92f2cacf0b757a|] + "80893e367e8318105f7db2064adf202e3d96b1f014e792b73e92f2cacf0b757a" ghc_7103_64_freebsd :: DownloadInfo ghc_7103_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-x86_64-portbld-freebsd.tar.bz2|] (Just [rel|ghc-7.10.3|]) - [s|2aa396edd2bb651f4bc7eef7a396913ea24923de5aafdc76df6295333e487e48|] + "2aa396edd2bb651f4bc7eef7a396913ea24923de5aafdc76df6295333e487e48" ghc_7103_32_freebsd :: DownloadInfo ghc_7103_32_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-i386-portbld-freebsd.tar.bz2|] (Just [rel|ghc-7.10.3|]) - [s|3dde05577c6f94dcb0ba201ebd53ab88553bbc9a3aa8e72237162ed7a9d588a3|] + "3dde05577c6f94dcb0ba201ebd53ab88553bbc9a3aa8e72237162ed7a9d588a3" ghc_7103_64_musl :: DownloadInfo ghc_7103_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-7.10.3-musl/ghc-7.10.3-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-7.10.3|]) - [s|8b83dfa8b85ba45e24768337254e6eb23c0855df1a5168671a3a8090b6d0964e|] + "8b83dfa8b85ba45e24768337254e6eb23c0855df1a5168671a3a8090b6d0964e" @@ -77,49 +77,49 @@ ghc_802_64_deb7 :: DownloadInfo ghc_802_64_deb7 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-deb7-linux.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|b2f5c304b57ac5840a0d2ef763a3c6fa858c70840f749cfad12ed227da973c0a|] + "b2f5c304b57ac5840a0d2ef763a3c6fa858c70840f749cfad12ed227da973c0a" ghc_802_32_deb7 :: DownloadInfo ghc_802_32_deb7 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-i386-deb7-linux.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|07ead3a49f8c9df4b429e7a2f96f6f31bcab8d3ff8277a9aed0201d13ddad448|] + "07ead3a49f8c9df4b429e7a2f96f6f31bcab8d3ff8277a9aed0201d13ddad448" ghc_802_64_deb8 :: DownloadInfo ghc_802_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|5ee68290db00ca0b79d57bc3a5bdce470de9ce9da0b098a7ce6c504605856c8f|] + "5ee68290db00ca0b79d57bc3a5bdce470de9ce9da0b098a7ce6c504605856c8f" ghc_802_32_deb8 :: DownloadInfo ghc_802_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|818621342a2161b8afcc995a0765816bb40aefbfa1db2c8a7d59c04d8b18228a|] + "818621342a2161b8afcc995a0765816bb40aefbfa1db2c8a7d59c04d8b18228a" ghc_802_64_freebsd :: DownloadInfo ghc_802_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-portbld-freebsd.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|b36a20e5cae24d70bbb6116ae486f21811e9384f15d3892d260f02fba3e3bb8c|] + "b36a20e5cae24d70bbb6116ae486f21811e9384f15d3892d260f02fba3e3bb8c" ghc_802_64_darwin :: DownloadInfo ghc_802_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|ff50a2df9f002f33b9f09717ebf5ec5a47906b9b65cc57b1f9849f8b2e06788d|] + "ff50a2df9f002f33b9f09717ebf5ec5a47906b9b65cc57b1f9849f8b2e06788d" ghc_802_64_musl :: DownloadInfo ghc_802_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.0.2-musl/ghc-8.0.2-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|7f9ef3e048ca6f2a2a589e6c168d8c7699fbe32b1b39a9d7c72eff9b26e90c67|] + "7f9ef3e048ca6f2a2a589e6c168d8c7699fbe32b1b39a9d7c72eff9b26e90c67" ghc_802_32_musl :: DownloadInfo ghc_802_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.0.2-musl/ghc-8.0.2-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|815c68181013cd3f4dc748ddb5502a5e7a1a4011ba57d8eff6d66da411c72e84|] + "815c68181013cd3f4dc748ddb5502a5e7a1a4011ba57d8eff6d66da411c72e84" @@ -133,49 +133,49 @@ ghc_822_64_deb7 :: DownloadInfo ghc_822_64_deb7 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-x86_64-deb7-linux.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|cd7afbca54edf9890da9f432c63366556246c85c1198e40c99df5af01c555834|] + "cd7afbca54edf9890da9f432c63366556246c85c1198e40c99df5af01c555834" ghc_822_32_deb7 :: DownloadInfo ghc_822_32_deb7 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-i386-deb7-linux.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|cd18766b1a9b74fc6c90003a719ecab158f281f9a755d8b1bd3fd764ba6947b5|] + "cd18766b1a9b74fc6c90003a719ecab158f281f9a755d8b1bd3fd764ba6947b5" ghc_822_64_deb8 :: DownloadInfo ghc_822_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|48e205c62b9dc1ccf6739a4bc15a71e56dde2f891a9d786a1b115f0286111b2a|] + "48e205c62b9dc1ccf6739a4bc15a71e56dde2f891a9d786a1b115f0286111b2a" ghc_822_32_deb8 :: DownloadInfo ghc_822_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|9e67d72d76482e0ba91c718e727b00386a1a12a32ed719714976dc56ca8c8223|] + "9e67d72d76482e0ba91c718e727b00386a1a12a32ed719714976dc56ca8c8223" ghc_822_64_unknown :: DownloadInfo ghc_822_64_unknown = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-x86_64-unknown-linux.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|cd7afbca54edf9890da9f432c63366556246c85c1198e40c99df5af01c555834|] + "cd7afbca54edf9890da9f432c63366556246c85c1198e40c99df5af01c555834" ghc_822_64_darwin :: DownloadInfo ghc_822_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|f90fcf62f7e0936a6dfc3601cf663729bfe9bbf85097d2d75f0a16f8c2e95c27|] + "f90fcf62f7e0936a6dfc3601cf663729bfe9bbf85097d2d75f0a16f8c2e95c27" ghc_822_64_freebsd10 :: DownloadInfo ghc_822_64_freebsd10 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-x86_64-portbld10_3-freebsd.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|9e99aaeaec4b2c6d660d80246c0d4dbd41fda88f1eb7a908b29dc8fa8d663949|] + "9e99aaeaec4b2c6d660d80246c0d4dbd41fda88f1eb7a908b29dc8fa8d663949" ghc_822_64_freebsd11 :: DownloadInfo ghc_822_64_freebsd11 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-x86_64-portbld11-freebsd.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|cd351c704b92b9af23994024df07de8ca7090ea7675d5c8b14b2be857a46d804|] + "cd351c704b92b9af23994024df07de8ca7090ea7675d5c8b14b2be857a46d804" @@ -190,43 +190,43 @@ ghc_841_64_deb8 :: DownloadInfo ghc_841_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.1/ghc-8.4.1-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|427c77a934b30c3f1de992c38c072afb4323fe6fb30dbac919ca8cb6ae98fbd9|] + "427c77a934b30c3f1de992c38c072afb4323fe6fb30dbac919ca8cb6ae98fbd9" ghc_841_32_deb8 :: DownloadInfo ghc_841_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.1/ghc-8.4.1-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|c56c589c76c7ddcb77cdbef885a811761e669d3e76868b723d5be56dedcd4f69|] + "c56c589c76c7ddcb77cdbef885a811761e669d3e76868b723d5be56dedcd4f69" ghc_841_64_fedora :: DownloadInfo ghc_841_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.1/ghc-8.4.1-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|89328a013e64b9b56825a9071fea5616ddd623d37fd41e8fb913dfebc609e7ea|] + "89328a013e64b9b56825a9071fea5616ddd623d37fd41e8fb913dfebc609e7ea" ghc_841_64_darwin :: DownloadInfo ghc_841_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.1/ghc-8.4.1-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|d774e39f3a0105843efd06709b214ee332c30203e6c5902dd6ed45e36285f9b7|] + "d774e39f3a0105843efd06709b214ee332c30203e6c5902dd6ed45e36285f9b7" ghc_841_64_freebsd :: DownloadInfo ghc_841_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.1/ghc-8.4.1-x86_64-portbld11-freebsd.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|e748daec098445c6190090fe32bb2817a1140553be5acd2188e1af05ad24e5aa|] + "e748daec098445c6190090fe32bb2817a1140553be5acd2188e1af05ad24e5aa" ghc_841_64_musl :: DownloadInfo ghc_841_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.1-musl/ghc-8.4.1-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|82d4ea6247a91e7e76065c0cdf66eec813ab679c1f24de0fb92c89bba3ef27f2|] + "82d4ea6247a91e7e76065c0cdf66eec813ab679c1f24de0fb92c89bba3ef27f2" ghc_841_32_musl :: DownloadInfo ghc_841_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.1-musl/ghc-8.4.1-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|e5feee34b58c1a1cd6c270fbe696c178a4649675398f4e0d56a4bfad9641b736|] + "e5feee34b58c1a1cd6c270fbe696c178a4649675398f4e0d56a4bfad9641b736" @@ -240,49 +240,49 @@ ghc_842_64_deb8 :: DownloadInfo ghc_842_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|246f66eb56f4ad0f1c7755502cfc8f9972f2d067dede17e151f6f479c1f76fbd|] + "246f66eb56f4ad0f1c7755502cfc8f9972f2d067dede17e151f6f479c1f76fbd" ghc_842_32_deb8 :: DownloadInfo ghc_842_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|2d849c30b4c1eac25dc74333501920921e22fa483153f404993808bbda93df05|] + "2d849c30b4c1eac25dc74333501920921e22fa483153f404993808bbda93df05" ghc_842_64_deb9 :: DownloadInfo ghc_842_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|3f4f5bbd2cdab4e7015ada9196d8d9b3a1ad274293cef011f85c46854596cb57|] + "3f4f5bbd2cdab4e7015ada9196d8d9b3a1ad274293cef011f85c46854596cb57" ghc_842_64_fedora :: DownloadInfo ghc_842_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|d057b5c833596dbe4ae5d0dc2994f6cc5d0f4c2a21ea1d7900821d165fd4e846|] + "d057b5c833596dbe4ae5d0dc2994f6cc5d0f4c2a21ea1d7900821d165fd4e846" ghc_842_64_darwin :: DownloadInfo ghc_842_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|87469222042b9ac23f9db216a8d4e5107297bdbbb99df71eb4d9e7208455def2|] + "87469222042b9ac23f9db216a8d4e5107297bdbbb99df71eb4d9e7208455def2" ghc_842_64_freebsd :: DownloadInfo ghc_842_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-x86_64-portbld-freebsd.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|e9ed417fdf94c2ff2c6e344ed16f332bf6b591511f6442c0d9ea94854882b66c|] + "e9ed417fdf94c2ff2c6e344ed16f332bf6b591511f6442c0d9ea94854882b66c" ghc_842_64_musl :: DownloadInfo ghc_842_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.2-musl/ghc-8.4.2-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|3ebdb6e8001679e8722bd75a47805f1b3c1b25b37c4d237a7aaa4d66162f699f|] + "3ebdb6e8001679e8722bd75a47805f1b3c1b25b37c4d237a7aaa4d66162f699f" ghc_842_32_musl :: DownloadInfo ghc_842_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.2-musl/ghc-8.4.2-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|a43ac57214764717f0ffe515ef47b84e938f0a4fa8ff875773d6ba315b940835|] + "a43ac57214764717f0ffe515ef47b84e938f0a4fa8ff875773d6ba315b940835" @@ -295,43 +295,43 @@ ghc_843_64_deb8 :: DownloadInfo ghc_843_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.3/ghc-8.4.3-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|30a402c6d4754a6c020e0547f19ae3ac42e907e35349aa932d347f73e421a8e2|] + "30a402c6d4754a6c020e0547f19ae3ac42e907e35349aa932d347f73e421a8e2" ghc_843_32_deb8 :: DownloadInfo ghc_843_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.3/ghc-8.4.3-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|f5763983a26dedd88b65a0b17267359a3981b83a642569b26334423f684f8b8c|] + "f5763983a26dedd88b65a0b17267359a3981b83a642569b26334423f684f8b8c" ghc_843_64_deb9 :: DownloadInfo ghc_843_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.3/ghc-8.4.3-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|2e4f53afb872ad9c640f31aea283b3ff4c5028b65808a1920739900aef7d15c9|] + "2e4f53afb872ad9c640f31aea283b3ff4c5028b65808a1920739900aef7d15c9" ghc_843_64_fedora :: DownloadInfo ghc_843_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.3/ghc-8.4.3-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|269e7a4d3f336491b88409a020998122b30a3a729af78d33be86d3b3f8000c3e|] + "269e7a4d3f336491b88409a020998122b30a3a729af78d33be86d3b3f8000c3e" ghc_843_64_darwin :: DownloadInfo ghc_843_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.3/ghc-8.4.3-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|af0b455f6c46b9802b4b48dad996619cfa27cc6e2bf2ce5532387b4a8c00aa64|] + "af0b455f6c46b9802b4b48dad996619cfa27cc6e2bf2ce5532387b4a8c00aa64" ghc_843_64_musl :: DownloadInfo ghc_843_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.3-musl/ghc-8.4.3-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|0f05c67e3fd29a3f505abb77e9c39349d312cdc1a566263b8f4b227d085906bc|] + "0f05c67e3fd29a3f505abb77e9c39349d312cdc1a566263b8f4b227d085906bc" ghc_843_32_musl :: DownloadInfo ghc_843_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.3-musl/ghc-8.4.3-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|3a9a1ceb8eef234023fc36600245a03772bcb46b2abac41f6394104feaec8c43|] + "3a9a1ceb8eef234023fc36600245a03772bcb46b2abac41f6394104feaec8c43" @@ -345,55 +345,55 @@ ghc_844_64_deb8 :: DownloadInfo ghc_844_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|4c2a8857f76b7f3e34ecba0b51015d5cb8b767fe5377a7ec477abde10705ab1a|] + "4c2a8857f76b7f3e34ecba0b51015d5cb8b767fe5377a7ec477abde10705ab1a" ghc_844_32_deb8 :: DownloadInfo ghc_844_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|678bafaabea6af70ba71ccf0210bb437f9f5591ec28ac1cbbbd5f7aa6894e450|] + "678bafaabea6af70ba71ccf0210bb437f9f5591ec28ac1cbbbd5f7aa6894e450" ghc_844_64_deb9 :: DownloadInfo ghc_844_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|47c80a32d8f02838a2401414c94ba260d1fe82b7d090479994522242c767cc83|] + "47c80a32d8f02838a2401414c94ba260d1fe82b7d090479994522242c767cc83" ghc_844_64_centos :: DownloadInfo ghc_844_64_centos = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-x86_64-centos70-linux.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|83a96650f5a92b1e4d7651d256d6438624342d40e780e68125033435a54cd674|] + "83a96650f5a92b1e4d7651d256d6438624342d40e780e68125033435a54cd674" ghc_844_64_fedora :: DownloadInfo ghc_844_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|8ab2befddc14d1434d0aad0c5d3c7e0c2b78ff84caa3429fa62527bfc6b86095|] + "8ab2befddc14d1434d0aad0c5d3c7e0c2b78ff84caa3429fa62527bfc6b86095" ghc_844_64_darwin :: DownloadInfo ghc_844_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|28dc89ebd231335337c656f4c5ead2ae2a1acc166aafe74a14f084393c5ef03a|] + "28dc89ebd231335337c656f4c5ead2ae2a1acc166aafe74a14f084393c5ef03a" ghc_844_64_freebsd :: DownloadInfo ghc_844_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-x86_64-portbld-freebsd11.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|44fbd142d1c355d6110595c59c760e2c73866ff9259ec85ebf814edb244d1940|] + "44fbd142d1c355d6110595c59c760e2c73866ff9259ec85ebf814edb244d1940" ghc_844_64_musl :: DownloadInfo ghc_844_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.4-musl/ghc-8.4.4-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|e15f1cf02adb2cfb77a202050300a92f61456c6e1e90b543fec82d99da893a69|] + "e15f1cf02adb2cfb77a202050300a92f61456c6e1e90b543fec82d99da893a69" ghc_844_32_musl :: DownloadInfo ghc_844_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.4.4-musl/ghc-8.4.4-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|356f49b1acee0b0267fd8ca687aede14d43cee1f231d7f8a37525d50f07e1428|] + "356f49b1acee0b0267fd8ca687aede14d43cee1f231d7f8a37525d50f07e1428" @@ -406,49 +406,49 @@ ghc_861_64_deb8 :: DownloadInfo ghc_861_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|6d8784401b7dd80c90fa17306ec0539920e3987399a2c7ef247989e53197dc42|] + "6d8784401b7dd80c90fa17306ec0539920e3987399a2c7ef247989e53197dc42" ghc_861_32_deb8 :: DownloadInfo ghc_861_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|83573af96e3dec8f67c1a844512f92cbf7d51ae7ceca53d948fc2a3300abd05c|] + "83573af96e3dec8f67c1a844512f92cbf7d51ae7ceca53d948fc2a3300abd05c" ghc_861_64_deb9 :: DownloadInfo ghc_861_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|97d44f303868d74e4d13a2e99c82ffce3d25fd54c704675e5a1939e0d824dbf0|] + "97d44f303868d74e4d13a2e99c82ffce3d25fd54c704675e5a1939e0d824dbf0" ghc_861_64_fedora :: DownloadInfo ghc_861_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|da903fbcf11ee6c977a8b7dac3f04dbc098d674def587880b6624b8f32588beb|] + "da903fbcf11ee6c977a8b7dac3f04dbc098d674def587880b6624b8f32588beb" ghc_861_64_darwin :: DownloadInfo ghc_861_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|9692cdfd202b0e039ea0c3dde5dbf653736c836ca1df46504b179b572100808c|] + "9692cdfd202b0e039ea0c3dde5dbf653736c836ca1df46504b179b572100808c" ghc_861_64_freebsd :: DownloadInfo ghc_861_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-x86_64-portbld-freebsd.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|51403b054a3a649039ac988e1d1112561f96750bfced63df864091a3fab36f08|] + "51403b054a3a649039ac988e1d1112561f96750bfced63df864091a3fab36f08" ghc_861_64_musl :: DownloadInfo ghc_861_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.1-musl/ghc-8.6.1-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|2668e12facfa9083150b01b1137693cb3de266a6f8ac8c6b44a2be3826c73177|] + "2668e12facfa9083150b01b1137693cb3de266a6f8ac8c6b44a2be3826c73177" ghc_861_32_musl :: DownloadInfo ghc_861_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.1-musl/ghc-8.6.1-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|12b9b5b78be94b57d301b2a31eda145928110fd103fbbcc1e6e6966237a30ed2|] + "12b9b5b78be94b57d301b2a31eda145928110fd103fbbcc1e6e6966237a30ed2" @@ -461,37 +461,37 @@ ghc_862_64_deb8 :: DownloadInfo ghc_862_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.2/ghc-8.6.2-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.2|]) - [s|13f96e8b83bb5bb60f955786ff9085744c24927a33be8a17773f84c7c248533a|] + "13f96e8b83bb5bb60f955786ff9085744c24927a33be8a17773f84c7c248533a" ghc_862_32_deb8 :: DownloadInfo ghc_862_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.2/ghc-8.6.2-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.2|]) - [s|a288026d9ef22f7ac387edab6b29ef7dcb3b28945c8ea532a15c1fa35d4733ed|] + "a288026d9ef22f7ac387edab6b29ef7dcb3b28945c8ea532a15c1fa35d4733ed" ghc_862_64_fedora :: DownloadInfo ghc_862_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.2/ghc-8.6.2-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.6.2|]) - [s|702aa5dfa1639c37953ceb7571a5057d9fb0562aecb197b277953a037d78047d|] + "702aa5dfa1639c37953ceb7571a5057d9fb0562aecb197b277953a037d78047d" ghc_862_64_darwin :: DownloadInfo ghc_862_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.2/ghc-8.6.2-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.6.2|]) - [s|8ec46a25872226dd7e5cf7271e3f3450c05f32144b96e6b9cb44cc4079db50dc|] + "8ec46a25872226dd7e5cf7271e3f3450c05f32144b96e6b9cb44cc4079db50dc" ghc_862_64_musl :: DownloadInfo ghc_862_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.2-musl/ghc-8.6.2-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.2|]) - [s|5be9f98c25c49dbfb65223e2642335d4a45220f0c4044c8af70bbcaebe688467|] + "5be9f98c25c49dbfb65223e2642335d4a45220f0c4044c8af70bbcaebe688467" ghc_862_32_musl :: DownloadInfo ghc_862_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.2-musl/ghc-8.6.2-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.2|]) - [s|a1add75822258fbb6e57ad049919ef5f757bac10d3c7a6eaeee50d2521ffeb4e|] + "a1add75822258fbb6e57ad049919ef5f757bac10d3c7a6eaeee50d2521ffeb4e" @@ -505,55 +505,55 @@ ghc_863_64_deb8 :: DownloadInfo ghc_863_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|291ca565374f4d51cc311488581f3279d3167a064fabfd4a6722fe2bd4532fd5|] + "291ca565374f4d51cc311488581f3279d3167a064fabfd4a6722fe2bd4532fd5" ghc_863_32_deb8 :: DownloadInfo ghc_863_32_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-i386-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|b57070ba8c70b1333a3e47ce124baf791be39c20a592954772532fd6dd51882f|] + "b57070ba8c70b1333a3e47ce124baf791be39c20a592954772532fd6dd51882f" ghc_863_64_deb9 :: DownloadInfo ghc_863_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|e7954c8ed9b422a09c6ab737e4a0865a2725d034ba0e272bd5c70db910797f99|] + "e7954c8ed9b422a09c6ab737e4a0865a2725d034ba0e272bd5c70db910797f99" ghc_863_64_fedora :: DownloadInfo ghc_863_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|52ae92f4e8bb2ac0b7847287ea3da37081f5f7bf8bbb7c78ac35fde537d1a89f|] + "52ae92f4e8bb2ac0b7847287ea3da37081f5f7bf8bbb7c78ac35fde537d1a89f" ghc_863_64_centos :: DownloadInfo ghc_863_64_centos = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-x86_64-centos7-linux.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|355bd85c69933c31bbe99b4269ce719acfd0aad0b45e359ac39b9bb13996acc6|] + "355bd85c69933c31bbe99b4269ce719acfd0aad0b45e359ac39b9bb13996acc6" ghc_863_64_darwin :: DownloadInfo ghc_863_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|79d069a1a7d74cfdd7ac2a2711c45d3ddc6265b988a0cefa342714b24f997fc1|] + "79d069a1a7d74cfdd7ac2a2711c45d3ddc6265b988a0cefa342714b24f997fc1" ghc_863_64_freebsd :: DownloadInfo ghc_863_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-x86_64-portbld-freebsd.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|bc2419fa180f8a7808c49775987866435995df9bdd9ce08bcd38352d63ba6031|] + "bc2419fa180f8a7808c49775987866435995df9bdd9ce08bcd38352d63ba6031" ghc_863_64_musl :: DownloadInfo ghc_863_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.3-musl/ghc-8.6.3-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|274f7ea959e6f1c830b33efd462ab9d0ff32d1cb5be051a2a318464d05d674dd|] + "274f7ea959e6f1c830b33efd462ab9d0ff32d1cb5be051a2a318464d05d674dd" ghc_863_32_musl :: DownloadInfo ghc_863_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.3-musl/ghc-8.6.3-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|dc0b53a7f0e52232930abcfad427ccd0917c90797203fbc7b5d72f5335d85a7d|] + "dc0b53a7f0e52232930abcfad427ccd0917c90797203fbc7b5d72f5335d85a7d" @@ -567,43 +567,43 @@ ghc_864_64_deb8 :: DownloadInfo ghc_864_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.4/ghc-8.6.4-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|34ef5fc8ddf2fc32a027180bea5b1c8a81ea840c87faace2977a572188d4b42d|] + "34ef5fc8ddf2fc32a027180bea5b1c8a81ea840c87faace2977a572188d4b42d" ghc_864_64_deb9 :: DownloadInfo ghc_864_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.4/ghc-8.6.4-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|ef74222ef3c01c3fc5b926f67e8b4ef612fe8efa40ac937317cff9b0eed8d863|] + "ef74222ef3c01c3fc5b926f67e8b4ef612fe8efa40ac937317cff9b0eed8d863" ghc_864_32_deb9 :: DownloadInfo ghc_864_32_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.4/ghc-8.6.4-i386-deb9-linux.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|5e2ce88f4d13d23ac37e278e0c7b51c801008931359b9fa8a631d804d2da552c|] + "5e2ce88f4d13d23ac37e278e0c7b51c801008931359b9fa8a631d804d2da552c" ghc_864_64_fedora :: DownloadInfo ghc_864_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.4/ghc-8.6.4-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|e0b1ada7a679d6c35f9d7a1192ed35fde054f3650bb0bd2570d103729ad3b846|] + "e0b1ada7a679d6c35f9d7a1192ed35fde054f3650bb0bd2570d103729ad3b846" ghc_864_64_darwin :: DownloadInfo ghc_864_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.4/ghc-8.6.4-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|cccb58f142fe41b601d73690809f6089f7715b6a50a09aa3d0104176ab4db09e|] + "cccb58f142fe41b601d73690809f6089f7715b6a50a09aa3d0104176ab4db09e" ghc_864_64_musl :: DownloadInfo ghc_864_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.4-musl/ghc-8.6.4-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|ec73167bae1a173a9af07612df5fa1289e924f13ed9241339cb5617337cb2979|] + "ec73167bae1a173a9af07612df5fa1289e924f13ed9241339cb5617337cb2979" ghc_864_32_musl :: DownloadInfo ghc_864_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.4-musl/ghc-8.6.4-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|21b39b89edadbb6ab5b98d46dfacc0fd0799f9b16465a05c64e48f41dcbb1f7a|] + "21b39b89edadbb6ab5b98d46dfacc0fd0799f9b16465a05c64e48f41dcbb1f7a" @@ -617,49 +617,49 @@ ghc_865_64_deb8 :: DownloadInfo ghc_865_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|c419fd0aa9065fe4d2eb9a248e323860c696ddf3859749ca96a84938aee49107|] + "c419fd0aa9065fe4d2eb9a248e323860c696ddf3859749ca96a84938aee49107" ghc_865_64_deb9 :: DownloadInfo ghc_865_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|bc75f5601a9f41d58b2ba161b9e28fad52143a7229060f1e084168d9b2e914df|] + "bc75f5601a9f41d58b2ba161b9e28fad52143a7229060f1e084168d9b2e914df" ghc_865_32_deb9 :: DownloadInfo ghc_865_32_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-i386-deb9-linux.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|1cddb907393a669342b1a922dd16d505d9d93d50bd9433a54a8162f8701250dc|] + "1cddb907393a669342b1a922dd16d505d9d93d50bd9433a54a8162f8701250dc" ghc_865_64_fedora :: DownloadInfo ghc_865_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|cf78b53eaf336083e7a05f4a3000afbae4abe5bbc77ef80cc40e09d04ac5b4a1|] + "cf78b53eaf336083e7a05f4a3000afbae4abe5bbc77ef80cc40e09d04ac5b4a1" ghc_865_64_centos :: DownloadInfo ghc_865_64_centos = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-centos7-linux.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|80ab566f4411299f9e5922d60749ca80f989d697db19e03ed875619d699f0edf|] + "80ab566f4411299f9e5922d60749ca80f989d697db19e03ed875619d699f0edf" ghc_865_64_darwin :: DownloadInfo ghc_865_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|dfc1bdb1d303a87a8552aa17f5b080e61351f2823c2b99071ec23d0837422169|] + "dfc1bdb1d303a87a8552aa17f5b080e61351f2823c2b99071ec23d0837422169" ghc_865_64_musl :: DownloadInfo ghc_865_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.5-musl/ghc-8.6.5-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|ec6d0417822c3bfafc7aea0b0402294901231bc5d72dd17a2b849e3f44850695|] + "ec6d0417822c3bfafc7aea0b0402294901231bc5d72dd17a2b849e3f44850695" ghc_865_32_musl :: DownloadInfo ghc_865_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.6.5-musl/ghc-8.6.5-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|db13ff894faf431f9c64db21c090a1e4e42803794d56720a704c50166c7ca05d|] + "db13ff894faf431f9c64db21c090a1e4e42803794d56720a704c50166c7ca05d" @@ -673,49 +673,49 @@ ghc_881_64_deb8 :: DownloadInfo ghc_881_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.1/ghc-8.8.1-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|fd96eb851971fbc3332bf2fa7821732cfa8b37e5a076a69f6a06f83f0ea7ccc5|] + "fd96eb851971fbc3332bf2fa7821732cfa8b37e5a076a69f6a06f83f0ea7ccc5" ghc_881_64_deb9 :: DownloadInfo ghc_881_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.1/ghc-8.8.1-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|620fd560535b63cac5f8c97354ccddf93fa940cca78e2d19f6f98b7e67c6a723|] + "620fd560535b63cac5f8c97354ccddf93fa940cca78e2d19f6f98b7e67c6a723" ghc_881_32_deb9 :: DownloadInfo ghc_881_32_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.1/ghc-8.8.1-i386-deb9-linux.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|3d3bb75aff2dd79ec87ace10483368681fbc328ff00ebf15edad33420f00f7f5|] + "3d3bb75aff2dd79ec87ace10483368681fbc328ff00ebf15edad33420f00f7f5" ghc_881_64_fedora :: DownloadInfo ghc_881_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.1/ghc-8.8.1-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|851a78df620bc056c34b252c97040d5755e294993fa8afa5429708b5229204d6|] + "851a78df620bc056c34b252c97040d5755e294993fa8afa5429708b5229204d6" ghc_881_64_centos :: DownloadInfo ghc_881_64_centos = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.1/ghc-8.8.1-x86_64-centos7-linux.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|6cdd34e4dbaeb801e805811f91cf43a2d5f64b22f884718ffbd3542a2f4dd14f|] + "6cdd34e4dbaeb801e805811f91cf43a2d5f64b22f884718ffbd3542a2f4dd14f" ghc_881_64_darwin :: DownloadInfo ghc_881_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.1/ghc-8.8.1-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|38c8917b47c31bedf58c9305dfca3abe198d8d35570366f0773c4e2948bd8abe|] + "38c8917b47c31bedf58c9305dfca3abe198d8d35570366f0773c4e2948bd8abe" ghc_881_64_musl :: DownloadInfo ghc_881_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.8.1-musl/ghc-8.8.1-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|029163c42a219983f4220d73c26b910c3ecf6eda45a3e5e27236e8a66b080890|] + "029163c42a219983f4220d73c26b910c3ecf6eda45a3e5e27236e8a66b080890" ghc_881_32_musl :: DownloadInfo ghc_881_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.8.1-musl/ghc-8.8.1-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|3f5462341a455a5677fba5cb24da8938878261069da5ee4234b1c6ac2d2ef77e|] + "3f5462341a455a5677fba5cb24da8938878261069da5ee4234b1c6ac2d2ef77e" @@ -729,49 +729,49 @@ ghc_882_64_deb8 :: DownloadInfo ghc_882_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|fbe69652eba75dadb758d00292247d17fb018c29cac5acd79843e56311256c9f|] + "fbe69652eba75dadb758d00292247d17fb018c29cac5acd79843e56311256c9f" ghc_882_64_deb9 :: DownloadInfo ghc_882_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|7b2d66c2d5d8c15750da5833d3018634a5eb792a5662282e3abfeb112c2a1cc3|] + "7b2d66c2d5d8c15750da5833d3018634a5eb792a5662282e3abfeb112c2a1cc3" ghc_882_32_deb9 :: DownloadInfo ghc_882_32_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-i386-deb9-linux.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|ad1c628082c32635a436905a7ff83eaa4246347d869be5ef6b33c3bf85e8f00c|] + "ad1c628082c32635a436905a7ff83eaa4246347d869be5ef6b33c3bf85e8f00c" ghc_882_64_fedora :: DownloadInfo ghc_882_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|dbe2db717b33460f790e155e487d2a31c9b21a9d245f0c9490ad65844c3ea21f|] + "dbe2db717b33460f790e155e487d2a31c9b21a9d245f0c9490ad65844c3ea21f" ghc_882_64_centos :: DownloadInfo ghc_882_64_centos = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-x86_64-centos7-linux.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|f065a017d7a38f235f186ffe32d8261a4fd39c7e945d5cde85c0984c2569db99|] + "f065a017d7a38f235f186ffe32d8261a4fd39c7e945d5cde85c0984c2569db99" ghc_882_64_darwin :: DownloadInfo ghc_882_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|25c5c1a70036abf3f22b2b19c10d26adfdb08e8f8574f89d4b2042de5947f990|] + "25c5c1a70036abf3f22b2b19c10d26adfdb08e8f8574f89d4b2042de5947f990" ghc_882_64_musl :: DownloadInfo ghc_882_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.8.2-musl/ghc-8.8.2-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|09d49c75b5626606409c982b23f70dec241a944928243f32d1b59b2005de6dea|] + "09d49c75b5626606409c982b23f70dec241a944928243f32d1b59b2005de6dea" ghc_882_32_musl :: DownloadInfo ghc_882_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.8.2-musl/ghc-8.8.2-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|4ea4a81b6b5ba807c93b21b3cddf1f1b4b0fc1ce018cf6aa255a9ee40137b278|] + "4ea4a81b6b5ba807c93b21b3cddf1f1b4b0fc1ce018cf6aa255a9ee40137b278" @@ -785,49 +785,49 @@ ghc_883_64_deb8 :: DownloadInfo ghc_883_64_deb8 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-deb8-linux.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|92b9fadc442976968d2c190c14e000d737240a7d721581cda8d8741b7bd402f0|] + "92b9fadc442976968d2c190c14e000d737240a7d721581cda8d8741b7bd402f0" ghc_883_64_deb9 :: DownloadInfo ghc_883_64_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-deb9-linux.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|42fde2ef5a143e1e6b47ae8875162ea2d4d54b06f0f7fa32ee4f0eb86f2be7ad|] + "42fde2ef5a143e1e6b47ae8875162ea2d4d54b06f0f7fa32ee4f0eb86f2be7ad" ghc_883_32_deb9 :: DownloadInfo ghc_883_32_deb9 = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-i386-deb9-linux.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|441e2c7a4fc83ebf179712bd939b555cda7c6633545b7c8ac38049f9d85003ae|] + "441e2c7a4fc83ebf179712bd939b555cda7c6633545b7c8ac38049f9d85003ae" ghc_883_64_fedora :: DownloadInfo ghc_883_64_fedora = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-fedora27-linux.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|45ee1de3bfc98cbcc4886b65fc7651ade2d3820aa85eac2dbe9bc7bf91e7c818|] + "45ee1de3bfc98cbcc4886b65fc7651ade2d3820aa85eac2dbe9bc7bf91e7c818" ghc_883_64_centos :: DownloadInfo ghc_883_64_centos = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-centos7-linux.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|4b2b5313f7c12b81e54efcb26705fa9e4ad5b98f2b58bfc76fb0c9ba1d55eb1f|] + "4b2b5313f7c12b81e54efcb26705fa9e4ad5b98f2b58bfc76fb0c9ba1d55eb1f" ghc_883_64_darwin :: DownloadInfo ghc_883_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-apple-darwin.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|7016de90dd226b06fc79d0759c5d4c83c2ab01d8c678905442c28bd948dbb782|] + "7016de90dd226b06fc79d0759c5d4c83c2ab01d8c678905442c28bd948dbb782" ghc_883_64_musl :: DownloadInfo ghc_883_64_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.8.3-musl/ghc-8.8.3-x86_64-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|77a990d76dc10abe2ed19e5fcfef4095f0e9819d4ab84bec6d82f00dd85812a7|] + "77a990d76dc10abe2ed19e5fcfef4095f0e9819d4ab84bec6d82f00dd85812a7" ghc_883_32_musl :: DownloadInfo ghc_883_32_musl = DownloadInfo [uri|https://github.com/redneb/ghc-alt-libc/releases/download/ghc-8.8.3-musl/ghc-8.8.3-i386-unknown-linux-musl.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|23779adb4cf4b314d0f8c66ee215ba6e74154c0768a573780475943544020bec|] + "23779adb4cf4b314d0f8c66ee215ba6e74154c0768a573780475943544020bec" @@ -841,31 +841,31 @@ cabal_2410_32_linux :: DownloadInfo cabal_2410_32_linux = DownloadInfo [uri|https://downloads.haskell.org/cabal/cabal-install-2.4.1.0/cabal-install-2.4.1.0-i386-unknown-linux.tar.xz|] Nothing - [s|b2da736cc27609442b10f77fc1a687aba603a7a33045b722dbf1a0066fade198|] + "b2da736cc27609442b10f77fc1a687aba603a7a33045b722dbf1a0066fade198" cabal_2410_64_linux :: DownloadInfo cabal_2410_64_linux = DownloadInfo [uri|https://downloads.haskell.org/cabal/cabal-install-2.4.1.0/cabal-install-2.4.1.0-x86_64-unknown-linux.tar.xz|] Nothing - [s|6136c189ffccaa39916f9cb5788f757166444a2d0c473b987856a79ecbf0c714|] + "6136c189ffccaa39916f9cb5788f757166444a2d0c473b987856a79ecbf0c714" cabal_2410_64_darwin :: DownloadInfo cabal_2410_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/cabal/cabal-install-2.4.1.0/cabal-install-2.4.1.0-x86_64-apple-darwin-sierra.tar.xz|] Nothing - [s|56361cf4b0d920fe23174751fea1fb82a8e1ce522bd9706a3fbe47a72e458c9c|] + "56361cf4b0d920fe23174751fea1fb82a8e1ce522bd9706a3fbe47a72e458c9c" cabal_2410_64_alpine :: DownloadInfo cabal_2410_64_alpine = DownloadInfo [uri|https://downloads.haskell.org/cabal/cabal-install-2.4.1.0/cabal-install-2.4.1.0-x86_64-alpine-linux-musl.tar.xz|] Nothing - [s|720bef015f834a03deb7180be2952a44e7c2e6c8429137570404c3de4f46b984|] + "720bef015f834a03deb7180be2952a44e7c2e6c8429137570404c3de4f46b984" cabal_2410_64_freebsd :: DownloadInfo cabal_2410_64_freebsd = DownloadInfo [uri|https://downloads.haskell.org/~cabal/cabal-install-2.4.1.0/cabal-install-2.4.1.0-x86_64-portbld-freebsd.tar.xz|] Nothing - [s|33b7d37ea0688c93436eac9ec139d9967687875aa1fa13f2bb73bf05a9a59a1d|] + "33b7d37ea0688c93436eac9ec139d9967687875aa1fa13f2bb73bf05a9a59a1d" @@ -879,19 +879,19 @@ cabal_3000_32_linux :: DownloadInfo cabal_3000_32_linux = DownloadInfo [uri|https://downloads.haskell.org/cabal/cabal-install-3.0.0.0/cabal-install-3.0.0.0-i386-unknown-linux.tar.xz|] Nothing - [s|6898ccd6e6dc0872999c06daaf61d546164e12f60a1880d09852c9f0c59c5cf6|] + "6898ccd6e6dc0872999c06daaf61d546164e12f60a1880d09852c9f0c59c5cf6" cabal_3000_64_linux :: DownloadInfo cabal_3000_64_linux = DownloadInfo [uri|https://downloads.haskell.org/~cabal/cabal-install-3.0.0.0/cabal-install-3.0.0.0-x86_64-unknown-linux.tar.xz|] Nothing - [s|ee911ba67a70756eedeac662955b896d7e89432a99372aa45d2c6e71fa95a5e4|] + "ee911ba67a70756eedeac662955b896d7e89432a99372aa45d2c6e71fa95a5e4" cabal_3000_64_darwin :: DownloadInfo cabal_3000_64_darwin = DownloadInfo [uri|https://downloads.haskell.org/cabal/cabal-install-3.0.0.0/cabal-install-3.0.0.0-x86_64-apple-darwin17.7.0.tar.xz|] Nothing - [s|d4857e068560515e4cbb0e8ca124c370e07892f2a28804d87152834e5fe2b845|] + "d4857e068560515e4cbb0e8ca124c370e07892f2a28804d87152834e5fe2b845" @@ -904,7 +904,7 @@ ghcup_010_64_linux :: DownloadInfo ghcup_010_64_linux = DownloadInfo [uri|file:///home/maerwald/tmp/ghcup-exe|] Nothing - [s|558126339252788a3d44a3f910417277c7ab656f0796b68bdc58afe73296b8cd|] + "558126339252788a3d44a3f910417277c7ab656f0796b68bdc58afe73296b8cd" @@ -924,7 +924,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/7.10.3/ghc-7.10.3-src.tar.xz|] (Just [rel|ghc-7.10.3|]) - [s|cf90cedce1c28fd0e2b9e72fe8a938756668d18ea1fcc884a19f698658ac4fef|] + "cf90cedce1c28fd0e2b9e72fe8a938756668d18ea1fcc884a19f698658ac4fef" ) $ M.fromList [ ( A_64 @@ -967,7 +967,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-src.tar.xz|] (Just [rel|ghc-8.0.2|]) - [s|11625453e1d0686b3fa6739988f70ecac836cadc30b9f0c8b49ef9091d6118b1|] + "11625453e1d0686b3fa6739988f70ecac836cadc30b9f0c8b49ef9091d6118b1" ) $ M.fromList [ ( A_64 @@ -1010,7 +1010,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-src.tar.xz|] (Just [rel|ghc-8.2.2|]) - [s|bb8ec3634aa132d09faa270bbd604b82dfa61f04855655af6f9d14a9eedc05fc|] + "bb8ec3634aa132d09faa270bbd604b82dfa61f04855655af6f9d14a9eedc05fc" ) $ M.fromList [ ( A_64 @@ -1059,7 +1059,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.1/ghc-8.4.1-src.tar.xz|] (Just [rel|ghc-8.4.1|]) - [s|39ae2f25192408f355693e5a3c8b6ff613ddb7c4da998fdf26210143a61839d2|] + "39ae2f25192408f355693e5a3c8b6ff613ddb7c4da998fdf26210143a61839d2" ) $ M.fromList [ ( A_64 @@ -1095,7 +1095,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-src.tar.xz|] (Just [rel|ghc-8.4.2|]) - [s|01cc32f24a06bf3b2428351b6d7fec791e82d042426d29ad9e5a245b35f0047b|] + "01cc32f24a06bf3b2428351b6d7fec791e82d042426d29ad9e5a245b35f0047b" ) $ M.fromList [ ( A_64 @@ -1142,7 +1142,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.3/ghc-8.4.3-src.tar.xz|] (Just [rel|ghc-8.4.3|]) - [s|ae47afda985830de8811243255aa3744dfb9207cb980af74393298b2b62160d6|] + "ae47afda985830de8811243255aa3744dfb9207cb980af74393298b2b62160d6" ) $ M.fromList [ ( A_64 @@ -1188,7 +1188,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.4.4/ghc-8.4.4-src.tar.xz|] (Just [rel|ghc-8.4.4|]) - [s|11117735a58e507c481c09f3f39ae5a314e9fbf49fc3109528f99ea7959004b2|] + "11117735a58e507c481c09f3f39ae5a314e9fbf49fc3109528f99ea7959004b2" ) $ M.fromList [ ( A_64 @@ -1239,7 +1239,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.1/ghc-8.6.1-src.tar.xz|] (Just [rel|ghc-8.6.1|]) - [s|2c25c26d1e5c47c7cbb2a1d8e6456524033e7a71409184dd3125e3fc5a3c7036|] + "2c25c26d1e5c47c7cbb2a1d8e6456524033e7a71409184dd3125e3fc5a3c7036" ) $ M.fromList [ ( A_64 @@ -1286,7 +1286,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.2/ghc-8.6.2-src.tar.xz|] (Just [rel|ghc-8.6.2|]) - [s|caaa819d21280ecde90a4773143dee188711e9ff175a27cfbaee56eb851d76d5|] + "caaa819d21280ecde90a4773143dee188711e9ff175a27cfbaee56eb851d76d5" ) $ M.fromList [ ( A_64 @@ -1327,7 +1327,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-src.tar.xz|] (Just [rel|ghc-8.6.3|]) - [s|9f9e37b7971935d88ba80426c36af14b1e0b3ec1d9c860f44a4391771bc07f23|] + "9f9e37b7971935d88ba80426c36af14b1e0b3ec1d9c860f44a4391771bc07f23" ) $ M.fromList [ ( A_64 @@ -1378,7 +1378,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.4/ghc-8.6.4-src.tar.xz|] (Just [rel|ghc-8.6.4|]) - [s|5b5d07e4463203a433c3ed3df461ba6cce11b6d2b9b264db31f3429075d0303a|] + "5b5d07e4463203a433c3ed3df461ba6cce11b6d2b9b264db31f3429075d0303a" ) $ M.fromList [ ( A_64 @@ -1424,7 +1424,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-src.tar.xz|] (Just [rel|ghc-8.6.5|]) - [s|4d4aa1e96f4001b934ac6193ab09af5d6172f41f5a5d39d8e43393b9aafee361|] + "4d4aa1e96f4001b934ac6193ab09af5d6172f41f5a5d39d8e43393b9aafee361" ) $ M.fromList [ ( A_64 @@ -1474,7 +1474,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.1/ghc-8.8.1-src.tar.xz|] (Just [rel|ghc-8.8.1|]) - [s|908a83d9b814da74585de9d39687189e6260ec3848131f9d9236cab8a123721a|] + "908a83d9b814da74585de9d39687189e6260ec3848131f9d9236cab8a123721a" ) $ M.fromList [ ( A_64 @@ -1524,7 +1524,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.2/ghc-8.8.2-src.tar.xz|] (Just [rel|ghc-8.8.2|]) - [s|01cea54d90686b97bcc9960b108beaffccd4336dee930dcf9beaf52b1f370a0b|] + "01cea54d90686b97bcc9960b108beaffccd4336dee930dcf9beaf52b1f370a0b" ) $ M.fromList [ ( A_64 @@ -1574,7 +1574,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-src.tar.xz|] (Just [rel|ghc-8.8.3|]) - [s|e0dcc0aaf3e234c5978f29e6df62947e97720ab404ec0158343df211c5480f89|] + "e0dcc0aaf3e234c5978f29e6df62947e97720ab404ec0158343df211c5480f89" ) $ M.fromList [ ( A_64 @@ -1628,7 +1628,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://github.com/haskell/cabal/archive/cabal-install-v2.4.1.0.tar.gz|] (Just [rel|cabal-cabal-install-v2.4.1.0/cabal-install|]) - [s|61eb64a5addafca026aff9277291f4643fe07e83886f76d059d42c734fed829c|] + "61eb64a5addafca026aff9277291f4643fe07e83886f76d059d42c734fed829c" ) $ M.fromList [ ( A_64 @@ -1656,7 +1656,7 @@ ghcupDownloads = M.fromList (Just $ DownloadInfo [uri|https://github.com/haskell/cabal/archive/cabal-install-v3.0.0.0.tar.gz|] (Just [rel|cabal-cabal-install-v3.0.0.0/cabal-install|]) - [s|c0b26817a7b7c2907e45cb38235ce1157e732211880f62e92eaff4066202e674|] + "c0b26817a7b7c2907e45cb38235ce1157e732211880f62e92eaff4066202e674" ) $ M.fromList [ ( A_64 diff --git a/app/ghcup/Main.hs b/app/ghcup/Main.hs index cd6594c..4660c1b 100644 --- a/app/ghcup/Main.hs +++ b/app/ghcup/Main.hs @@ -3,6 +3,7 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DuplicateRecordFields #-} @@ -15,7 +16,6 @@ import GHCup.Types import GHCup.Utils import GHCup.Utils.Logger import GHCup.Utils.Prelude -import GHCup.Utils.String.QQ import GHCup.Version import Control.Monad.Fail ( MonadFail ) @@ -387,48 +387,46 @@ platformParser s' = case MP.parse (platformP <* MP.eof) "" (T.pack s') of Left e -> Left $ errorBundlePretty e where archP :: MP.Parsec Void Text Architecture - archP = - (MP.try (MP.chunk [s|x86_64|] $> A_64)) <|> (MP.chunk [s|i386|] $> A_32) + archP = (MP.try (MP.chunk "x86_64" $> A_64)) <|> (MP.chunk "i386" $> A_32) platformP :: MP.Parsec Void Text PlatformRequest platformP = choice' [ (\a mv -> PlatformRequest a FreeBSD mv) - <$> (archP <* MP.chunk [s|-|]) - <*> ( MP.chunk [s|portbld|] - *> ( MP.try (Just <$> verP (MP.chunk [s|-freebsd|] <* MP.eof)) + <$> (archP <* MP.chunk "-") + <*> ( MP.chunk "portbld" + *> ( MP.try (Just <$> verP (MP.chunk "-freebsd" <* MP.eof)) <|> pure Nothing ) - <* MP.chunk [s|-freebsd|] + <* MP.chunk "-freebsd" ) , (\a mv -> PlatformRequest a Darwin mv) - <$> (archP <* MP.chunk [s|-|]) - <*> ( MP.chunk [s|apple|] - *> ( MP.try (Just <$> verP (MP.chunk [s|-darwin|] <* MP.eof)) + <$> (archP <* MP.chunk "-") + <*> ( MP.chunk "apple" + *> ( MP.try (Just <$> verP (MP.chunk "-darwin" <* MP.eof)) <|> pure Nothing ) - <* MP.chunk [s|-darwin|] + <* MP.chunk "-darwin" ) , (\a d mv -> PlatformRequest a (Linux d) mv) - <$> (archP <* MP.chunk [s|-|]) + <$> (archP <* MP.chunk "-") <*> distroP - <*> ( ( MP.try (Just <$> verP (MP.chunk [s|-linux|] <* MP.eof)) - <|> pure Nothing - ) - <* MP.chunk [s|-linux|] + <*> ((MP.try (Just <$> verP (MP.chunk "-linux" <* MP.eof)) <|> pure Nothing + ) + <* MP.chunk "-linux" ) ] distroP :: MP.Parsec Void Text LinuxDistro distroP = choice' - [ MP.chunk [s|debian|] $> Debian - , MP.chunk [s|deb|] $> Debian - , MP.chunk [s|ubuntu|] $> Ubuntu - , MP.chunk [s|mint|] $> Mint - , MP.chunk [s|fedora|] $> Fedora - , MP.chunk [s|centos|] $> CentOS - , MP.chunk [s|redhat|] $> RedHat - , MP.chunk [s|alpine|] $> Alpine - , MP.chunk [s|gentoo|] $> Gentoo - , MP.chunk [s|exherbo|] $> Exherbo - , MP.chunk [s|unknown|] $> UnknownLinux + [ MP.chunk "debian" $> Debian + , MP.chunk "deb" $> Debian + , MP.chunk "ubuntu" $> Ubuntu + , MP.chunk "mint" $> Mint + , MP.chunk "fedora" $> Fedora + , MP.chunk "centos" $> CentOS + , MP.chunk "redhat" $> RedHat + , MP.chunk "alpine" $> Alpine + , MP.chunk "gentoo" $> Gentoo + , MP.chunk "exherbo" $> Exherbo + , MP.chunk "unknown" $> UnknownLinux ] verP :: MP.Parsec Void Text Text -> MP.Parsec Void Text Versioning verP suffix = do @@ -618,8 +616,8 @@ main = do liftE $ installGHCBin dls v instPlatform ) >>= \case - VRight _ -> runLogger - $ $(logInfo) ([s|GHC installation successful|]) + VRight _ -> + runLogger $ $(logInfo) ("GHC installation successful") VLeft (V (AlreadyInstalled _ v)) -> runLogger $ $(logWarn) [i|GHC ver #{prettyVer v} already installed|] @@ -641,8 +639,8 @@ Check the logs at ~/.ghcup/logs and the build directory #{tmpdir} for more clues liftE $ installCabalBin dls v instPlatform ) >>= \case - VRight _ -> runLogger - $ $(logInfo) ([s|Cabal installation successful|]) + VRight _ -> + runLogger $ $(logInfo) ("Cabal installation successful") VLeft (V (AlreadyInstalled _ v)) -> runLogger $ $(logWarn) [i|Cabal ver #{prettyVer v} already installed|] @@ -660,7 +658,7 @@ Check the logs at ~/.ghcup/logs and the build directory #{tmpdir} for more clues ) >>= \case VRight _ -> - runLogger $ $(logInfo) ([s|GHC successfully set|]) + runLogger $ $(logInfo) ("GHC successfully set") VLeft e -> runLogger ($(logError) [i|#{e}|]) >> exitFailure @@ -703,7 +701,7 @@ Check the logs at ~/.ghcup/logs and the build directory #{tmpdir} for more clues >>= \case VRight _ -> runLogger $ $(logInfo) - ([s|GHC successfully compiled and installed|]) + ("GHC successfully compiled and installed") VLeft (V (AlreadyInstalled _ v)) -> runLogger $ $(logWarn) [i|GHC ver #{prettyVer v} already installed|] @@ -724,7 +722,7 @@ Check the logs at ~/.ghcup/logs and the build directory #{tmpdir} for more clues >>= \case VRight _ -> runLogger $ $(logInfo) - ([s|Cabal successfully compiled and installed|]) + ("Cabal successfully compiled and installed") VLeft (V (BuildFailed tmpdir e)) -> runLogger ($(logError) [i|Build failed with #{e} diff --git a/lib/GHCup.hs b/lib/GHCup.hs index 3391750..a4f5abb 100644 --- a/lib/GHCup.hs +++ b/lib/GHCup.hs @@ -3,10 +3,11 @@ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} -{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeApplications #-} +{-# LANGUAGE TypeFamilies #-} module GHCup where @@ -133,14 +134,14 @@ installGHCBin bDls ver mpfReq = do -> Path Abs -- ^ Path to install to -> Excepts '[ProcessError] m () installGHC' path inst = do - lift $ $(logInfo) [s|Installing GHC (this may take a while)|] - lEM $ liftIO $ execLogged [s|./configure|] + lift $ $(logInfo) "Installing GHC (this may take a while)" + lEM $ liftIO $ execLogged "./configure" False - [[s|--prefix=|] <> toFilePath inst] + ["--prefix=" <> toFilePath inst] [rel|ghc-configure.log|] (Just path) Nothing - lEM $ liftIO $ make [[s|install|]] (Just path) + lEM $ liftIO $ make ["install"] (Just path) pure () @@ -194,7 +195,7 @@ installCabalBin bDls ver mpfReq = do -> Path Abs -- ^ Path to install to -> Excepts '[CopyError] m () installCabal' path inst = do - lift $ $(logInfo) [s|Installing cabal|] + lift $ $(logInfo) "Installing cabal" let cabalFile = [rel|cabal|] liftIO $ createDirIfMissing newDirPerms inst handleIO (throwE . CopyError . show) $ liftIO $ copyFile @@ -246,7 +247,7 @@ setGHC ver sghc = do SetGHCOnly -> pure file SetGHC_XY -> do major' <- - (\(mj, mi) -> E.encodeUtf8 $ intToText mj <> [s|.|] <> intToText mi) + (\(mj, mi) -> E.encodeUtf8 $ intToText mj <> "." <> intToText mi) <$> getGHCMajor ver parseRel (toFilePath file <> B.singleton _hyphen <> major') SetGHC_XYZ -> parseRel (toFilePath file <> B.singleton _hyphen <> verBS) @@ -276,7 +277,7 @@ setGHC ver sghc = do let fullsharedir = ghcdir sharedir whenM (liftIO $ doesDirectoryExist fullsharedir) $ do let fullF = destdir sharedir - let targetF = [s|./ghc/|] <> verBS <> [s|/|] <> toFilePath sharedir + let targetF = "./ghc/" <> verBS <> "/" <> toFilePath sharedir $(logDebug) [i|rm -f #{fullF}|] liftIO $ hideError doesNotExistErrorType $ deleteFile fullF $(logDebug) [i|ln -s #{targetF} #{fullF}|] @@ -462,7 +463,7 @@ compileGHC dls tver bver jobs mbuildConfig = do tmpUnpack <- lift mkGhcupTmpDir liftE $ unpackToDir tmpUnpack dl - bghc <- parseRel ([s|ghc-|] <> verToBS bver) + bghc <- parseRel ("ghc-" <> verToBS bver) let workdir = maybe id (flip ()) (view dlSubdir dlInfo) $ tmpUnpack ghcdir <- liftIO $ ghcupGHCDir tver @@ -505,26 +506,24 @@ GhcWithLlvmCodeGen = YES|] lift $ $(logInfo) [i|configuring build|] -- force ld.bfd for build (others seem to misbehave, like lld from FreeBSD) - newEnv <- addToCurrentEnv [([s|LD|], [s|ld.bfd|])] + newEnv <- addToCurrentEnv [("LD", "ld.bfd")] if | tver >= [vver|8.8.0|] -> do spaths <- catMaybes . fmap parseAbs <$> liftIO getSearchPath bghcPath <- (liftIO $ searchPath spaths bghc) !? NoDownload lEM $ liftIO $ execLogged - [s|./configure|] + "./configure" False - [[s|--prefix=|] <> toFilePath ghcdir] + ["--prefix=" <> toFilePath ghcdir] [rel|ghc-configure.log|] (Just workdir) - (Just (([s|GHC|], toFilePath bghcPath) : newEnv)) + (Just (("GHC", toFilePath bghcPath) : newEnv)) | otherwise -> do lEM $ liftIO $ execLogged - [s|./configure|] + "./configure" False - [ [s|--prefix=|] <> toFilePath ghcdir - , [s|--with-ghc=|] <> toFilePath bghc - ] + ["--prefix=" <> toFilePath ghcdir, "--with-ghc=" <> toFilePath bghc] [rel|ghc-configure.log|] (Just workdir) (Just newEnv) @@ -540,11 +539,11 @@ GhcWithLlvmCodeGen = YES|] lift $ $(logInfo) [i|Building (this may take a while)... Run 'tail -f ~/.ghcup/logs/ghc-make.log' to see the progress.|] - lEM $ liftIO $ make (maybe [] (\j -> [[s|-j|] <> fS (show j)]) jobs) + lEM $ liftIO $ make (maybe [] (\j -> ["-j" <> fS (show j)]) jobs) (Just workdir) lift $ $(logInfo) [i|Installing...|] - lEM $ liftIO $ make [[s|install|]] (Just workdir) + lEM $ liftIO $ make ["install"] (Just workdir) markSrcBuilt ghcdir workdir = do let dest = (ghcdir ghcUpSrcBuiltFile) @@ -604,15 +603,15 @@ compileCabal dls tver bver jobs = do let v' = verToBS bver cabal_bin <- liftIO $ ghcupBinDir newEnv <- lift $ addToCurrentEnv - [ ([s|GHC|] , [s|ghc-|] <> v') - , ([s|GHC_PKG|], [s|ghc-pkg-|] <> v') - , ([s|GHC_VER|], v') - , ([s|PREFIX|] , toFilePath cabal_bin) + [ ("GHC" , "ghc-" <> v') + , ("GHC_PKG", "ghc-pkg-" <> v') + , ("GHC_VER", v') + , ("PREFIX" , toFilePath cabal_bin) ] - lEM $ liftIO $ execLogged [s|./bootstrap.sh|] + lEM $ liftIO $ execLogged "./bootstrap.sh" False - (maybe [] (\j -> [[s|-j|], fS (show j)]) jobs) + (maybe [] (\j -> ["-j", fS (show j)]) jobs) [rel|cabal-bootstrap.log|] (Just workdir) (Just newEnv) diff --git a/lib/GHCup/Download.hs b/lib/GHCup/Download.hs index b798625..f554644 100644 --- a/lib/GHCup/Download.hs +++ b/lib/GHCup/Download.hs @@ -1,10 +1,11 @@ {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} -{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeApplications #-} +{-# LANGUAGE TypeFamilies #-} module GHCup.Download where @@ -18,7 +19,6 @@ import GHCup.Types.Optics import GHCup.Utils import GHCup.Utils.File import GHCup.Utils.Prelude -import GHCup.Utils.String.QQ import Control.Applicative import Control.Exception.Safe @@ -190,7 +190,7 @@ getDownloads urlSource = do parseModifiedHeader :: (M.Map (CI ByteString) ByteString) -> Maybe UTCTime parseModifiedHeader headers = - (M.lookup (CI.mk [s|Last-Modified|]) headers) >>= \h -> parseTimeM + (M.lookup (CI.mk "Last-Modified") headers) >>= \h -> parseTimeM True defaultTimeLocale "%a, %d %b %Y %H:%M:%S %Z" @@ -271,9 +271,9 @@ download :: ( MonadMask m -> Maybe (Path Rel) -- ^ optional filename -> Excepts '[DigestError , DownloadFailed] m (Path Abs) download dli dest mfn - | scheme == [s|https|] = dl - | scheme == [s|http|] = dl - | scheme == [s|file|] = cp + | scheme == "https" = dl + | scheme == "http" = dl + | scheme == "file" = cp | otherwise = throwE $ DownloadFailed (variantFromValue UnsupportedScheme) where @@ -370,11 +370,11 @@ downloadBS :: (MonadCatch m, MonadIO m) m L.ByteString downloadBS uri' - | scheme == [s|https|] + | scheme == "https" = dl True - | scheme == [s|http|] + | scheme == "http" = dl False - | scheme == [s|file|] + | scheme == "file" = liftIOException doesNotExistErrorType (FileDoesNotExistError path) $ (liftIO $ RD.readFile path) | otherwise @@ -447,7 +447,7 @@ downloadInternal = go (5 :: Int) let scode = getStatusCode r if | scode >= 200 && scode < 300 -> downloadStream r i' >> pure Nothing - | scode >= 300 && scode < 400 -> case getHeader r [s|Location|] of + | scode >= 300 && scode < 400 -> case getHeader r "Location" of Just r' -> pure $ Just $ r' Nothing -> throwE NoLocationHeader | otherwise -> throwE $ HTTPStatusError scode @@ -460,7 +460,7 @@ downloadInternal = go (5 :: Int) Left e -> throwE e downloadStream r i' = do - let size = case getHeader r [s|Content-Length|] of + let size = case getHeader r "Content-Length" of Just x' -> case decimal $ E.decodeUtf8 x' of Left _ -> 0 Right (r', _) -> r' @@ -492,9 +492,9 @@ getHead :: (MonadCatch m, MonadIO m) ] m (M.Map (CI ByteString) ByteString) -getHead uri' | scheme == [s|https|] = head' True - | scheme == [s|http|] = head' False - | otherwise = throwE UnsupportedScheme +getHead uri' | scheme == "https" = head' True + | scheme == "http" = head' False + | otherwise = throwE UnsupportedScheme where scheme = view (uriSchemeL' % schemeBSL') uri' @@ -542,7 +542,7 @@ headInternal = go (5 :: Int) | scode >= 200 && scode < 300 -> do let headers = getHeaderMap r pure $ Right $ headers - | scode >= 300 && scode < 400 -> case getHeader r [s|Location|] of + | scode >= 300 && scode < 400 -> case getHeader r "Location" of Just r' -> pure $ Left $ r' Nothing -> throwE NoLocationHeader | otherwise -> throwE $ HTTPStatusError scode @@ -585,19 +585,17 @@ uriToQuadruple URI {..} = do ?? UnsupportedScheme https <- if - | scheme == [s|https|] -> pure True - | scheme == [s|http|] -> pure False - | otherwise -> throwE UnsupportedScheme + | scheme == "https" -> pure True + | scheme == "http" -> pure False + | otherwise -> throwE UnsupportedScheme - let - queryBS = - BS.intercalate [s|&|] - . fmap (\(x, y) -> encodeQuery x <> [s|=|] <> encodeQuery y) - $ (queryPairs uriQuery) - port = - preview (_Just % authorityPortL' % _Just % portNumberL') uriAuthority - fullpath = - if BS.null queryBS then uriPath else uriPath <> [s|?|] <> queryBS + let queryBS = + BS.intercalate "&" + . fmap (\(x, y) -> encodeQuery x <> "=" <> encodeQuery y) + $ (queryPairs uriQuery) + port = + preview (_Just % authorityPortL' % _Just % portNumberL') uriAuthority + fullpath = if BS.null queryBS then uriPath else uriPath <> "?" <> queryBS pure (https, host, fullpath, port) where encodeQuery = L.toStrict . B.toLazyByteString . urlEncodeQuery diff --git a/lib/GHCup/Platform.hs b/lib/GHCup/Platform.hs index e055e78..9c1a9f0 100644 --- a/lib/GHCup/Platform.hs +++ b/lib/GHCup/Platform.hs @@ -1,6 +1,7 @@ {-# LANGUAGE DataKinds #-} -{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE FlexibleInstances #-} +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} @@ -128,8 +129,8 @@ getLinuxDistro = do try_lsb_release_cmd :: IO (Text, Maybe Text) try_lsb_release_cmd = do (Just _) <- findExecutable lsb_release_cmd - name <- fmap _stdOut $ executeOut lsb_release_cmd [[s|-si|]] Nothing - ver <- fmap _stdOut $ executeOut lsb_release_cmd [[s|-sr|]] Nothing + name <- fmap _stdOut $ executeOut lsb_release_cmd ["-si"] Nothing + ver <- fmap _stdOut $ executeOut lsb_release_cmd ["-sr"] Nothing pure (E.decodeUtf8 name, Just $ E.decodeUtf8 ver) try_lsb_release :: IO (Text, Maybe Text) @@ -142,23 +143,22 @@ getLinuxDistro = do try_redhat_release = do t <- fmap lBS2sT $ readFile redhat_release let nameRegex n = - makeRegexOpts - compIgnoreCase - execBlank - (([s|\<|] <> fS n <> [s|\>|] :: ByteString)) :: Regex + makeRegexOpts compIgnoreCase + execBlank + (([s|\<|] <> fS n <> [s|\>|] :: ByteString)) :: Regex let verRegex = - makeRegexOpts - compIgnoreCase - execBlank - ([s|\<([0-9])+(.([0-9])+)*\>|] :: ByteString) :: Regex - let nameRe n = fromEmpty . match (nameRegex n) $ T.unpack t :: Maybe String + makeRegexOpts compIgnoreCase + execBlank + ([s|\<([0-9])+(.([0-9])+)*\>|] :: ByteString) :: Regex + let nameRe n = + fromEmpty . match (nameRegex n) $ T.unpack t :: Maybe String verRe = fromEmpty . match verRegex $ T.unpack t :: Maybe String (Just name) <- pure (nameRe "CentOS" <|> nameRe "Fedora" <|> nameRe "Red Hat") pure (T.pack name, fmap T.pack verRe) where fromEmpty :: String -> Maybe String - fromEmpty "" = Nothing + fromEmpty "" = Nothing fromEmpty s' = Just s' try_debian_version :: IO (Text, Maybe Text) diff --git a/lib/GHCup/Types/JSON.hs b/lib/GHCup/Types/JSON.hs index a876cfa..c87822f 100644 --- a/lib/GHCup/Types/JSON.hs +++ b/lib/GHCup/Types/JSON.hs @@ -5,6 +5,7 @@ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} @@ -13,7 +14,6 @@ module GHCup.Types.JSON where import GHCup.Types import GHCup.Utils.Prelude -import GHCup.Utils.String.QQ import Data.Aeson import Data.Aeson.TH @@ -138,7 +138,7 @@ instance FromJSONKey Tool where instance ToJSON (Path Rel) where toJSON p = case and . fmap isAscii . BS.unpack $ fp of True -> toJSON . E.decodeUtf8 $ fp - False -> String [s|/not/a/valid/path|] + False -> String "/not/a/valid/path" where fp = toFilePath p instance FromJSON (Path Rel) where diff --git a/lib/GHCup/Utils.hs b/lib/GHCup/Utils.hs index 7396bdb..f2a9be2 100644 --- a/lib/GHCup/Utils.hs +++ b/lib/GHCup/Utils.hs @@ -1,5 +1,6 @@ {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} @@ -17,7 +18,6 @@ import GHCup.Types.JSON ( ) import GHCup.Utils.Dirs import GHCup.Utils.File import GHCup.Utils.Prelude -import GHCup.Utils.String.QQ import Control.Applicative import Control.Exception.Safe @@ -44,7 +44,9 @@ import Prelude hiding ( abs ) import Safe import System.IO.Error -import System.Posix.FilePath ( getSearchPath, takeFileName ) +import System.Posix.FilePath ( getSearchPath + , takeFileName + ) import System.Posix.Files.ByteString ( readSymbolicLink ) import URI.ByteString @@ -70,14 +72,14 @@ import qualified Data.Text.Encoding as E ghcLinkDestination :: ByteString -- ^ the tool, such as 'ghc', 'haddock' etc. -> Version -> ByteString -ghcLinkDestination tool ver = [s|../ghc/|] <> verToBS ver <> [s|/bin/|] <> tool +ghcLinkDestination tool ver = "../ghc/" <> verToBS ver <> "/bin/" <> tool -- | Extract the version part of the result of `ghcLinkDestination`. ghcLinkVersion :: MonadThrow m => ByteString -> m Version ghcLinkVersion = either (throwM . ParseError) pure . parseOnly parser where - parser = string [s|../ghc/|] *> verParser <* string [s|/bin/ghc|] + parser = string "../ghc/" *> verParser <* string "/bin/ghc" verParser = many1' (notWord8 _slash) >>= \t -> case version $ E.decodeUtf8 $ B.pack t of Left e -> fail $ show e @@ -90,7 +92,7 @@ rmMinorSymlinks ver = do bindir <- liftIO $ ghcupBinDir files <- liftIO $ getDirsFiles' bindir let myfiles = - filter (\x -> ([s|-|] <> verToBS ver) `B.isSuffixOf` toFilePath x) files + filter (\x -> ("-" <> verToBS ver) `B.isSuffixOf` toFilePath x) files forM_ myfiles $ \f -> do let fullF = (bindir f) $(logDebug) [i|rm -f #{toFilePath fullF}|] @@ -117,12 +119,12 @@ rmPlain ver = do rmMajorSymlinks :: (MonadLogger m, MonadIO m) => Version -> m () rmMajorSymlinks ver = do (mj, mi) <- liftIO $ getGHCMajor ver - let v' = E.encodeUtf8 $ intToText mj <> [s|.|] <> intToText mi + let v' = E.encodeUtf8 $ intToText mj <> "." <> intToText mi bindir <- liftIO ghcupBinDir files <- liftIO $ getDirsFiles' bindir - let myfiles = filter (\x -> ([s|-|] <> v') `B.isSuffixOf` toFilePath x) files + let myfiles = filter (\x -> ("-" <> v') `B.isSuffixOf` toFilePath x) files forM_ myfiles $ \f -> do let fullF = (bindir f) $(logDebug) [i|rm -f #{toFilePath fullF}|] @@ -173,7 +175,7 @@ cabalInstalled ver = do cabalSet :: (MonadIO m, MonadThrow m) => m Version cabalSet = do cabalbin <- ( [rel|cabal|]) <$> liftIO ghcupBinDir - mc <- liftIO $ executeOut cabalbin [[s|--numeric-version|]] Nothing + mc <- liftIO $ executeOut cabalbin ["--numeric-version"] Nothing let reportedVer = fst . B.spanEnd (== _lf) . _stdOut $ mc case version (E.decodeUtf8 reportedVer) of Left e -> throwM e @@ -235,15 +237,15 @@ unpackToDir dest av = do -- extract, depending on file extension if - | [s|.tar.gz|] `B.isSuffixOf` fn -> liftIO + | ".tar.gz" `B.isSuffixOf` fn -> liftIO (untar . GZip.decompress =<< readFile av) - | [s|.tar.xz|] `B.isSuffixOf` fn -> do + | ".tar.xz" `B.isSuffixOf` fn -> do filecontents <- liftIO $ readFile av let decompressed = Lzma.decompress filecontents liftIO $ untar decompressed - | [s|.tar.bz2|] `B.isSuffixOf` fn -> liftIO + | ".tar.bz2" `B.isSuffixOf` fn -> liftIO (untar . BZip.decompress =<< readFile av) - | [s|.tar|] `B.isSuffixOf` fn -> liftIO (untar =<< readFile av) + | ".tar" `B.isSuffixOf` fn -> liftIO (untar =<< readFile av) | otherwise -> throwE $ UnknownArchive fn @@ -313,7 +315,7 @@ ghcToolFiles ver = do -- figure out the suffix, because this might not be `Version` for -- alpha/rc releases, but x.y.a.somedate. (Just symver) <- - (B.stripPrefix [s|ghc-|] . takeFileName) + (B.stripPrefix "ghc-" . takeFileName) <$> (liftIO $ readSymbolicLink $ toFilePath (bindir [rel|ghc|])) when (B.null symver) (throwIO $ userError $ "Fatal: ghc symlink target is broken") @@ -332,5 +334,5 @@ make :: [ByteString] -> Maybe (Path Abs) -> IO (Either ProcessError ()) make args workdir = do spaths <- catMaybes . fmap parseAbs <$> getSearchPath has_gmake <- isJust <$> searchPath spaths [rel|gmake|] - let mymake = if has_gmake then [s|gmake|] else [s|make|] + let mymake = if has_gmake then "gmake" else "make" execLogged mymake True args [rel|ghc-make.log|] workdir Nothing diff --git a/lib/GHCup/Utils/Dirs.hs b/lib/GHCup/Utils/Dirs.hs index 2d7c097..8f7f83b 100644 --- a/lib/GHCup/Utils/Dirs.hs +++ b/lib/GHCup/Utils/Dirs.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module GHCup.Utils.Dirs where @@ -5,7 +6,6 @@ module GHCup.Utils.Dirs where import GHCup.Types.JSON ( ) import GHCup.Utils.Prelude -import GHCup.Utils.String.QQ import Control.Applicative import Control.Exception.Safe @@ -39,7 +39,7 @@ import qualified System.Posix.User as PU ghcupBaseDir :: IO (Path Abs) ghcupBaseDir = do - getEnv [s|GHCUP_INSTALL_BASE_PREFIX|] >>= \case + getEnv "GHCUP_INSTALL_BASE_PREFIX" >>= \case Just r -> parseAbs r Nothing -> do home <- liftIO getHomeDirectory @@ -67,8 +67,8 @@ ghcupLogsDir = ghcupBaseDir <&> ( [rel|logs|]) mkGhcupTmpDir :: (MonadThrow m, MonadIO m) => m (Path Abs) mkGhcupTmpDir = do - tmpdir <- liftIO $ getEnvDefault [s|TMPDIR|] [s|/tmp|] - tmp <- liftIO $ mkdtemp $ (tmpdir FP. [s|ghcup-|]) + tmpdir <- liftIO $ getEnvDefault "TMPDIR" "/tmp" + tmp <- liftIO $ mkdtemp $ (tmpdir FP. "ghcup-") parseAbs tmp @@ -83,7 +83,7 @@ withGHCupTmpDir = snd <$> allocate mkGhcupTmpDir deleteDirRecursive getHomeDirectory :: IO (Path Abs) getHomeDirectory = do - e <- getEnv [s|HOME|] + e <- getEnv "HOME" case e of Just fp -> parseAbs fp Nothing -> do