Skip to content
Discussion options

You must be logged in to vote

I fixed this issue by editing my Main.purs file from here -

exposes: {
      "./Main": "./src/Main.purs"
  }

I've added a function default which accepts Element as an argument, so now when I load the module, I can do module.default(ElementRef) and application will be loaded in the desired element.

So it looks something like this:

default :: Fn1 HTMLElement (Effect Unit)
default elem = HA.runHalogenAff do
  runUI App.component unit elem

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aquarazorda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant