You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I understood, I think that that all of the parameters should have a representational role, however I am not 100% sure and someone who has a bit more experience and insight into Halogen should give that a second thought.
Uh oh!
There was an error while loading. Please reload this page.
Currently the Component type does not have any role annotations
purescript-halogen/src/Halogen/Component.purs
Lines 49 to 54 in 4b2144a
This results in weird, and definitely unsound, things like these to pass the typechecker (note that these are
coerce
and notunsafeCoerce
):From what I understood, I think that that all of the parameters should have a
representational
role, however I am not 100% sure and someone who has a bit more experience and insight into Halogen should give that a second thought.Some Relevant examples on Try Purescript
IMO, This is especially important as coercing components is advertised in the Halogen Real World example:
https://github.com/thomashoneyman/purescript-halogen-realworld/blob/ab13d62f95f4eb3ca589c0f043fe415af8408ff9/src/AppM.purs#L86-L87
The text was updated successfully, but these errors were encountered: