view interps/ghc/runghc @ 2467:646619b8193e

<shachaf> for f in bin/colorise bin/colourize bin/colourise; do ln bin/colorize $f; done
author HackBot
date Tue, 19 Mar 2013 16:41:35 +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