view interps/ghc/runghc @ 7790:4657e59512c4

<hppavilion[1]> mkx bin/blame//echo It was tswett\'s fault! Punish them!
author HackBot
date Fri, 06 May 2016 00:22:42 +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