Elm's core libraries
Elm JavaScript Shell
Clone or download
Pull request Compare This branch is 7 commits ahead, 646 commits behind elm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.eslintrc
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
changelog.md
elm-package.json

README.md

Elm Core Libraries

Build Status

Every Elm project needs the core libraries. They provide basic functionality including:

  • The Basics — addition, subtraction, etc.
  • Data Structures — lists, dictionaries, sets, etc.
  • Signals — to make Elm programs reactive

Default Imports

In all Elm files there is a small set of default imports:

import Basics exposing (..)
import Debug
import List exposing ( List, (::) )
import Maybe exposing ( Maybe( Just, Nothing ) )
import Result exposing ( Result( Ok, Err ) )
import Signal exposing ( Signal )

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 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.