Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elm/core
Elm's core libraries
https://github.com/elm/core
array core dictionary elm json set
Last synced: 11 days ago
JSON representation
Elm's core libraries
- Host: GitHub
- URL: https://github.com/elm/core
- Owner: elm
- License: bsd-3-clause
- Created: 2014-10-14T23:33:13.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T22:20:36.000Z (3 months ago)
- Last Synced: 2024-10-08T12:14:31.039Z (about 1 month ago)
- Topics: array, core, dictionary, elm, json, set
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/elm/core/latest
- Size: 1.73 MB
- Stars: 2,795
- Watchers: 95
- Forks: 359
- Open Issues: 106
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - elm/core - Elm's core libraries (Elm)
README
# Core Libraries
Every Elm project needs this package!
It provides **basic functionality** like addition and subtraction as well as **data structures** like lists, dictionaries, and sets.
> **New to Elm?** Go to [elm-lang.org](https://elm-lang.org) for an overview.
## Default Imports
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:
```elm
import Basics exposing (..)
import List exposing (List, (::))
import Maybe exposing (Maybe(..))
import Result exposing (Result(..))
import String exposing (String)
import Char exposing (Char)
import Tupleimport Debug
import Platform exposing (Program)
import Platform.Cmd as Cmd exposing (Cmd)
import Platform.Sub as Sub exposing (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 of `map` suits your fancy. Finally, it makes it easier to figure out where the heck a function is coming from.