Skip to content

Grammars as Optics #10

Open
Open
@echatav

Description

@echatav

Consider the definition of a Grammarr:

type Grammarr a b = forall p. Grammatical p => p a a -> p b b

It is a simple profunctor optic. It should be possible to fit grammars into the full optics hierarchy. Even if it leads to a dead-end it would be worth exploring this avenue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions