on master help sign in
Switch everything from @elm-lang to @elm
commita44fcf164e1858d812d91fd9323ce5a6df1f2947 authorEvan Czaplicki <evancz@users.noreply.github.com> dateWed 23 May 2018, 10:37 (8 years ago) parent33d3c76
20 files changed+54−55
builder/src/Deps/Cache.hs+2−2 builder/src/Elm/Project/Json.hs+1−1 builder/src/Generate/Nitpick.hs+1−1 builder/src/Reporting/Exit/Assets.hs+6−7 builder/src/Reporting/Exit/Crawl.hs+2−2 builder/src/Reporting/Exit/Deps.hs+1−1 builder/src/Reporting/Exit/Diff.hs+1−1 builder/src/Reporting/Exit/Http.hs+1−1 builder/src/Reporting/Exit/Install.hs+3−3 compiler/src/AST/Canonical.hs+1−1 compiler/src/Elm/Package.hs+9−9 compiler/src/Json/Decode/Error.hs+1−1 compiler/src/Reporting/Error/Canonicalize.hs+4−4 compiler/src/Reporting/Error/Syntax.hs+1−1 compiler/src/Reporting/Error/Type.hs+1−1 compiler/src/Type/Solve.hs+1−1 ui/browser/elm.json+11−11 ui/terminal/src/Main.hs+3−3 ui/terminal/src/Repl.hs+2−2 ui/terminal/src/Terminal/Args/Helpers.hs+2−2
builder/src/Deps/Cache.hs+2−2
@@ -167,7 +167,7 @@ authorDistance bad possibility =
167167
168168projectDistance :: String -> Text.Text -> Int
169169projectDistance bad possibility =
170− if possibility == "elm-lang" || possibility == "elm-explorations" then
170+ if possibility == "elm" || possibility == "elm-explorations" then
171171 0
172172 else
173173 abs (Suggest.distance bad (Text.unpack possibility))
@@ -246,7 +246,7 @@ errorToDocs err =
246246 details
247247 ++
248248 ["This","should","not","happen","in","general,","so","please","report","this","at"
249− ,"<https://github.com/elm-lang/package.elm-lang.org/issues>"
249+ ,"<https://github.com/elm/package.elm-lang.org/issues>"
250250 ,"if","you","think","it","is","on","the","Elm","side!"
251251 ]
252252
builder/src/Elm/Project/Json.hs+1−1
@@ -123,7 +123,7 @@ isPlatformPackage project =
123123 (Pkg.Name user _) =
124124 _pkg_name info
125125 in
126− user == "elm-lang" || user == "elm-explorations"
126+ user == "elm" || user == "elm-explorations"
127127
128128
129129get :: (AppInfo -> a) -> (PkgInfo -> a) -> Project -> a
builder/src/Generate/Nitpick.hs+1−1
@@ -96,4 +96,4 @@ deciderHasDebug decider =
9696
9797
9898-- TODO: FIND GLOBALLY UNUSED DEFINITIONS?
99−-- TODO: FIND PACKAGE USAGE STATS? (e.g. elm-lang/core = 142, author/project = 2, etc.)
99+-- TODO: FIND PACKAGE USAGE STATS? (e.g. elm/core = 142, author/project = 2, etc.)
builder/src/Reporting/Exit/Assets.hs+6−7
@@ -109,22 +109,22 @@ elmJsonProblemToReport problem =
109109
110110 NoPkgCore ->
111111 Help.report "MISSING DEPENDENCY" (Just "elm.json")
112− "A package must have \"elm-lang/core\" as a dependency. Try running:"
113− [ D.indent 4 $ D.green $ "elm install elm-lang/core"
112+ "A package must have \"elm/core\" as a dependency. Try running:"
113+ [ D.indent 4 $ D.green $ "elm install elm/core"
114114 , D.reflow "I need it for the default imports that make `List` and `Maybe` available."
115115 ]
116116
117117 NoAppCore ->
118118 Help.report "MISSING DEPENDENCY" (Just "elm.json")
119− "An application must have \"elm-lang/core\" as a dependency. Try running:"
120− [ D.indent 4 $ D.green $ "elm install elm-lang/core"
119+ "An application must have \"elm/core\" as a dependency. Try running:"
120+ [ D.indent 4 $ D.green $ "elm install elm/core"
121121 , D.reflow "It has some supporting code that is needed by every Elm application!"
122122 ]
123123
124124 NoAppJson ->
125125 Help.report "MISSING DEPENDENCY" (Just "elm.json")
126− "An application must have \"elm-lang/json\" as a dependency. Try running:"
127− [ D.indent 4 $ D.green $ "elm install elm-lang/json"
126+ "An application must have \"elm/json\" as a dependency. Try running:"
127+ [ D.indent 4 $ D.green $ "elm install elm/json"
128128 , D.reflow "It helps me handle flags and ports."
129129 ]
130130
@@ -154,7 +154,6 @@ elmJsonProblemToReport problem =
154154 "The " ++ packagesAre ++ " available in \"" ++ field1
155155 ++ "\", so it is redundant to list it again in \"" ++ field2
156156 ++ "\". It is already available! " ++ advice
157− , D.reflow "More help at <https://github.com/elm-lang/elm-package/blob/master/TODO>"
158157 ]
159158
160159
builder/src/Reporting/Exit/Crawl.hs+2−2
@@ -149,8 +149,8 @@ problemToReport problem =
149149 EffectsUnexpected path name ->
150150 badTagToDoc path name "effect" "effect-modules" $
151151 "Creating `effect` modules is relatively experimental. There are a\
152− \ couple in @elm-lang repos right now, but we have decided to be\
153− \ very cautious in expanding its usage."
152+ \ couple in @elm repos right now, but we have decided to be very\
153+ \ cautious in expanding its usage."
154154
155155
156156badTagToDoc :: FilePath -> Module.Raw -> String -> String -> String -> Help.Report
builder/src/Reporting/Exit/Deps.hs+1−1
@@ -104,7 +104,7 @@ toReport exit =
104104 [ D.reflow $
105105 "Did you change them by hand? Try to change it back! It is much\
106106 \ better to add dependencies with commands like this:"
107− , D.indent 4 $ D.dullyellow "elm install elm-lang/http"
107+ , D.indent 4 $ D.dullyellow "elm install elm/http"
108108 , D.reflow $
109109 "Please ask for help on the Elm slack <http://elmlang.herokuapp.com/> if\
110110 \ you are running into something that seems trickier than this."
builder/src/Reporting/Exit/Diff.hs+1−1
@@ -34,7 +34,7 @@ toReport exit =
3434 Help.report "CANNOT DIFF APPLICATIONS" Nothing
3535 "I cannot perform diffs on applications, only packages! If you are\
3636 \ just curious to see a diff, try running this command:"
37− [ D.indent 4 $ D.green $ "elm diff elm-lang/html 5.1.1 6.0.0"
37+ [ D.indent 4 $ D.green $ "elm diff elm/html 5.1.1 6.0.0"
3838 ]
3939
4040 UnknownPackage pkg suggestions ->
builder/src/Reporting/Exit/Http.hs+1−1
@@ -85,7 +85,7 @@ badJsonToDocs badJson =
8585 BadNewPkg txt ->
8686 ["I","ran","into",D.red (D.fromString (show txt)) <> ","
8787 ,"but","I","need","entries","like"
88− ,D.green "\"elm-lang/core@6.0.0\"" <> "."
88+ ,D.green "\"elm/core@6.0.0\"" <> "."
8989 ]
9090
9191 BadAllPkg txt suggestion ->
builder/src/Reporting/Exit/Install.hs+3−3
@@ -32,9 +32,9 @@ toReport exit =
3232 Help.report "INSTALL WHAT?" Nothing
3333 "I am expecting commands like:"
3434 [ D.green $ D.indent 4 $ D.vcat $
35− [ "elm install elm-lang/http"
36− , "elm install elm-lang/json"
37− , "elm install elm-lang/random"
35+ [ "elm install elm/http"
36+ , "elm install elm/json"
37+ , "elm install elm/random"
3838 ]
3939 , D.toFancyHint
4040 ["In","JavaScript","folks","run","`npm install`","to","start","projects."
compiler/src/AST/Canonical.hs+1−1
@@ -33,7 +33,7 @@ module AST.Canonical
3333 where
3434
3535{- Creating a canonical AST means finding the home module for all variables.
36−So if you have L.map, you need to figure out that it is from the elm-lang/core
36+So if you have L.map, you need to figure out that it is from the elm/core
3737package in the List module.
3838
3939In later phases (e.g. type inference, exhaustiveness checking, optimization)
compiler/src/Elm/Package.hs+9−9
@@ -71,7 +71,7 @@ data Package =
7171
7272isKernel :: Name -> Bool
7373isKernel (Name author _) =
74− author == "elm-lang" || author == "elm-explorations"
74+ author == "elm" || author == "elm-explorations"
7575
7676
7777toString :: Name -> String
@@ -179,49 +179,49 @@ dummyName =
179179{-# NOINLINE kernel #-}
180180kernel :: Name
181181kernel =
182− Name "elm-lang" "kernel"
182+ Name "elm" "kernel"
183183
184184
185185{-# NOINLINE core #-}
186186core :: Name
187187core =
188− Name "elm-lang" "core"
188+ Name "elm" "core"
189189
190190
191191{-# NOINLINE browser #-}
192192browser :: Name
193193browser =
194− Name "elm-lang" "browser"
194+ Name "elm" "browser"
195195
196196
197197{-# NOINLINE virtualDom #-}
198198virtualDom :: Name
199199virtualDom =
200− Name "elm-lang" "virtual-dom"
200+ Name "elm" "virtual-dom"
201201
202202
203203{-# NOINLINE html #-}
204204html :: Name
205205html =
206− Name "elm-lang" "html"
206+ Name "elm" "html"
207207
208208
209209{-# NOINLINE json #-}
210210json :: Name
211211json =
212− Name "elm-lang" "json"
212+ Name "elm" "json"
213213
214214
215215{-# NOINLINE http #-}
216216http :: Name
217217http =
218− Name "elm-lang" "http"
218+ Name "elm" "http"
219219
220220
221221{-# NOINLINE url #-}
222222url :: Name
223223url =
224− Name "elm-lang" "url"
224+ Name "elm" "url"
225225
226226
227227{-# NOINLINE webgl #-}
compiler/src/Json/Decode/Error.hs+1−1
@@ -47,7 +47,7 @@ toDoc rootName source userErrorToDocs err =
4747 [] ->
4848 D.reflow
4949 "I am not sure what is wrong with this JSON. Please create an <http://sscce.org>\
50− \ and share it at <https://github.com/elm-lang/elm-compiler/issues> so I can\
50+ \ and share it at <https://github.com/elm/compiler/issues> so I can\
5151 \ provide a helpful hint here!"
5252
5353 [flatError] ->
compiler/src/Reporting/Error/Canonicalize.hs+4−4
@@ -478,10 +478,10 @@ toReport source err =
478478 D.stack
479479 [ D.reflow $
480480 "If you want the behavior of (%) like in JavaScript, switch to:\
481− \ <https://package.elm-lang.org/packages/elm-lang/core/latest/Basics#remainderBy>"
481+ \ <https://package.elm-lang.org/packages/elm/core/latest/Basics#remainderBy>"
482482 , D.reflow $
483483 "If you want modular arithmetic like in math, switch to:\
484− \ <https://package.elm-lang.org/packages/elm-lang/core/latest/Basics#modBy>"
484+ \ <https://package.elm-lang.org/packages/elm/core/latest/Basics#modBy>"
485485 , D.reflow $
486486 "The difference is how things work when negative numbers are involved."
487487 ]
@@ -683,7 +683,7 @@ toReport source err =
683683 error
684684 "There is some compiler bug in reporting cyclic definitions.\n\
685685 \Please get a <http://sscce.org/> and share the details at\n\
686− \<https://github.com/elm-lang/elm-compiler/issues>"
686+ \<https://github.com/elm/compiler/issues>"
687687
688688 A.At region name : otherNames ->
689689 Report.Report "CYCLIC DEFINITION" region [] $
@@ -1189,7 +1189,7 @@ modHint =
11891189 [ "Rather", "than", "a", D.dullyellow "(%)", "operator,"
11901190 , "Elm", "has", "a", D.green "modBy", "function."
11911191 , "Learn", "more", "here:"
1192− , "<https://package.elm-lang.org/packages/elm-lang/core/latest/Basics#modBy>"
1192+ , "<https://package.elm-lang.org/packages/elm/core/latest/Basics#modBy>"
11931193 ]
11941194
11951195
compiler/src/Reporting/Error/Syntax.hs+1−1
@@ -504,7 +504,7 @@ problemToDocs problem =
504504 "I do not have any suggestions though!"
505505 , D.reflow $
506506 "Can you get it down to a <http://sscce.org> and share it at\
507− \ <https://github.com/elm-lang/error-message-catalog/issues>?\
507+ \ <https://github.com/elm/error-message-catalog/issues>?\
508508 \ That way we can figure out how to give better advice!"
509509 ]
510510
compiler/src/Reporting/Error/Type.hs+1−1
@@ -875,7 +875,7 @@ toExprReport source localizer exprRegion category tipe expected =
875875 , "But this update needs it to be compatable with:"
876876 , [ D.reflow
877877 "Do you mind creating an <http://sscce.org/> that produces this error message and\
878− \ sharing it at <https://github.com/elm-lang/error-message-catalog/issues> so we\
878+ \ sharing it at <https://github.com/elm/error-message-catalog/issues> so we\
879879 \ can try to give better advice here?"
880880 ]
881881 )
compiler/src/Type/Solve.hs+1−1
@@ -207,7 +207,7 @@ isGeneric var =
207207 ++ " " ++ show (ET.toDoc L.empty RT.None tipe) ++ " [rank = " ++ show rank ++ "]\n\n"
208208 ++
209209 "Please create an <http://sscce.org/> and then report it\n\
210− \at <https://github.com/elm-lang/elm-compiler/issues>\n\n"
210+ \at <https://github.com/elm/compiler/issues>\n\n"
211211
212212
213213
ui/browser/elm.json+11−11
@@ -5,21 +5,21 @@
55 ],
66 "elm-version": "0.19.0",
77 "dependencies": {
8− "elm-explorations/markdown": "1.0.0",
9− "elm-lang/browser": "1.0.0",
10− "elm-lang/core": "6.0.0",
11− "elm-lang/html": "3.0.0",
12− "elm-lang/http": "2.0.0",
13− "elm-lang/json": "1.0.0",
14− "elm-lang/project-metadata-utils": "1.0.0",
15− "elm-lang/svg": "3.0.0"
8+ "elm/browser": "1.0.0",
9+ "elm/core": "1.0.0",
10+ "elm/html": "1.0.0",
11+ "elm/http": "1.0.0",
12+ "elm/json": "1.0.0",
13+ "elm/project-metadata-utils": "1.0.0",
14+ "elm/svg": "1.0.0",
15+ "elm-explorations/markdown": "1.0.0"
1616 },
1717 "test-dependencies": {},
1818 "do-not-edit-this-by-hand": {
1919 "transitive-dependencies": {
20− "elm-lang/parser": "1.0.0",
21− "elm-lang/url": "1.0.0",
22− "elm-lang/virtual-dom": "3.0.0"
20+ "elm/parser": "1.0.0",
21+ "elm/url": "1.0.0",
22+ "elm/virtual-dom": "1.0.0"
2323 }
2424 }
2525}
ui/terminal/src/Main.hs+3−3
@@ -226,8 +226,8 @@ install =
226226 [ reflow
227227 "For example, if you want to get packages for HTTP and JSON, you would say:"
228228 , P.indent 4 $ P.green $ P.vcat $
229− [ "elm install elm-lang/http"
230− , "elm install elm-lang/json"
229+ [ "elm install elm/http"
230+ , "elm install elm/json"
231231 ]
232232 , reflow
233233 "Notice that you must say the AUTHOR name and PROJECT name! After running those\
@@ -318,7 +318,7 @@ diff =
318318 [ reflow
319319 "For example, to see what changed in the HTML package between\
320320 \ versions 1.0.0 and 2.0.0, you can say:"
321− , P.indent 4 $ P.green $ "elm diff elm-lang/html 1.0.0 2.0.0"
321+ , P.indent 4 $ P.green $ "elm diff elm/html 1.0.0 2.0.0"
322322 , reflow
323323 "Sometimes a MAJOR change is not actually very big, so\
324324 \ this can help you plan your upgrade timelines."
ui/terminal/src/Repl.hs+2−2
@@ -328,7 +328,7 @@ printWelcomeMessage =
328328 D.toAnsi IO.stdout $
329329 D.vcat
330330 [ D.black "----" <+> D.dullcyan title <+> D.black (D.fromString dashes)
331− , D.black " :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>"
331+ , D.black $ D.fromString $ "Read " <> D.makeLink "repl" <> " to learn more: exit, help, imports, etc."
332332 , D.black "--------------------------------------------------------------------------------"
333333 , D.empty
334334 ]
@@ -361,7 +361,7 @@ genericHelpMessage =
361361 \ :help Show this information\n\
362362 \ :reset Clear all previous imports and definitions\n\
363363 \\n\
364− \More info at <https://github.com/elm-lang/elm/blob/" ++ elmVersion ++ "/help/repl.md>\n"
364+ \More info at " ++ D.makeLink "repl" ++ "\n"
365365
366366
367367
ui/terminal/src/Terminal/Args/Helpers.hs+2−2
@@ -119,7 +119,7 @@ examplePackages string =
119119
120120 _ ->
121121 return
122− [ "elm-lang/http"
123− , "elm-lang/json"
122+ [ "elm/http"
123+ , "elm/json"
124124 , "elm-community/random-extra"
125125 ]