Re-posting the first example from Franscisco's thread 
<https://groups.google.com/forum/#!topic/elm-discuss/vzcrRdgY1-w>:

There is a common pattern where a library (ex, elm-markdown) will provide a 
default config, to be extended by the user.

Here the two ways to do this right now, one painfully verbose and the other 
relying on exposing values that would read better if fully qualified 
instead of exposed:

import Slides

slidesDefaultConfig =
  Slides.defaultConfig

myCustomSlidesConfig =
 { slidesDefaultConfig | someAttribute = myCustomvalue }

or

import Slides exposing (slidesDefaultConfig)

myCustomSlidesConfig =
 { slidesDefaultConfig | someAttribute = myCustomvalue }

Not a big deal TBH, but annoying.


-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to