on master help sign in
update import syntax in hints
1d5eca7Evan Czaplicki
hints/imports.md+6−6
@@ -106,17 +106,17 @@ It would be the best policy to make it so every module in the whole ecosystem wo
106
106
107```elm
107```elm
108import Basics exposing (..)
108import Basics exposing (..)
109−import List exposing ( List, (::) )
109+import List exposing (List, (::))
110−import Maybe exposing ( Maybe( Just, Nothing ) )
110+import Maybe exposing (Maybe(..))
111−import Result exposing ( Result( Ok, Err ) )
111+import Result exposing (Result(..))
112import String
112import String
113import Tuple
113import Tuple
114
114
115import Debug
115import Debug
116
116
117−import Platform exposing ( Program )
117+import Platform exposing (Program)
118−import Platform.Cmd as Cmd exposing ( Cmd )
118+import Platform.Cmd as Cmd exposing (Cmd)
119−import Platform.Sub as Sub exposing ( Sub )
119+import Platform.Sub as Sub exposing (Sub)
120```
120```
121
121
122You can think of these imports being at the top of any module you write.
122You can think of these imports being at the top of any module you write.