diff --git a/bucket/haskell.json b/bucket/haskell.json index 9d69c043f8..4abe0e1f41 100644 --- a/bucket/haskell.json +++ b/bucket/haskell.json @@ -1,5 +1,5 @@ { - "version": "8.6.5", + "version": "9.0.1", "description": "An advanced, purely functional programming language.", "homepage": "https://www.haskell.org", "license": "BSD-3-Clause", @@ -12,18 +12,11 @@ }, "architecture": { "64bit": { - "url": "https://haskell.org/platform/download/8.6.5/HaskellPlatform-8.6.5-core-x86_64-setup.exe#/dl.7z", - "hash": "b557748749f6c4073885ecdf43f7cd5d4d8c8f90712665943a1d265d78bb38c6", - "extract_dir": "$_14_" + "url": "https://github.com/commercialhaskell/ghc/releases/download/ghc-9.0.1-release/ghc-9.0.1-x86_64-unknown-mingw32.tar.xz", + "hash": "4f4ab118df01cbc7e7c510096deca0cb25025339a97730de0466416296202493", + "extract_dir": "ghc-9.0.1-x86_64-unknown-mingw32" } }, - "installer": { - "script": [ - "Expand-7zipArchive -Path \"$dir\\HaskellPlatform-$version-core-x86_64-setup.exe\" -ExtractDir '$_15_' -Removal", - "Get-ChildItem -Path \"$dir\" -Exclude 'stack*' | Convert-Path | ForEach-Object { Expand-7zipArchive -Path $_ -Removal }", - "Remove-Item -Path \"$dir\\`$PLUGINSDIR\", \"$dir\\*uninstall*\", \"$dir\\stack*\" -Recurse -Force" - ] - }, "bin": [ "bin\\ghc.exe", "bin\\ghci.exe", @@ -32,28 +25,19 @@ "bin\\hp2ps.exe", "bin\\hpc.exe", "bin\\hsc2hs.exe", - "bin\\runghc.exe", - "bin\\runhaskell.exe" + "bin\\runghc.exe" ], - "shortcuts": [ - [ - "winghci\\winghci.exe", - "WinGHCi" - ] - ], - "env_add_path": "lib\\extralibs\\bin", + "env_add_path": "lib\\bin", "checkver": { - "url": "https://www.haskell.org/platform/windows.html", - "regex": "([\\d.]+)" + "url": "https://api.github.com/repos/commercialhaskell/ghc/tags", + "jsonpath": "$.name", + "regex": "ghc-([\\d\\.]+)-release" }, "autoupdate": { "architecture": { "64bit": { - "url": "https://haskell.org/platform/download/$version/HaskellPlatform-$version-core-x86_64-setup.exe#/dl.7z", - "hash": { - "url": "https://www.haskell.org/platform/windows.html", - "regex": ">$sha256<" - } + "url": "https://github.com/commercialhaskell/ghc/releases/download/ghc-$version-release/ghc-$version-x86_64-unknown-mingw32.tar.xz", + "extract_dir": "ghc-$version-x86_64-unknown-mingw32" } } }