2 ms·
The REPL is not identical to the compiler. This means that you can't trust the REPL. Coming from Python and Lisp, that is a pain. I can't agree more. This is
by j_baker 15y ago
The REPL is not identical to the compiler. This means that you can't trust the REPL. Coming from Python and Lisp, that is a pain.
I can't agree more. This is by far my biggest issue with Haskell. It would be so much easier to learn the language if you didn't have to learn the REPL separately from the language proper.
- carterschonwald 15y agoThis problem with the repl is actually going to disappear in the next ghc release (7.4.*). In particular, as of that ghc release you'll be able to interactively define types and functions (both!) in the repl.
- mietek 15y agoHelp is on the way. Support for accepting all top-level declarations in GHCi has been recently added to GHC HEAD: http://www.reddit.com/r/haskell/comments/kmxf2/ghci_now_supports_all_toplevel_declarations/ http://www.reddit.com/r/haskell/comments/kmxf2/ghci_now_supp...