Answering my own question:
GHC_ENVIRONMENTis set to a temp file containing a GHC environment with all the project dependencies.
what about setup dependencies? I need to check.They are not included.- The path to all exes in the plan in added to
PATH.