Merge pull request #158 from dvargas46/v3-add-haskell

pkg(haskell-9.0.1): Add haskell 9.0.1
This commit is contained in:
Thomas 2021-03-18 13:10:58 +13:00 committed by GitHub
commit bcbdda6f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 0 deletions

19
packages/haskell/9.0.1/build.sh vendored Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
# Platform specific because a true source compile would require GHC to be installed already on the latest
curl -L "https://downloads.haskell.org/~ghc/9.0.1/ghc-9.0.1-x86_64-deb10-linux.tar.xz" -o ghc.tar.xz
tar xf ghc.tar.xz --strip-components=1
rm ghc.tar.xz
./configure --prefix="$PREFIX"
make install -j$(nproc)
cd ../
rm -rf build

5
packages/haskell/9.0.1/compile vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Compile haskell file(s)
ghc -dynamic -v0 -o out "$@"
chmod +x out

1
packages/haskell/9.0.1/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

6
packages/haskell/9.0.1/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "haskell",
"version": "9.0.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["haskell", "hs"]
}

4
packages/haskell/9.0.1/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
shift # Filename is only used to compile
./out "$@"

1
packages/haskell/9.0.1/test.hs vendored Normal file
View File

@ -0,0 +1 @@
main = putStrLn "OK"