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

Optic for Representation. #3

Open
ibnuda opened this issue Jul 8, 2017 · 0 comments
Open

Optic for Representation. #3

ibnuda opened this issue Jul 8, 2017 · 0 comments

Comments

@ibnuda
Copy link

ibnuda commented Jul 8, 2017

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant