
25 Jan
2022
25 Jan
'22
2:15 p.m.
My recommendation: ./hadrian/ghci. The first time you run it, it may spin for a little while, but it will eventually deliver you to a GHCi prompt, with all of GHC loaded. (You can e.g. `:type splitTyConApp_maybe`, after `import GHC.Core.Type`.) At that point, :reload will be your dear friend. That's what I do when I'm doing e.g. module reorganization and care much more about "does it compile" than "does it work".
Cool! Supposing I wanted to run just a little code that uses the GHC API. Would there be a way to load the Prelude and similar things into that GHCi, so it could know about Bool and IO and such things? Norman