Skip to content

Commit b0ab441

Browse files
author
Yogansh Sharma
committed
Adding haskell support
1 parent e1a2efe commit b0ab441

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

run

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ run() {
213213
elif [[ ${FILE#*.} == rb ]]; then
214214
ruby "$FILE"
215215

216+
elif [[ ${FILE#*.} == hs ]]; then
217+
runghc "$FILE"
218+
216219
else
217220
_ERROR_UFTC_
218221
_EXIT_
@@ -244,10 +247,11 @@ for arg in "$@"; do
244247
echo " ${yellow}>>${white} Perl"
245248
echo " ${yellow}>>${white} Lua"
246249
echo " ${yellow}>>${white} Ruby"
250+
echo " ${yellow}>>${white} Haskell"
247251
echo
248252
;;
249253

250-
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go" | *".pl" | *".lua" | *".rb")
254+
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go" | *".pl" | *".lua" | *".rb" | *".hs")
251255
FILE_LOCATION=$arg
252256
if [[ ! -f $FILE_LOCATION ]]; then
253257
_ERROR_UFTC_

0 commit comments

Comments
 (0)