Derived instances

2007-08-31 Thread Fernand
Hi, I have just discovered Generics in Haskell and, writing some code with GHC, I wondered about the portability of my code. It is possible I overlooked something in the GHC documentation but I did not found a way to obtain, let say, the haskell code for the derived classes. I mean, having

Re: Derived instances

2007-08-31 Thread Neil Mitchell
Hi I have just discovered Generics in Haskell and, writing some code with GHC, I wondered about the portability of my code. If you use Data.Generics, your code is not portable - no other Haskell implementation supports the necessary bits. I can use the -fgenerics to automatically derive

Re: Derived instances

2007-08-31 Thread Fernand
Neil Mitchell a écrit : Use Derive, which does support Generics: http://www-users.cs.york.ac.uk/~ndm/derive/ If you care about portability, and are not using some of the more advanced features of Generics, then you might want to take a look at Uniplate:

Re: :def and ghci command output

2007-08-31 Thread Claus Reinke
i'd like to run a ghci command, and capture its ouput as a haskell String, eg, to pass it on to another ghci command, or to a haskell function. It would be possible, but needs a bit of refactoring because all the output is currently just sent to stdout. I'd go with something like your second

Re: Type Synonyms and termination checking

2007-08-31 Thread Lennart Augustsson
Look at the end of http://haskell.org/haskellwiki/GHC/Indexed_types -- Lennart On 8/31/07, Jim Apple [EMAIL PROTECTED] wrote: Regarding http://www.haskell.org/pipermail/cvs-ghc/2007-August/037655.html and Are type functions checked for termination? If so, where can I find the details?