elm-in-elm/compiler/1.0.0

NOTE: the latest version is 1.0.1

Elm.Data.Exposing

The exposing (...) line of module header and import statements.

module Foo exposing (..)
--> ExposingAll


module Foo exposing (bar)
--> ExposingSome [ExposedValue "bar"]


module Foo exposing (Bar)
--> ExposingSome [ExposedType "Bar"]


module Foo exposing (Bar(..))
--> ExposingSome [ExposedTypeAndAllConstructors "Bar"]
= ExposingAll
| ExposingSome (List ExposedItem)
= ExposedValue VarName
| ExposedType VarName
| ExposedTypeAndAllConstructors VarName
name : ExposedItem -> VarName

Unwraps the variable or type name from the ExposedItem.

name (ExposedValue "foo")
--> "foo"


name (ExposedType "Foo")
--> "Foo"


name (ExposedTypeAndAllConstructors "Foo")
--> "Foo"