view interps/ghc/runghc @ 12523:67a2e5342dad draft default tip

<b_jonas> learn The password of the month is outside the scope of this wisdom entry.
author HackEso <hackeso@esolangs.org>
date Tue, 01 Apr 2025 08:17:53 +0100
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