Skip to content

Add example of generics use to the docs #6

Open
@phadej

Description

@phadej

Explain:

fieldHref_
    :: ( HasLink endpoint, IsElem endpoint (ToServantApi routes)
       , GenericServant routes AsApi
       )
    => (routes AsApi -> endpoint)
    -> MkLink endpoint Attribute
fieldHref_ = fieldLink' linkAbsHref_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions