Sums of products for mutually recursive datatypes: The appropriationist’s view on generic programming

V. Cacciari Miraldo, Alejandro Serrano

    Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

    Abstract

    Generic programming for mutually recursive families of datatypes is hard. On the other hand, most interesting abstract syntax trees are described by a mutually recursive family of datatypes. We could give up on using that mutually recursive structure, but then we lose the ability to use those generic operations which take advantage of that same structure. We present a new approach to generic programming that uses modern Haskell features to handle mutually recursive families with explicit sum-of-products structure. This additional structure allows us to remove much of the complexity previously associated with generic programming over these types.
    Original languageEnglish
    Title of host publicationProceedings of the 3rd ACM SIGPLAN International Workshop on Type-Driven Development
    Place of PublicationNew York
    PublisherAssociation for Computing Machinery
    Pages65-77
    ISBN (Print)978-1-4503-5825-5
    DOIs
    Publication statusPublished - 27 Sept 2018

    Keywords

    • Generic programming
    • Datatype
    • Haskell

    Fingerprint

    Dive into the research topics of 'Sums of products for mutually recursive datatypes: The appropriationist’s view on generic programming'. Together they form a unique fingerprint.

    Cite this