型
code:Elm
type alias MyInt = Int
別名付け
code:Elm
type Msg = A | B | C
Custom Type
旧名 Union Type
code:Elm
type Maybe a = Just a | Nothing
code:Elm
type Result err ok = Ok ok | Err err
複数
code:ELm
type alias Result ok = Result MyError ok
型変数を一個固定しつつalias
record
code:Elm
type alias User = { name : String }
recordをaliasする
exposing
(..)