slow load and typecheck

Sam Halliday sam.halliday at gmail.com
Tue Oct 8 14:37:34 UTC 2019


Thanks Brandon,

Brandon Allbery <allbery.b at gmail.com> writes:
> Cabal will build all that stuff the first time and then reuse it the next,
> so it's not quite the same thing. Since you told ghc no object code,

Sorry, I meant that I used targetAllowObjCode=True for everything,
except the file under inspection. Do you mean that if I used
targetAllowObjCode=False for just one module it will invalidate the
object code for everything it depends on? That is unexpected.


> In short, you may want to rethink this; ghc is a compiler, not an IDE, and
> doesn't quite work the way you had hoped.

How would you suggest rethinking it? Bare in mind that the api is
working exactly the way I want from a functional point of view (just
slow) with HscNothing... and seems to work exactly the way I want with
HscInterpreted (but with all the ghci caveats like unboxed tuples etc).

-- 
Best regards,
Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20191008/f3225b25/attachment.sig>


More information about the ghc-devs mailing list