Mercurial > repo
view interps/ghc/runghc @ 4878:5adb9116fb45
<mroman_> fetch http://codepad.org/PW0O3FBY/raw.txt
author | HackBot |
---|---|
date | Fri, 26 Sep 2014 13:27:10 +0000 |
parents | 859f9b4339e6 |
children |
line wrap: on
line source
#!/bin/bash src=$(cat $1) if ! ghc -e "$src" 2> /dev/null then /opt/ghc/bin/runhaskell <<< $src fi