Skip to content

Add Tuple handling #6

@nicolashery

Description

@nicolashery

I have a piece of data that's represented in JS-land as:

var business = {
  name: "O'Brien's Irish Pub & Restaurant",
  category: ["Irish Pub", "irish-pub"]
};

Which I'd like to represent in PureScript as:

newtype Business = Business {
  name :: String,
  category :: Tuple String String
}

Seems like a common enough use case to add support for Tuple and be able to use generics for such data structure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions