[Haskell-cafe] EnableGUI hack changes working directory
Yitzchak Gale
gale at sefer.org
Tue Oct 9 06:46:58 EDT 2007
apfelmus wrote:
> Is there a way to automate ghci ... EnableGUI -framework Carbon and
> typing enableGUI at the first prompt?
I have the following in my .ghci file:
-- Read GHCI commands from the file whose name is
-- in the GHCIRC environment variable
:def _load const(System.Environment.getEnvironment>>=maybe(return"")readFile.lookup"GHCIRC")
:_load
:undef _load
That allows me to easily define shell commands that
open all kinds of specialized GHCi environments.
Hope this helps,
Yitz
More information about the Haskell-Cafe
mailing list