package.elm-lang.org icon indicating copy to clipboard operation
package.elm-lang.org copied to clipboard

Types with large records leave the screen.

Open roSievers opened this issue 9 years ago • 4 comments
trafficstars

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

roSievers avatar Sep 19 '16 16:09 roSievers

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.

process-bot avatar Sep 19 '16 16:09 process-bot

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

agrafix avatar Sep 20 '16 12:09 agrafix

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?

infertux avatar Dec 20 '16 20:12 infertux

See #219 which has an image of the problem in elm-lang/core@Platform

evancz avatar Jul 11 '17 01:07 evancz