mirror of
https://github.com/robonen/fp-haskell.git
synced 2026-03-20 02:44:41 +00:00
Initial commit
This commit is contained in:
18
repl.sh
Executable file
18
repl.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PROG_NAME=$1
|
||||
|
||||
if [ -z "$PROG_NAME" ]; then
|
||||
echo "Usage: run.sh <program name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Source and build paths
|
||||
SRC_PATH=src/$PROG_NAME/$PROG_NAME.hs
|
||||
|
||||
if [ ! -f $SRC_PATH ]; then
|
||||
echo "File $SRC_PATH does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ghci $SRC_PATH
|
||||
Reference in New Issue
Block a user