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

Bytes flag causes Map.! error #26

Open
MartinSStewart opened this issue Jul 29, 2024 · 0 comments
Open

Bytes flag causes Map.! error #26

MartinSStewart opened this issue Jul 29, 2024 · 0 comments

Comments

@MartinSStewart
Copy link
Member

Quick Summary:
Running lamdera make Generate.elm on the following code will trigger a

lamdera: Map.!: given key is not an element in the map
CallStack (from HasCallStack):
  error, called at libraries/containers/containers/src/Data/Map/Internal.hs:633:17 in containers-0.6.5.1:Data.Map.Internal

error.

The error goes away if I switch the flags from Bytes to String. I would expect bytes to be supported in Lamdera since you can pass bytes through ports in Lamdera.

SSCCE

module Generate exposing (main)

{-| -}

import Bytes exposing (Bytes)


main : Program Bytes () ()
main =
    Platform.worker
        { init =
            \flags ->
                ( ()
                , Cmd.none
                )
        , update =
            \_ model ->
                ( model, Cmd.none )
        , subscriptions = \_ -> Sub.none
        }
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

1 participant