Skip to content

Commit be9ca93

Browse files
committed
Added common package names.
1 parent 45d15a6 commit be9ca93

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/Compiler/PackageName.gren

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,21 @@ module Compiler.PackageName exposing
1111
--
1212
, toString
1313
, toJson
14+
--
15+
, core
16+
, browser
17+
, node
1418
)
1519

1620

1721
{-| Functions for working with package identifiers.
1822

19-
@docs Package, author, name, fromString, cliParser, jsonDecoder, toString, toJson
23+
@docs Package, example, author, name, fromString, cliParser, jsonDecoder, toString, toJson
24+
25+
## Common package names
26+
27+
@docs core, browser, node
28+
2029
-}
2130

2231

@@ -149,3 +158,19 @@ toJson package =
149158
Json.string <| toString package
150159

151160

161+
{-| -}
162+
core : PackageName
163+
core =
164+
PackageName { author = "gren-lang", name = "core" }
165+
166+
167+
{-| -}
168+
browser : PackageName
169+
browser =
170+
PackageName { author = "gren-lang", name = "browser" }
171+
172+
173+
{-| -}
174+
node : PackageName
175+
node =
176+
PackageName { author = "gren-lang", name = "node" }

0 commit comments

Comments
 (0)