piston/packages/haskell/9.0.1/compile

7 lines
133 B
Plaintext
Raw Permalink Normal View History

2021-03-17 18:35:16 +01:00
#!/usr/bin/env bash
# Compile haskell file(s)
2021-04-24 10:09:33 +02:00
rename 's/$/\.hs/' "$@" # Add .hs extension
ghc -dynamic -v0 -o out *.hs
2021-03-17 18:35:16 +01:00
chmod +x out