Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Records cannot work in REPL #190

Open
emqplus opened this issue Jun 17, 2020 · 0 comments
Open

Records cannot work in REPL #190

emqplus opened this issue Jun 17, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@emqplus
Copy link
Contributor

emqplus commented Jun 17, 2020

-- declare a Person record
data Person = Person {name :: String, age :: Integer}

p = Person {name = "John", age = 12}

-- update a Person record
p1 = p {name = "Miles", age = 20}

--  getters
name = p1.name :: String
age = p1.age   :: Integer
@emqplus emqplus added the bug Something isn't working label Jun 17, 2020
@emqplus emqplus added this to the 0.1.2 milestone Jun 17, 2020
@emqplus emqplus modified the milestones: 0.1.2, 0.2 - OTP Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants