evancz/guide.elm-lang.org

The guide on ports could mention earlier port modules

giovannibonetti opened this issue · 0 comments

Hello! Thank you for this great project!
I was confused by the documentation when I got to the ports section and saw the port annotation in the first line:

port module Main exposing (..)

At first I though it was a typo (maybe it is importing another module and should be import?), and after googling a little I realized that the annotation port should be added in front of module to make ports work.

Afterwards I got to the bottom of the page and found the explanation about port modules.

If you think other people might stumble on that as well you might want to mention that earlier, at least with a footnote.

Thank you for your time anyway.