Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

"shortcut" for toSpine -> fromSpine roundtrip? #31

Description

@gbaz

If we had something like Typeable and a type-safe cast, we could have branch on a subtree given not by just a function Unit -> GenericSpine but also paired with Unit -> Any where for that a : Any and that g : GenericSpine we would have the property that fromSpine g === cast a.

So this way if you want to descend a bit, then do a special case on the data from which some subtree was generated, we could capture that in a single recursion pattern without the overhead of a full to/from roundtrip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions