X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=docs%2Fusers_guide%2Fghci.xml;h=e0ea3aff7d6d32abfa5bccc1e7b6db0da93b3204;hp=35aa7cd279e4cf48400447b93c1425946f8f5c92;hb=92049cd60bd98e7803ea5c46150d80376d296557;hpb=579bc757533c8c9e5beabe5b21daddd922c1af75 diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index 35aa7cd..e0ea3af 100644 --- a/docs/users_guide/ghci.xml +++ b/docs/users_guide/ghci.xml @@ -2667,6 +2667,22 @@ Prelude> :set -fno-glasgow-exts :set like this. The changes won't take effect until the next :load, though.) + Once you have a library of GHCi macros, you may want + to source them from separate files, or you may want to source + your .ghci file into your running GHCi + session while debugging it + + +:def source readFile + + + With this macro defined in your .ghci + file, you can use :source file to read GHCi + commands from file. You can find (and contribute!-) + other suggestions for .ghci files on this Haskell + wiki page: GHC/GHCi + Two command-line options control whether the startup files files are read: