On Wed, 6 Jan 2010, Gwern Branwen wrote:

On Wed, Jan 6, 2010 at 7:23 PM, Tony Morris <[email protected]> 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.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to