- Notifications
You must be signed in to change notification settings - Fork358
elm/core
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Every Elm project needs this package!
It providesbasic functionality like addition and subtraction as well asdata structures like lists, dictionaries, and sets.
New to Elm? Go toelm-lang.org for an overview.
The modules in this package are so common, that some of them are imported by default in all Elm files. So it is as if every Elm file starts with these imports:
importBasicsexposing (..)importListexposing (List,(::))importMaybeexposing (Maybe(..))importResultexposing (Result(..))importStringexposing (String)importCharexposing (Char)importTupleimportDebugimportPlatformexposing (Program)importPlatform.CmdasCmdexposing (Cmd)importPlatform.SubasSubexposing (Sub)
The intention is to include things that are both extremely useful and very unlikely to overlap with anything that anyone will ever write in a library. By keeping the set of default imports relatively small, it also becomes easier to use whatever version ofmap
suits your fancy. Finally, it makes it easier to figure out where the heck a function is coming from.