Skip to content

Restrict props to Record #119

Closed
Closed

Description

@natefaubion

You are guaranteed buggy behavior otherwise.

Activity

  1. coot commented on Oct 7, 2017

    @coot

    Indeed, we could wrap props in a record like it is dome with the state already. Just limiting to records will rule out newtype wrappers of records (or we could type check this with a type class).

  2. coot commented on Oct 7, 2017

    @coot

    We could wait for instance chains in 11.6.0 and use something as simple as this:

    class IsRecord a
    
    instance recordIsRecord :: IsRecord {|r}
    else instance newtypeRecordIsRecord :: Newtype a {|r} => IsRecord a
    
  3. ethul commented on Mar 4, 2018

    @ethul
    Contributor

    Closed by #129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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