Skip to content

Combinators for ExtX values #5

@andy-morris

Description

@andy-morris

In Juvix we have an extension HRAnn which is literally just the product of HR and Ann. So it would be nice if we could express that with something like

module HR where
data T
hrExtTerm :: ExtTerm
hrExtTerm = ...
extendTerm "Term" [t|T|] hrExtTerm

module Ann where
data T
annExtTerm :: ExtTerm
annExtTerm = ...
extendTerm "Term" [t|T|] annExtTerm

module HRAnn where
import HR; import Ann
data T
extendTerm "Term" [t|T|] (hrExtTerm `pair` annExtTerm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions