package.elm-lang.org
package.elm-lang.org copied to clipboard
Types with large records leave the screen.
Take Navigation.program as an example, this has a large type
program
: Parser data
-> { init : data -> (model, Cmd msg), update : msg -> model -> (model, Cmd msg), urlUpdate : data -> model -> (model, Cmd msg), view : model -> Html msg, subscriptions : model -> Sub msg }
-> Program Never
It would be great if this could be formatted differently to fit the screen:
program
: Parser data
-> { init : data -> (model, Cmd msg)
, update : msg -> model -> (model, Cmd msg)
, urlUpdate : data -> model -> (model, Cmd msg)
, view : model -> Html msg
, subscriptions : model -> Sub msg
}
-> Program Never
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
I was about to open the same issue. Found it here: http://package.elm-lang.org/packages/agrafix/elm-bootforms/10.0.0/Html-Form-Input-Date
Looks like it's caused by white-space: pre. It looks fine if you remove this line but I assume it was added for a good reason?
See #219 which has an image of the problem in elm-lang/core@Platform