I ran into another problem. I made the following type. But when i add the type to Msg of update it gives following error.
type Overlay
= MovingAverage Int (Array Float)
| BollingerBand
type Standalone
= RSI
| MACD
type Indicator
= OverlayIndicator Overlay
| StandaloneIndicator Standalone
type Msg =
AddIndicator Indicator -- when i add this. it gives the following error
./src/elm/Main.elmError: Compiler process exited with error Compilation failedSuccess! Compiled 2 modules.
elm.exe: Map.!: given key is not an element in the mapCallStack (from HasCallStack): error, called at libraries\containers\Data\Map\Internal.hs:603:17 in containers-0.5.10.2:Data.Map.Internal
i’m not sure what the source of the problem is, but the “Map.!” error happens with Elm 0.19.0 when you compile using --debug.
I suggest upgrading to the newly released 0.19.1 which solves the problem, or stop using --debug.