| Hackage makes it hard to format examples, so we put this information
| in the Readme. Please look there, and let us know what you think is
| missing.
I did look! What I think would be helpful would be an example of use.
| > I believe this is already available, simply by putting stuff in your .ghci
file.
| Possibly. Which command allows one to set a pragma? I couldn't spot
:set -XScopedTypeVariables
for example.
| > What GHCi does is to compile (show it), where 'it' is the value just
computed. So
| what you want is to be able to say "use the 'show' from my library, rather
than using
| GHC.Show.show". Right?
|
| Close. It may be that the programmer wants both show and the pretty
| printing version (we call this 'pretty') in scope at the same time, so
| perhaps two names are in order. It may also be in order to change
| types: really one wants to provide a document, which is then rendered
| in a specified default style.
I'm not getting this. Perhaps the best thing is for you to propose a design.
(For the user interaction, not for the impl.)
| Sorry, I don't see how this helps. I want this to work for all data
| types, not just types defined via newtype, and I don't believe
| standalone deriving supports that.
Again, maybe the easiest thing is to specify precisely what you want, since I'm
misunderstanding.
| (Also, did you mean to say
| 'deriving instance' above? I can't find 'deriving' on its own.)
Yes, I did, sorry.
S
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc