view interps/ghc/runghc @ 7680:a98ce9b46301

<hppavilion[1]> mk jnk/\xf0\x9f\x90\x9a//(1+sqrt(5))/2 hth
author HackBot
date Tue, 03 May 2016 00:58:52 +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