Skip to content

Bytes flag causes Map.! error #26

Open
@MartinSStewart

Description

@MartinSStewart

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
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions