re-fix of #1205, fix #2542
authorSimon Marlow <marlowsd@gmail.com>
Wed, 27 Aug 2008 10:24:14 +0000 (10:24 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 27 Aug 2008 10:24:14 +0000 (10:24 +0000)
commit3d73e45b0909b9669d4679cbda29fa2b17b98d2e
tree150276c4716f579ea87d7319d0bcf1a073867453
parent50c50170891e91e1961ef67e2677e61c4d8f76e2
re-fix of #1205, fix #2542
New form of :load in GHCi:

> :load *A

forces A to be loaded as byte-code.  See the manual for details.  The
previous behaviour for specifying filenames vs. module names on the
command line and in :load has been restored.

The Target datatype has a new Bool field, which is True if the target
is allowed to be loaded from compiled code, or False otherwise, so
this functionality is available via the GHC API.  guessTarget
understands the *-prefix form for specifying targets.
compiler/ghci/InteractiveUI.hs
compiler/main/GHC.hs
compiler/main/HscTypes.lhs
docs/users_guide/ghci.xml