Advanced Types in Elm - Opaque Types
Charlie Koster
3453

OK, got it now. to answer to my own question, type alias is transparent, anyone who import the module will have the access to its inner working.

Implementing the same API as in opaque Type won’t prevent the user to manipulate the data inside.

Show your support

Clapping shows how much you appreciated Tony Gu’s story.