Change 'loadWithCompiler' callback argument to just print warnings.
authorThomas Schilling <nominolo@googlemail.com>
Wed, 17 Sep 2008 10:29:25 +0000 (10:29 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Wed, 17 Sep 2008 10:29:25 +0000 (10:29 +0000)
commit6091f224f4f0a2921ca62739b3c6c5540d27269c
treeb951626e4fcdb4591b4c84a3ca0b579bc62bcf16
parent8e39f6aaf6b194efcdef989a90498b22f09cf424
Change 'loadWithCompiler' callback argument to just print warnings.
Rename function accordingly.

The callback wasn't very flexible to begin with.  There's pretty much
no way around to calling 'compile' inside that callback since
'upsweep' depends on certain side effects of compile.  It therefore
makes more sense to restrict the callback to its intended use only,
namely to log warnings and errors.
compiler/main/GHC.hs