hot-refreshing a package (same version number, new content)
Albert Y. C. Lai
trebla at vex.net
Thu Jul 15 18:41:09 EDT 2010
Suppose I start ghci, use a value from a package, causing it to be
linked, then I modify the package and reinstall, same version number,
without quitting my ghci session. Is there a way to tell the ghci
session to refresh and use the modified package?
Suppose I do something similar with the GHC API (6.12.3, linux, x86, 32
bit). The attachment g.hs is my program to get a value from the package
(called watermelon-0.1), print it, wait for me to press return, (at this
point I modify the source code of the package, rebuild, reinstall), then
loop back to get a value from the package again... how should I refresh
so I get the new value?
Or I am supposed to forget this and just bump the version number of the
package?
I attach my program g.hs and the package tarball for watermelon-0.1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g.hs
Type: text/x-haskell
Size: 1642 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20100715/89475614/g.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watermelon-0.1.tar.gz
Type: application/x-gzip
Size: 343 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20100715/89475614/watermelon-0.1.tar.gz
More information about the Glasgow-haskell-users
mailing list