In my PureScript 'Main' module, in file Main.purs, something like this:-
test :: Boolean
test = true
will be exported in the compiled, bundled and optimised JavaScript output, and will be available to my JS code.
But if I have another .purs file (in the same src
folder), which declares another module, and it has:-
test1 :: Boolean
test1 = true
then this is not exported in the output JS when pulp
builds the project.
I tried importing the other module into Main.purs, but got an error saying that the import was redundant.
What should I do to have test1
appear in the built JavaScript file?