Ignore it. It’s an internal detail, “cheating” the Elm type system inside the core library, because the Decoder type is actually implemented in JavaScript. That strange definition inside Elm is just a placeholder to prevent the compiler from complaining.
2016-12-30 0:17 GMT+01:00 Adrian Ribao <[email protected]>: > Hi, > > I'm reading the source code of Json/Decode.elm and I find this code: > > type Decoder a = Decoder > > I've been working with elm for a few days now and I don't know what this > does exactly. I guess is a recursive union type, but I don't understand how > it works or why is useful. > > Thanks, > > Adrián > > -- > 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. > -- 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.
