[Haskell-cafe] ghc -e
Henning Thielemann
lemming at henning-thielemann.de
Wed Jan 13 16:25:32 EST 2010
On Wed, 6 Jan 2010, Gwern Branwen wrote:
> On Wed, Jan 6, 2010 at 7:23 PM, Tony Morris <tonymorris at gmail.com> wrote:
>> ghc -e "import Control.Monad; forM [[1,2,3]] reverse"
>
> As of 6.10.2, the bug whereby the GHC API lets you use functions from
> anywhere just by naming them (Java-style) has not been fixed:
>
> $ ghc -e "Control.Monad.forM [[1,2,3]] reverse"
> package flags have changed, resetting and loading new packages...
Why is this a bug? This is the intended behaviour in GHCi and you can
include and exclude packages with -package and -hide-package options,
respectively.
More information about the Haskell-Cafe
mailing list