question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extensible records / record types are failing in Elm 18

See original GitHub issue

Sup fellas, here’s an example:

image

iFail : Bla1 Bla2 -> String
iFail { bla2 } =
    "    ^ here I fail"


type alias Bla1 a =
    { a
        | bla : Int
    }


type alias Bla2 =
    { bla2 : Int }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
klazukacommented, Jan 13, 2019

@Birowsky version 2.2.1 has some fixes related to record extension. After you give it a try, please follow-up on this issue whether the problem is fixed or not.

0reactions
Birowskycommented, Jan 13, 2019

@klazuka Just checked, unfortunately, I still have all the errors in the screenshots. If I manage to isolate any of these, I’ll let you know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extensible Records seems to be pruning fields and failing ...
I'm creating a type alias to a type record, but it's not compiling (see attached ... Extensible Records seems to be pruning fields...
Read more >
Are extensible records useless in Elm 0.19?
For every custom extensible record type I would like to have a polymorphic analyzer (a function that extracts its base part) and a...
Read more >
Advanced Types in Elm - Extensible Records - Charlie Koster
This post covers another so-called advanced type, extensible records. An… ... An extensible record is a record defined as “having at least certain...
Read more >
Where lack of constructors for extensible records is hurting
So far, all code is valid Elm but I haven't defined any values (terms) of these flat record types. Setting aside JSON decoding...
Read more >
Types of Types in Elm
One of the first things one comes across in Elm is record types. ... One thing I immediately liked about records in Elm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found