This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.1

Elm.Syntax.Declaration

Declarations Syntax

Types

type Declaration = FuncDecl Function | AliasDecl TypeAlias | TypeDecl Type | PortDeclaration FunctionSignature | InfixDeclaration Infix | Destructuring (Ranged Pattern) (Ranged Expression)

Union type that represents all different top level declarations.

module Elm.Syntax.Declaration
    exposing
        ( Declaration
            ( AliasDecl
            , Destructuring
            , FuncDecl
            , InfixDeclaration
            , PortDeclaration
            , TypeDecl
            )
        )

{-| Declarations Syntax


# Types

@docs Declaration

-}

import Elm.Syntax.Expression exposing (Expression, Function, FunctionSignature)
import Elm.Syntax.Infix exposing (Infix)
import Elm.Syntax.Pattern exposing (Pattern)
import Elm.Syntax.Ranged exposing (Ranged)
import Elm.Syntax.Type exposing (Type)
import Elm.Syntax.TypeAlias exposing (TypeAlias)


{-| Union type that represents all different top level declarations.
-}
type Declaration
    = FuncDecl Function
    | AliasDecl TypeAlias
    | TypeDecl Type
    | PortDeclaration FunctionSignature
    | InfixDeclaration Infix
    | Destructuring (Ranged Pattern) (Ranged Expression)