2018 · 14 citations · 9 references
ComputingComputer ScienceCompilersFormal MethodsProgramming LanguagesGenerate ConstructsPattern GenerationType CheckingType ClassificationType SystemsDerived TypesPattern-based GenerationPatternsType ClassesType Constructors
Haskell's deriving construct is a cheap and cheerful way to quickly generate instances of type classes that follow common patterns. But at present, there is only a subset of such type class patterns that deriving supports, and if a particular class lies outside of this subset, then one cannot derive it at all, with no alternative except for laboriously declaring the instances by hand.
9
Koen Claessen, John Hughes · ACM SIGPLAN Notices · 2011 · 1K citations
Koen Claessen, John Hughes · 2000 · 714 citations
Manuel M. T. Chakravarty, Gabriele Keller, Simon Peyton Jones · 2005 · 223 citations
Brent A. Yorgey, Stephanie Weirich, Julien Cretin et al. · 2012 · 174 citations · Full text
A generic deriving mechanism for Haskell
José Pedro Magalhães, Atze Dijkstra, Johan Jeuring et al. · 2010 · 73 citations