Is there a quick-starting Haskell interpreter suitable for scripting?

前端 未结 5 1263
生来不讨喜
生来不讨喜 2021-02-01 06:49

Does anyone know of a quick-starting Haskell interpreter that would be suitable for use in writing shell scripts? Running \'hello world\' using Hugs took 400ms on my old laptop

5条回答
  •  别那么骄傲
    2021-02-01 07:29

    If you are really concerned with speed you are going to be hampered by re-parsing the code for every launch. Haskell doesn't need to be run from an interpreter, compile it with GHC and you should get excellent performance.

提交回复
热议问题