haskell extension

This commit is contained in:
Thomas Hobson 2021-04-24 20:09:33 +12:00
parent ceb902349f
commit af91e66d64
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 1 deletions

View File

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