elm-in-elm/compiler/1.0.0

NOTE: the latest version is 1.0.1

Elm.Data.Import

The import statement.

  import Foo
  --> Import "Foo Nothing Nothing


  import Foo.Bar
  --> Import "Foo.Bar" Nothing Nothing


  import Foo as F
  --> Import "Foo" (Just "F") Nothing


  import Foo exposing (..)
  --> Import "Foo" Nothing (Just ExposingAll)


  import Foo as F exposing (..)
  --> Import "Foo" (Just "F") (Just ExposingAll)
type alias Import =
{ moduleName : ModuleName
, as_ : Maybe ModuleName
, exposing_ : Maybe Exposing
}