Skip to content

The README suggests defining instances related to LangTS and LangTSDecls but these types are not exposed #2

@exarkun

Description

@exarkun

The "Supporting additional combinators" section gives these examples:

instance HasForeign LangTS Text WebSocket where
    type Foreign Text WebSocket = Text
    foreignFor _ _ _ _ = "void"

instance HasForeign LangTSDecls [TSDeclaration] WebSocket where
    type Foreign [TSDeclaration] WebSocket = [TSDeclaration]
    foreignFor _ _ _ _ = []

However, LangTS and LangTSDecls are defined in Servant.TypeScript.Types which is not exposed, and they are not re-exported from any exposed module. As a result, support for additional combinators cannot actually be implemented.

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