haskellleksah

Leksah without main


Is there a way to program in Leksah without creating a main function/module, to test small functions and programns, for example? Can't I just creat a new module and use it?

Thank you


Solution

  • Leksah is designed to get you to structure your whole major project correctly from the start. If you want to use it for a quick editor, recognise that's not what it's for, but you can make a workaround:

    Make a new workspace and package called Scratch/Scratchpad/Temp, with just one module in it. Use it when you just want to mess around a bit, and clear it out when you're starting something else.