Proceedings of the 2006 ACM SIGPLAN Workshop on Haskell 2006
DOI: 10.1145/1159842.1159844
|View full text |Cite
|
Sign up to set email alerts
|

RepLib

Abstract: Some type class instances can be automatically derived from the structure of types. As a result, the Haskell language includes the "deriving" mechanism to automatic generates such instances for a small number of built-in type classes. In this paper, we present RepLib, a GHC library that enables a similar mechanism for arbitrary type classes. Users of RepLib can define the relationship between the structure of a datatype and the associated instance declaration by a normal Haskell functions that pattern-matches … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
6
0

Year Published

2007
2007
2018
2018

Publication Types

Select...
4
3
1

Relationship

2
6

Authors

Journals

citations
Cited by 27 publications
(6 citation statements)
references
References 33 publications
0
6
0
Order By: Relevance
“…The list of constructor view is similar to the underlying view of the RepLib Haskell library [38]. In a nutshell, the view sees all types as variants.…”
Section: List Of Constructorsmentioning
confidence: 99%
See 2 more Smart Citations
“…The list of constructor view is similar to the underlying view of the RepLib Haskell library [38]. In a nutshell, the view sees all types as variants.…”
Section: List Of Constructorsmentioning
confidence: 99%
“…The open design of the library enables the user to define his own views. In addition to the low level view, we have included the sum-of-products view underlying the LIGD library [8] and Instant-Generics [7,27], the spine view underlying the SYB library [18] and the list-of-constructors view underlying RepLib [38].…”
Section: Viewsmentioning
confidence: 99%
See 1 more Smart Citation
“…Over the last decade, datatype generic programming has emerged as a powerful mechanism for exploiting type structure to define families of functions. In Haskell alone, there are numerous tools and libraries for datatype generic programming, including PolyP (Jansson and Jeuring 1997), Generic Haskell (Hinze and Jeuring 2003), Scrap your boilerplate (Lämmel and Peyton Jones 2003), RepLib (Weirich 2006), Uniplate (Mitchell and Runciman 2007), Regular (Noort et al 2008), Multi-Rec (Yakushev et al 2009), Instant Generics (Magalhães and Jeuring 2011) and many others.…”
Section: Introductionmentioning
confidence: 99%
“…• RepLib: a library for derivable type classes [Weirich, 2006] • Smash your boilerplate [Kiselyov, 2006] • Uniplate [Mitchell and Runciman, 2007b] Note that this list does not contain generic programming language extensions such as PolyP [Jansson and Jeuring, 1997], Generic Haskell ], or Template Haskell [Lynagh, 2003], and no pre-processing approaches to generic programming such as DrIFT [Winstanley and Meacham, 2006], and Data.Derive. We strictly limit ourselves to library approaches, which, however, might be based on particular compiler extensions.…”
Section: Introductionmentioning
confidence: 99%