Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Optic for Representation. #3

@ibnuda

Description

@ibnuda

Sometimes, I need to set different kind of Representation. For example, when I need to set the Representation type to has some different languages.

I think it will be great if Representation module has public optic function.

Perhaps something like this:

let myRep mediaType data =
   Representation.empty
   |> Optic.set Representation.mediaType mediaType
   |> Optic.set Representation.data data

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