mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
pkg(haskell-9.0.1): Add haskell 9.0.1
This commit is contained in:
parent
cb5ad603d0
commit
fdf236a789
6 changed files with 36 additions and 0 deletions
19
packages/haskell/9.0.1/build.sh
vendored
Executable file
19
packages/haskell/9.0.1/build.sh
vendored
Executable 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
5
packages/haskell/9.0.1/compile
vendored
Normal 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
1
packages/haskell/9.0.1/environment
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/bin:$PATH
|
6
packages/haskell/9.0.1/metadata.json
vendored
Normal file
6
packages/haskell/9.0.1/metadata.json
vendored
Normal 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
4
packages/haskell/9.0.1/run
vendored
Normal 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
1
packages/haskell/9.0.1/test.hs
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
main = putStrLn "OK"
|
Loading…
Add table
Add a link
Reference in a new issue