How to run a Haskell file in interpreted mode

前端 未结 4 1497
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 14:23

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.

4条回答
  •  失恋的感觉
    2020-12-04 14:50

    Open the GHC interpreter by running ghci in a terminal, and then load a file typing :load example.hs. More details in this link.

提交回复
热议问题