RepLib: A library for derivable type classes
dc.contributor.author | Weirich, Stephanie | |
dc.contributor.author | Weirich, Stephanie | |
dc.date | 2023-05-17T02:08:51.000 | |
dc.date.accessioned | 2023-05-22T12:47:51Z | |
dc.date.available | 2023-05-22T12:47:51Z | |
dc.date.issued | 2006-09-17 | |
dc.date.submitted | 2008-03-04T06:29:19-08:00 | |
dc.description.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 a representation types. Furthermore, operations defined in this manner are extensible-instances for specific types not defined by type structure may also be incorporated. Finally, this library also supports the definition of operations defined by parameterized types. | |
dc.description.comments | Postprint version. Published in <em>Proceedings of the 2006 ACM SIGPLAN workshop on Haskell</em>, September 2006, pages 1-12.<br> Publisher URL: http://doi.acm.org/10.1145/1159842.1159844 | |
dc.identifier.uri | https://repository.upenn.edu/handle/20.500.14332/6405 | |
dc.legacy.articleid | 1387 | |
dc.legacy.fulltexturl | https://repository.upenn.edu/cgi/viewcontent.cgi?article=1387&context=cis_papers&unstamped=1 | |
dc.source.issue | 362 | |
dc.source.journal | Departmental Papers (CIS) | |
dc.source.peerreviewed | true | |
dc.source.status | published | |
dc.subject.other | generic programming | |
dc.subject.other | representation type | |
dc.subject.other | Haskell | |
dc.subject.other | type class | |
dc.title | RepLib: A library for derivable type classes | |
dc.type | Presentation | |
digcom.contributor.author | isAuthorOfPublication|email:sweirich@cis.upenn.edu|institution:University of Pennsylvania|Weirich, Stephanie | |
digcom.identifier | cis_papers/362 | |
digcom.identifier.contextkey | 447515 | |
digcom.identifier.submissionpath | cis_papers/362 | |
digcom.type | conference | |
dspace.entity.type | Publication | |
relation.isAuthorOfPublication | b66c11a3-4446-4985-a8af-67bf0f02b419 | |
relation.isAuthorOfPublication.latestForDiscovery | b66c11a3-4446-4985-a8af-67bf0f02b419 | |
upenn.schoolDepartmentCenter | Departmental Papers (CIS) |
Files
Original bundle
1 - 1 of 1