[Haskell-cafe] Re: How to simplify this code?

2009-01-15 Thread eyal.lo...@gmail.com
Very nice series of refactorings! I'd like to add that it might be a better argument order to replace: JSON a => MyData -> String -> a -> MyData with: JSON a => String -> a -> MyData -> MyData Just so you can get a (MyData -> MyData) transformer, which is often useful. Eyal On Jan 16, 1:52 a

Re: [Haskell-cafe] Re: How to simplify this code?

2009-01-16 Thread Thomas Davie
On 16 Jan 2009, at 02:30, eyal.lo...@gmail.com wrote: Very nice series of refactorings! I'd like to add that it might be a better argument order to replace: JSON a => MyData -> String -> a -> MyData with: JSON a => String -> a -> MyData -> MyData Just so you can get a (MyData -> MyData) tr