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

Type Syntax

Types

type alias Type = { name : String , generics : List String , constructors : List ValueConstructor }

Syntax for a type

type alias ValueConstructor = { name : String , arguments : List (Ranged TypeAnnotation) , range : Range }

Syntax for a type value constructor

module Elm.Syntax.Type exposing (Type, ValueConstructor)

{-| Type Syntax


# Types

@docs Type, ValueConstructor

-}

import Elm.Syntax.Range exposing (Range)
import Elm.Syntax.Ranged exposing (Ranged)
import Elm.Syntax.TypeAnnotation exposing (TypeAnnotation)


{-| Syntax for a type
-}
type alias Type =
    { name : String
    , generics : List String
    , constructors : List ValueConstructor
    }


{-| Syntax for a type value constructor
-}
type alias ValueConstructor =
    { name : String
    , arguments : List (Ranged TypeAnnotation)
    , range : Range
    }