Hi

I am asking why* type alias* instead of just *type*, to declare record. 

type X
    = T1
    | T2


type alias X1 =
    X

*-- why not just type here*
type alias Y =
    { a : Int
    , b : Int
    }


type alias Y1 =
    Y


Samples:


a1  : X          -- Ok
a2  : X1         -- Ok
a3 : T1  | T2    -- Error


b1 : Y                    -- Ok
b2 : Y1                   -- Ok
b3 : { a: Int , b : Int } -- Ok



regards
Franček 

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to