I\'ve been told you can interpret Haskell files (which I assume means they will work like Ruby/Python/Perl). I can\'t find the command line option on GHC to do this, though.
Open the GHC interpreter by running ghci in a terminal, and then load a file typing :load example.hs. More details in this link.
ghci
:load example.hs