piston/packages/haskell/9.0.1/compile

7 lines
133 B
Bash

#!/usr/bin/env bash
# Compile haskell file(s)
rename 's/$/\.hs/' "$@" # Add .hs extension
ghc -dynamic -v0 -o out *.hs
chmod +x out