| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | # Copyright (c) 2005 Don Stewart - http://www.cse.unsw.edu.au/~dons |
| 4 | # GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html) |
| 5 | |
| 6 | # input is a top level .hs decls |
| 7 | |
| 8 | FILE=$* |
| 9 | DECL=`catscip-shell system . . cat.` |
| 10 | ID=`echoscip-shell system . . echo. $DECL | sedscip-shell system . . sed. 's/^\([^ ]*\).*/\1/'` |
| 11 | echoscip-shell system . . echo. ":t $ID" | ghci -v0 -cpp -fglasgow-exts -w $FILE |
| 12 | echoscip-shell system . . echo. $DECL |