Classes de tipos com múltiplos parâmetros e opcionais em haskell

The introduction of multi-parameter type classes in Haskell has beenhindered because of problems associated to ambiguity, which occur dueto the lack of type specialization during type inference. This work proposes a new type system for Haskell that supports the definition of multi-parameter type cla...

Descripción completa

Detalles Bibliográficos
Autor: Rodrigo Geraldo Ribeiro
Tipo de recurso: tesis doctoral
Estado:Versión publicada
Fecha de publicación:2013
País:Brasil
Institución:Universidade Federal de Minas Gerais (UFMG)
Repositorio:Repositório Institucional da UFMG
Idioma:portugués
OAI Identifier:oai:repositorio.ufmg.br:1843/ESBF-9GMJLU
Acceso en línea:http://hdl.handle.net/1843/ESBF-9GMJLU
Access Level:acceso abierto
Palabra clave:Haskell
Classes de tipos
Sobrecarga
Linguagem de programação (Computadores)
Haskell (Linguagem de programação de computador)
Computação
Descripción
Sumario:The introduction of multi-parameter type classes in Haskell has beenhindered because of problems associated to ambiguity, which occur dueto the lack of type specialization during type inference. This work proposes a new type system for Haskell that supports the definition of multi-parameter type classes without the need of any extensions like functional dependencies or type families. Haskell's ambiguity definition is redefined as the usual definition based on type systems derivations. The definition of overloaded symbols without the need of specifying a type class is also allowed. A type inference algorithm that is sound and complete with respect to the proposed type system is presented and implemented.