Cindiary/elm-id/7.1.0

Id

Module in which the base Id type is defined

Types

type alias Id a =
Id a

The basis for making a Id type, has one generic type argument which should be an internal type to the module the Id type is defined in.

module UserId exposing(Id)


import Id


type alias Id = Id.Id IdInternal


type IdInternal = IdInternal
type alias Counter id =
Counter id
type alias Dict id value =
Dict id value

Alias for Id.Dict.Dict

type alias Set id =
Set id

Alias for Id.Set.Set

type alias CounterDict id value =
CounterDict id value
type alias Dict_ counter id value =
Dict_ counter id value

Alias for Id.Dict.Dict_

type alias List id value =
List id value

Alias for 'Id.List.List'

type alias CounterList id value =
CounterList id value

Functions

toString : Id a -> String

Converts an Id into a string representing the number inside the Id

debugId : (String -> Never) -> Int -> Id a

Create an Id with an arbitrary value for debugging purposes. Requires 'Debug.todo' as a first argument

Parser

parser : Parser (Id a)

Parser for 'Id'

Json

encode : Id a -> Value

Encode Id to a JSON value

decoder : Decoder (Id a)

JSON Decoder for Id