comparison interps/ghc/runghc @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
comparison
equal deleted inserted replaced
995:6883f5911eb7 996:859f9b4339e6
1 #!/bin/bash
2 src=$(cat $1)
3 if ! ghc -e "$src" 2> /dev/null
4 then
5 /opt/ghc/bin/runhaskell <<< $src
6 fi
7