Re: [Haskell-cafe] Deriving with generics without values

2013-07-14 Thread Roman Cheplyaka
Hi, (Redirecting this back to cafe to keep it discoverable — hope you don't mind.) * JP Moresmau [2013-07-14 16:02:56+0200] > Hello, sorry to bother you after you've been kind enough to answer me on > the list! I've looked a the smallcheck code but I don't see how to apply it > to my issue. Firs

Re: [Haskell-cafe] Deriving with generics without values

2013-07-14 Thread Roman Cheplyaka
Forgot to mention — a good explanation of GHC Generics is the paper "A Generic Deriving Mechanism for Haskell". Roman * Roman Cheplyaka [2013-07-14 18:21:58+0300] > Hi, > > (Redirecting this back to cafe to keep it discoverable — hope you don't > mind.) > > * JP Moresmau [2013-07-14 16:02:56+

Re: [Haskell-cafe] Deriving with generics without values

2013-07-12 Thread JP Moresmau
Yes, this looks like a similar task, thanks a million! JP On Fri, Jul 12, 2013 at 10:57 AM, Roman Cheplyaka wrote: > Well, in your case, you need not 'from', but 'to', in order to convert > from a generic representation to yours. > > Take a look at how a similar task is done in SmallCheck: > >

Re: [Haskell-cafe] Deriving with generics without values

2013-07-12 Thread Roman Cheplyaka
Well, in your case, you need not 'from', but 'to', in order to convert from a generic representation to yours. Take a look at how a similar task is done in SmallCheck: https://github.com/feuerbach/smallcheck/blob/master/Test/SmallCheck/Series.hs#L180 https://github.com/feuerbach/smallcheck/blob/ma