This commit is contained in:
2025-09-18 11:35:56 +02:00
commit 2203d6075f
45 changed files with 935 additions and 0 deletions

13
shell/ghci_wrapper.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Set the directory path
dir_path="app/"
# Check if the directory exists and contains at least one .hs file
if [ -d "$dir_path" ] && [ "$(ls -A $dir_path/*.hs 2>/dev/null)" ]; then
# If the directory exists and contains .hs files, execute ghci with them
ghci "$dir_path"*.hs
else
# If the directory doesn't exist or doesn't contain .hs files, execute ghci without them
ghci
fi