Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
P. 1
Fun and generic things to do with EMGM - London HUG - 9 July 2009

Fun and generic things to do with EMGM - London HUG - 9 July 2009

Ratings:

4.0

(2)
|Views: 134 |Likes:
Published by Sean Leather
Generic programming has become a popular technique for reducing code and simplifying programs. There are many libraries for Haskell programmers that offer different approaches to generic programming. This talk introduces one such library, Extensible and Modular Generics for the Masses (EMGM), that was uploaded to Hackage for the first time in September 2008. EMGM uses type classes to provide a sum-of-products representation of datatypes. Not quite as well-known as its cousin, Scrap Your Boilerplate, EMGM also provides a wealth of generic functions. Additionally, EMGM allows programmers to easily write their own generic functions and specialize any function for arbitrary datatypes. In this talk, we look at the building blocks of EMGM, at various generic functions provided by the library, how do define one’s own generic function, and at some potential uses.

Sean Leather is a PhD student at Utrecht University in the Netherlands. His research focuses on exploring libraries for generic programming in Haskell.
Generic programming has become a popular technique for reducing code and simplifying programs. There are many libraries for Haskell programmers that offer different approaches to generic programming. This talk introduces one such library, Extensible and Modular Generics for the Masses (EMGM), that was uploaded to Hackage for the first time in September 2008. EMGM uses type classes to provide a sum-of-products representation of datatypes. Not quite as well-known as its cousin, Scrap Your Boilerplate, EMGM also provides a wealth of generic functions. Additionally, EMGM allows programmers to easily write their own generic functions and specialize any function for arbitrary datatypes. In this talk, we look at the building blocks of EMGM, at various generic functions provided by the library, how do define one’s own generic function, and at some potential uses.

Sean Leather is a PhD student at Utrecht University in the Netherlands. His research focuses on exploring libraries for generic programming in Haskell.

More info:

Published by: Sean Leather on Jul 10, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

02/04/2013

pdf

 
Fun
and
generic
things to do with
EMGM
Sean Leather9 July 2009
 
Extensible and Modular Generics for the Masses
EMGM is a powerful library that uses type classes for
datatype-generic programming
(
DGP
) in Haskell.The
emgm 
package on Hackage provides the following:
Documented platform for writing generic functions
Flexible functionality for deriving instances using TemplateHaskell
Growing collection of useful generic functions
 
History of EMGM
1.Published as
Generics for the Masses
by Ralf Hinze in2004.2.Revised by Bruno Oliveira, Andres L¨oh, and Hinze forextensibility and modularity in 2006.3.Explored further and compared with other DGP librariesby Alexey Rodriguez Yakushev et al in 2007-2008.4.Packaged and released by Sean Leather, Jos´e PedroMagalh˜aes, and others at Utrecht University in September2008.A tutorial is available as part of lecture notes created for the2008 Advanced Functional Programming Summer School.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->