diff --git a/packages/husk/1.0.0/build.sh b/packages/husk/1.0.0/build.sh new file mode 100644 index 0000000..e2ee19c --- /dev/null +++ b/packages/husk/1.0.0/build.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +cp ../../haskell/9.0.1/build.sh ./haskell-build.sh +sed -Ei 's/9\.0\.1/8\.10\.7/g' ./haskell-build.sh +source ./haskell-build.sh + +# compile Husk from source +git clone -q "https://github.com/barbuz/husk.git" +cd husk +../bin/ghc -O2 Husk + +# cleanup +cd .. +rm -f haskell-build.sh \ No newline at end of file diff --git a/packages/husk/1.0.0/environment b/packages/husk/1.0.0/environment new file mode 100644 index 0000000..8b8421d --- /dev/null +++ b/packages/husk/1.0.0/environment @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# haskell and husk path +export PATH=$PWD/bin:$PATH +export HUSK_PATH=$PWD/husk +export LANG=en_US.UTF8 diff --git a/packages/husk/1.0.0/metadata.json b/packages/husk/1.0.0/metadata.json new file mode 100644 index 0000000..69c5b7e --- /dev/null +++ b/packages/husk/1.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "husk", + "version": "1.0.0", + "aliases": [] +} diff --git a/packages/husk/1.0.0/run b/packages/husk/1.0.0/run new file mode 100644 index 0000000..1fa65a0 --- /dev/null +++ b/packages/husk/1.0.0/run @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Store the current path because we'll need it to run the program file +PROGRAM_PATH=$PWD + +# For now, Husk can only be run within the folder that has the imported modules +cd $HUSK_PATH + +# Run Husk from file in unicode format with the given args +./Husk -uf "${PROGRAM_PATH}/${@}" \ No newline at end of file diff --git a/packages/husk/1.0.0/test.husk b/packages/husk/1.0.0/test.husk new file mode 100644 index 0000000..d096585 --- /dev/null +++ b/packages/husk/1.0.0/test.husk @@ -0,0 +1 @@ +"OK \ No newline at end of file diff --git a/readme.md b/readme.md index c64815a..b215138 100644 --- a/readme.md +++ b/readme.md @@ -348,6 +348,7 @@ Content-Type: application/json `golfscript`, `groovy`, `haskell`, +`husk`, `iverilog`, `japt`, `java`,