Implicit parameters in NHC98 ?



About this list Date view Thread view Subject view Author view

José Romildo Malaquias (romildo@urano.iceb.ufop.br)
Tue, 7 Nov 2000 11:47:32 -0200


Hello. I am developing an application in Haskell98 plus some extensions and I would like to have it compiled by as many Haskell implementations as possible. It is a Computer Algebra system for manipulating symbolic expressions. The program is based heavily on passing an environment around function calls. Also operations like adition and multiplication should be bound to infix identifiers (+ and * in this case). So I cannot add a third argument (for the environment) to them. So the enviroment is passed as an implicit argument (it is like a dynamic scoped variable), using the implicit parameters extension found in GHC 4.08.1 and also in Hugs. Is there any chance to have implicit parameters also implemented in NHC98? For more information on implicit parameters, see http://www.cse.ogi.edu/~jlewis/implicit.pdf.gz Regards, Romildo -- Prof. José Romildo Malaquias <romildo@iceb.ufop.br> Departamento de Computação Universidade Federal de Ouro Preto Brasil


About this list Date view Thread view Subject view Author view