evancz / elm-markdown

Markdown parsing within Elm
http://package.elm-lang.org/packages/evancz/elm-markdown/latest
Other
88 stars 7 forks source link

Fixing type errors in the native stuff #11

Closed jvoigtlaender closed 9 years ago

jvoigtlaender commented 9 years ago

Background: The gfm there is a Maybe { tables : Bool, breaks : Bool } (from http://package.elm-lang.org/packages/evancz/elm-markdown/1.1.5/Markdown#Options). Even after having checked its constructor to be Just, one cannot simply access the nested record fields with gfm.tables and gfm.breaks. Instead, gfm._0... is needed.

evancz commented 9 years ago

Nice catch, thank you!