|
|
IN THE BRAIN OF ANDRES LöH, DATATYPE-GENERIC PROGRAMMING IN HASKELL
|
Haskell's deriving construct is both wonderful and magical at the same time: it is wonderful, because with just a single line of code, you can obtain functionality such as(de)serialization, comparison and traversal functions for your newly defined datatype; it is magical because all of this happens behind the scenes, by code deeply built into the compiler.
But does it have to be magic? Since recently, the Glasgow Haskell Compiler (GHC) supports a feature that lets you define your own derivable functionality! And it is not difficult to use,
either. All you have to do is to understand a little bit about how Haskell datatypes can be uniformly represented using a limited set of simple datatypes. Then you define a class plus instances for this limited set of types, and get all the rest for free.
So-called datatype-generic functions let you properly express your code in terms of specific, user-defined datatypes without paying a price: for your new datatypes, you can still use lots of pre-defined functionality, simply by deriving it.
In the talk, I will explain all about how datatype-generic programming in GHC works, and I will present several examples of its use, including examples of how it already is successfully being used in some prominent Haskell libraries.
Tuesday 9th April 2013
Track 1
18:30-20:00 DATATYPE-GENERIC PROGRAMMING IN HASKELL
Andres Löh: In the talk, I will explain all about how datatype-generic programming in GHC works, and I will present several examples of its use, including examples of how it already is successfully being used in some prominent Haskell libraries. View the podcast here...
|
|
|
|
|
OTHER HASKELL EVENTS
|
Reducing Technical Debt with Michael C. Feathers
2 DAY COURSE. Featuring Michael C. Feathers London, Thursday, June 27th
|
|
Ashic Mahtab's Fasttrack to Git
2 DAY COURSE. Featuring Ashic Mahtab London, Monday, July 1st
|
|
Well-Typed's Fast Track to Haskell
2 DAY COURSE. Featuring Edsko de Vries London, Monday, July 8th
|
|
Well-Typed's Advanced Haskell
2 DAY COURSE. Featuring Edsko de Vries London, Wednesday, July 10th
|
|
Lazy I/O and Alternatives in Haskell
FREE EVENT:
In The Brain of Edsko de Vries
London, Wednesday, July 10th
|
|
Ashic Mahtab's Fasttrack to Git
2 DAY COURSE. Featuring Ashic Mahtab London, Monday, October 7th
|
|
Well-Typed's Fast Track to Haskell
2 DAY COURSE. Featuring Andres Löh London, Monday, October 7th
|
|
Haskell eXchange 2013
CONFERENCE (1 DAY)
London, Wednesday, October 9th
BOOK NOW!
|
|
|
|
|
© Copyright 2003-2013, Skills Matter Ltd
|
|
|