Ghc: partially compile Haskell code?

后端 未结 1 1192
野趣味
野趣味 2020-12-31 04:02

When I compile a Haskell file with ghci, typically with :load, and if there is no type error, all the expressions are loaded in the ghc interpreter

相关标签:
1条回答
  • 2020-12-31 04:39

    As @MikhailGlushenkov pointed out in the comments, the solution is to use the -fdefer-type-errors flag to GHCi.

    0 讨论(0)
提交回复
热议问题