stil4m/elm-syntax/3.1.3

NOTE: this package is not compatible with Elm 0.19.1

Elm.Interface

Elm.Interface

Types

type alias Interface =
List Exposed

An interface

type Exposed
= Function String
| Type ( String, List String )
| Alias String
| Operator Infix

Union type for the things that a module can expose

Functions

build : RawFile -> Interface

Build an interface from a file

exposesAlias : String -> Interface -> Bool

Interface property whether a certain alias is exposed.

exposesFunction : String -> Interface -> Bool

Interface property whether a certain function is exposed.

operators : Interface -> List Infix

Retrieve all infix operators exposed