 
            
            
            
            
                27 Dec
                
                    2010
                
            
            
                27 Dec
                
                '10
                
            
            
            
        
    
                6:55 a.m.
            
        2010/12/27 Henning Thielemann 
Or look into package 'encoding'. It uses TemplateHaskell in order to convert Text descriptions of character sets into Haskell tables. I think the character tables could be simply rewritten to Haskell syntax, or they could be parsed by a function, where the parsed content is unfolded at compile time. It could even be computed at runtime, since it is only computed once because of laziness.
http://hackage.haskell.org/package/zeroth ? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com