If I'm not mistaken, this isn't so much about nested records as it is about
referencing a qualified record in a record update expression.
This seems related to - but not exactly the same thing as
- https://github.com/elm-lang/elm-compiler/issues/1549
So yeah, you could either create a local
On Sat, Apr 22, 2017 at 11:50 AM, Dwayne Crooks
wrote:
> However, if I update the let bindings as follows:
>
> let
>> defaultViewConfig = Rating.defaultViewConfig
>> ratingViewConfig =
>> { defaultViewConfig | readOnly = model.readOnly }
Hi,
The following snippet of code:
view : Model -> Html Msg
> view model =
> let
> ratingViewConfig =
> { Rating.defaultViewConfig | readOnly = model.readOnly }
> in
> div []
> [ Html.map SetRatingState <|
> Rating.view