[Haskell-cafe] ghci, running :load on filename provided by variable

Evan Laforge qdunkan at gmail.com
Sat Feb 4 20:51:49 UTC 2017


Check out the :def command.

On Jan 24, 2017 2:34 PM, "Dennis Raddle" <dennis.raddle at gmail.com> wrote:

> How do I load a file in ghci where the filename comes from a variable?
>
> So like,
> let f = "myfile.hs"
> :load f
>
> D
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170204/b01bb15b/attachment.html>


More information about the Haskell-Cafe mailing list