2003 · 51 citations · 19 references
ComputingComputer EngineeringComputer ScienceCompilersProgramming LanguagesSoftware EngineeringCompiler ConstructionData TypesFunctional ProgrammingGeneric ProgrammingType CheckingType SystemsGeneric FunctionsGeneric TypesGenericityRecursive TypesRuntime Type CheckingStatic Type CheckingType ConstructorsType-level Programming
Generic Haskell is an extension of Haskell that supports the construction of generic programs. During the development of several applications, such as an XML editor and compressor, we encountered a number of limitations with the existing (Classic) Generic Haskell language, as implemented by the current Generic Haskell compiler. Specifically, generic definitions become disproportionately more difficult to write as their complexity increases, such as when one generic function uses another, because recursion is implicit in generic definitions. In the current implementation, writing such functions suffers the burden of a large administrative overhead and is at times counter-intuitive. Furthermore, the absence of type checking in the current implementation can make Generic Haskell hard to use.In this paper we develop the foundations of Dependency-style Generic Haskell which addresses the above problems, shifting the burden from the programmer to the compiler. These foundations consist of a full type system for Dependency-style Generic Haskell's core language and appropriate reduction rules. The type system enables the programmer to write generic functions in a more natural style, taking care of dependency details which were previously the programmer's responsibility.
19
Ralf Lämmel, Simon Peyton Jones · 2003 · 350 citations
PolyP---a polytypic programming language extension
Patrik Jansson, Johan Jeuring · 1997 · 246 citations · Full text
Haskell 98 — A Non−strict‚ Purely Functional Language
Ralf Hinze · 1999 · 210 citations
Putting type annotations to work
Martin Odersky, Konstantin Läufer · 1996 · 165 citations · Full text
Jeffrey R. Lewis, John Launchbury, Erik Meijer et al. · 2000 · 154 citations · Full text