Why cabal repl
can play faster than cabal run
#9517
-
Or for a short: What things that I'm writing a Haskell programmer with That made me confused:Why I'm sorry it looks like a stupid question.But I'm really wonder the reason behind it.It smells so interesting. I'd appriciate if someone can give me any answer or reference. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
For the same reason GHCi is faster to load a file than GHC to compile it: GHC's native backend is slow, but GHCi doesn't use the backend, it compiles to high-level bytecode (which it can interpret later on) rather than a native executable. |
Beta Was this translation helpful? Give feedback.
@WendaoLee it's all right. The thing is, you asked essentially a GHC question on a Cabal forum. You may have a better luck asking it on a GHC forum. For example, in the ghc-devs mailing list.