[Haskell-cafe] Applying different functions to different types for lists

2009-07-16 Thread Szekeres István
Hi, I want to build a framework to apply different functions to different types of lists and I want to generalize the solution as much as possible but my Haskell knowledge is not really enough to do this (I'm a haskell novice). The problem has two dimensions: 1. Lets say I have two functions:

Re: [Haskell-cafe] Applying different functions to different types for lists

2009-07-16 Thread Ryan Ingram
2009/7/16 Szekeres István szeke...@iii.hu: class ListUpdater a where     updateFn :: Char - Char     update :: a - a so I can define the update function for the different types of lists: instance ListUpdater String where     update = map updateFn instance ListUpdater L.ByteString where