Skip to content

Unexpected elm: Map.!: given key is not an element in the map #2182

Open
@jfine2358

Description

@jfine2358

Quick Summary: Unexpected elm: Map.!: given key is not an element in the map

SSCCE

$ elm repl
---- Elm 0.19.1 ----------------------------------------------------------------
Say :help for help and :exit to exit! More at <https://elm-lang.org/0.19.1/repl>
--------------------------------------------------------------------------------
> type alias Goal a = { a | field : Int } -> a
> 
> solution : Goal { field : Int }
| solution = identity
|   
<function> : Goal { field : Int }
> puzzle : Goal { field : Int }
| puzzle rec = rec
|   
elm: Map.!: given key is not an element in the map
CallStack (from HasCallStack):
  error, called at libraries/containers/Data/Map/Internal.hs:610:17 in containers-0.5.11.0:Data.Map.Internal
  • Elm: 0.19.1
  • Browser: None
  • Operating System: Ubuntu

Additional Details

I came across this while writing https://discourse.elm-lang.org/t/remove-1-record-field/7169/3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions