Search code examples
moduleceylon

Using modules in Ceylon


I'm checking out Ceylon. I want to play with the HTML module, but have no idea how to import it. IMHO the documentation about modules do not address this simple task.

Thank you Gilad


Solution

  • You need to add it to your module descriptor, as described in this section.

    module your.module "1.0.0" {
        import ceylon.html "1.2.2";
    }
    

    If you’re on the web IDE, you’ll need to check the “Advanced” checkbox (to the right of Run / Stop / Clean / Share) to see the module.ceylon file.