
13 Jan
2010
13 Jan
'10
4:25 p.m.
On Wed, 6 Jan 2010, Gwern Branwen wrote:
On Wed, Jan 6, 2010 at 7:23 PM, Tony Morris
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.