RE: [GHC] #2153: GHCi does not have a :source command to load further .ghci files

| Wow, that simple??? | | What needs to be done to get this in ":?" output? (It should be in the | manual, at least...) Indeed! But it's more application-note than user manual. Fortunately, we have a place for such material, namely GHC's "collaborative documentation" (a wiki) http://haskell.org/haskellwiki/GHC Would someone like to copy Claus's excellent message http://www.haskell.org/pipermail/haskell-cafe/2007-September/032260.html to the Wiki documentation on GHCi, here: http://haskell.org/haskellwiki/GHC/GHCi (with his permission of course). That's the right place for it. Sam, you'd be an ideal person to do this, because you know what you wanted in the first place, so you could make sure the answer is easy to find. But anyone else would do fine! Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@haskell.org [mailto:glasgow-haskell-bugs-bounces@haskell.org] On | Behalf Of GHC | Sent: 07 April 2008 02:46 | Cc: glasgow-haskell-bugs@haskell.org | Subject: Re: [GHC] #2153: GHCi does not have a :source command to load further .ghci files | | #2153: GHCi does not have a :source command to load further .ghci files | ---------------------+------------------------------------------------------ | Reporter: SamB | Owner: | Type: bug | Status: closed | Priority: normal | Milestone: | Component: GHCi | Version: 6.8.2 | Severity: normal | Resolution: wontfix | Keywords: | Difficulty: Unknown | Testcase: | Architecture: Unknown | Os: Unknown | | ---------------------+------------------------------------------------------ | Comment (by SamB): | | Wow, that simple??? | | What needs to be done to get this in ":?" output? (It should be in the | manual, at least...) | | -- | Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2153#comment:3 | GHC http://www.haskell.org/ghc/ | The Glasgow Haskell Compiler

it is actually in the users guide, just not where one would find
it when looking for a way to do this..
http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-commands.html
section 3.7 (GHCi commands), as one of the examples for using ':def'.
perhaps it would help to (-: todo; +: done):
- repeat the ':def :. readFile' example in section 3.9 (The .ghci file),
http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-dot-files.html
where more people are likely to find it. having this
command seems essential for debugging .ghci files
- in section 3.9, add a link to the haskell wiki page, referring to
http://haskell.org/haskellwiki/GHC/GHCi
as "examples of useful .ghci definitions" (that page could
do with some improvements, though)
+ i've added a link to my old tutorial to that haskell wiki page,
feel free to use the text from that message or the .ghci files
- section 3.9 doesn't seem to reflect the current situation
wrt .ghci locations on windows!
i tried at the time to get others to post their .ghci files at well,
and share their favourite tricks, but there weren't many responses.
hth,
claus
----- Original Message -----
From: "Simon Peyton-Jones"
| Wow, that simple??? | | What needs to be done to get this in ":?" output? (It should be in the | manual, at least...)
Indeed! But it's more application-note than user manual. Fortunately, we have a place for such material, namely GHC's "collaborative documentation" (a wiki) http://haskell.org/haskellwiki/GHC
Would someone like to copy Claus's excellent message http://www.haskell.org/pipermail/haskell-cafe/2007-September/032260.html to the Wiki documentation on GHCi, here: http://haskell.org/haskellwiki/GHC/GHCi
(with his permission of course). That's the right place for it. Sam, you'd be an ideal person to do this, because you know what you wanted in the first place, so you could make sure the answer is easy to find. But anyone else would do fine!
Simon
| -----Original Message----- | From: glasgow-haskell-bugs-bounces@haskell.org [mailto:glasgow-haskell-bugs-bounces@haskell.org] On | Behalf Of GHC | Sent: 07 April 2008 02:46 | Cc: glasgow-haskell-bugs@haskell.org | Subject: Re: [GHC] #2153: GHCi does not have a :source command to load further .ghci files | | #2153: GHCi does not have a :source command to load further .ghci files | ---------------------+------------------------------------------------------ | Reporter: SamB | Owner: | Type: bug | Status: closed | Priority: normal | Milestone: | Component: GHCi | Version: 6.8.2 | Severity: normal | Resolution: wontfix | Keywords: | Difficulty: Unknown | Testcase: | Architecture: Unknown | Os: Unknown | | ---------------------+------------------------------------------------------ | Comment (by SamB): | | Wow, that simple??? | | What needs to be done to get this in ":?" output? (It should be in the | manual, at least...) | | -- | Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2153#comment:3 | GHC http://www.haskell.org/ghc/ | The Glasgow Haskell Compiler
--------------------------------------------------------------------------------
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Claus Reinke wrote:
i tried at the time to get others to post their .ghci files at well, and share their favourite tricks, but there weren't many responses.
OK, OK. I just posted "Customized GHCi interactive environments" to wiki. It's a simple but very powerful trick that I use all the time. I hope others will also post their favorites. -Yitz
participants (3)
-
Claus Reinke
-
Simon Peyton-Jones
-
Yitzchak Gale