[Haskell-cafe] GHCi: how to load another file than .ghci ?
a.pelenitsyn at gmail.com
Wed Jun 20 13:21:16 UTC 2018
You can supply arguments for commands run by stack like this: stack exec
CMD -- ARGS
In your case the argument you're interested in is -ghci-script. So the
stack exec ghci -- -ghci-script path/to/somefile.txt
Best wishes, Artem
On Wed, 20 Jun 2018 at 14:44 PY <aquagnu at gmail.com> wrote:
> Hello, Cafe! If I have typical .ghci file, but it's called somefile.txt,
> how to call "stack exec ghci" to load and exec this "somefile.txt" (as
> it does with ".ghci" usual)?
> Best regards, Paul
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe