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
I was getting a runtime (!) exception with the following;
myApp: src/Elm/Record.hs:(12,1)-(67,23): Non-exhaustive patterns in function render
Pulling down the elm-export source and building;
$ stack build --pedantic
elm-export/src/Elm/Encoder.hs:13:1: warning: [-Wincomplete-patterns]
Pattern match(es) are non-exhaustive
In an equation for ‘render’:
Patterns not matched:
(TopLevel (TopLevel _))
(TopLevel (Record _ _))
(TopLevel (Constructor _ _))
(TopLevel (Selector _ _))
...
elm-export/src/Elm/Record.hs:12:1: warning: [-Wincomplete-patterns]
Pattern match(es) are non-exhaustive
In an equation for ‘render’:
Patterns not matched:
(TopLevel (TopLevel _))
(TopLevel (DataType _ (TopLevel _)))
(TopLevel (DataType _ (DataType _ _)))
(TopLevel (DataType _ (Constructor _ _)))
...
I tried fixing it but couldn't quite grok things.
Adding render _ = return "" to both Encoder and Record files "did the trick" in terms of the runtime exception in my dependant app, but I doubt that's the Right™ fix.
Would be happy to submit a PR with some direction 😄
The text was updated successfully, but these errors were encountered:
Thanks for this - there's been a big overhaul of the core datastructures that deals with this. Last night we finally finished polishing it up and got it released, so if you try 0.5.0.1 you should be good. :-)
I was getting a runtime (!) exception with the following;
Pulling down the
elm-export
source and building;I tried fixing it but couldn't quite grok things.
Adding
render _ = return ""
to both Encoder and Record files "did the trick" in terms of the runtime exception in my dependant app, but I doubt that's the Right™ fix.Would be happy to submit a PR with some direction 😄
The text was updated successfully, but these errors were encountered: