To simplify development, Elm automatically imports several common modules into every Elm file. You do not need to manually import these modules to use their functionality. The default imports include:
Basics: Basic arithmetic and functions.List: List operations and the cons operator (::).Maybe: The Maybe type and its constructors.Result: The Result type and its constructors.String: The String type.Char: The Char type.Tuple: Tuple support.Debug: Debugging utilities.Platform: The Program type.Platform.Cmd: Command support (Cmd).Platform.Sub: Subscription support (Sub).
import Basics exposing (..)
import List exposing (List, (::))
import Maybe exposing (Maybe(..))
import Result exposing (Result(..))
import String exposing (String)
import Char exposing (Char)
import Tuple
import Debug
import Platform exposing (Program)
import Platform.Cmd as Cmd exposing (Cmd)
import Platform.Sub as Sub exposing (Sub)