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

5 SSCCEs for Map.! error #1864

Closed
jinjor opened this issue Dec 6, 2018 · 2 comments
Closed

5 SSCCEs for Map.! error #1864

jinjor opened this issue Dec 6, 2018 · 2 comments

Comments

@jinjor
Copy link
Contributor

jinjor commented Dec 6, 2018

I created 5 SSCCEs for Map.! error.
Most of them are already reported, but I was able to make them much shorter.

  1. Array
-- Always fails
main : Program () () (Array ())
main =
    Debug.todo ""
  1. Html
-- Fails if elm/virtual-dom is in "indirect"
main : Program () () (Html ()) -- or Attribute
main =
    Debug.todo ""
  1. Svg
-- Fails if elm/virtual-dom is in "indirect"
main : Program () () (Svg ())  -- or Attribute
main =
    Debug.todo ""
  1. Plot from Bractlet/elm-plot (Map.! error when using a dependency which has a type alias to a non-exported module #1852)
-- Bractlet/elm-plot
-- Point is an alias of a type in non-exposed Module
import Plot exposing (Point)

type Msg
    = Msg Point

-- Fails
main : Program () () Msg
main =
    Debug.todo ""
-- Succeeds
main : Program () () Point
main =
    Debug.todo ""
  1. Part from jinjor/elm-req
-- jinjor/elm-req
-- Part contains File and Bytes
import Req exposing (Part)

-- Fails if elm/file or elm/bytes is in "indirect"
main : Program () () Part
main =
    Debug.todo ""

From those examples, it should be true that Msg cannot be / contain a type from non-exposed module.

Details can be seen here.
https://github.com/jinjor/elm-map-sscce

@jinjor
Copy link
Contributor Author

jinjor commented Dec 6, 2018

@evancz
Copy link
Member

evancz commented Jul 18, 2019

Thank you for organizing this!

I just went through with the development build of the compiler, and all of the files in src/ directories compile successfully now. Some additional details on the fix are available here: #1850 (comment)

Thanks again for getting the examples down so small and making it really easy to test them!

@evancz evancz closed this as completed Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants