haskell: update to 9.0.1 (#2790)

* haskell: update to 8.10.3

* feat: switch to GitHub checkver

* haskell: update to 8.10.7

* fix: support updating to v9
This commit is contained in:
Pratik Chowdhury 2021-10-23 10:25:26 +05:30 committed by GitHub
parent 716b9eb38a
commit 4e4de3e575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{ {
"version": "8.6.5", "version": "9.0.1",
"description": "An advanced, purely functional programming language.", "description": "An advanced, purely functional programming language.",
"homepage": "https://www.haskell.org", "homepage": "https://www.haskell.org",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
@ -12,18 +12,11 @@
}, },
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://haskell.org/platform/download/8.6.5/HaskellPlatform-8.6.5-core-x86_64-setup.exe#/dl.7z", "url": "https://github.com/commercialhaskell/ghc/releases/download/ghc-9.0.1-release/ghc-9.0.1-x86_64-unknown-mingw32.tar.xz",
"hash": "b557748749f6c4073885ecdf43f7cd5d4d8c8f90712665943a1d265d78bb38c6", "hash": "4f4ab118df01cbc7e7c510096deca0cb25025339a97730de0466416296202493",
"extract_dir": "$_14_" "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": [
"bin\\ghc.exe", "bin\\ghc.exe",
"bin\\ghci.exe", "bin\\ghci.exe",
@ -32,28 +25,19 @@
"bin\\hp2ps.exe", "bin\\hp2ps.exe",
"bin\\hpc.exe", "bin\\hpc.exe",
"bin\\hsc2hs.exe", "bin\\hsc2hs.exe",
"bin\\runghc.exe", "bin\\runghc.exe"
"bin\\runhaskell.exe"
], ],
"shortcuts": [ "env_add_path": "lib\\bin",
[
"winghci\\winghci.exe",
"WinGHCi"
]
],
"env_add_path": "lib\\extralibs\\bin",
"checkver": { "checkver": {
"url": "https://www.haskell.org/platform/windows.html", "url": "https://api.github.com/repos/commercialhaskell/ghc/tags",
"regex": "<strong>([\\d.]+)</strong>" "jsonpath": "$.name",
"regex": "ghc-([\\d\\.]+)-release"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://haskell.org/platform/download/$version/HaskellPlatform-$version-core-x86_64-setup.exe#/dl.7z", "url": "https://github.com/commercialhaskell/ghc/releases/download/ghc-$version-release/ghc-$version-x86_64-unknown-mingw32.tar.xz",
"hash": { "extract_dir": "ghc-$version-x86_64-unknown-mingw32"
"url": "https://www.haskell.org/platform/windows.html",
"regex": ">$sha256<"
}
} }
} }
} }