passy / purescript-halogen-intro-config

Halogen Config Example
0 stars 0 forks source link

You need ReaderT instead of Reader #1

Open eryx67 opened 9 years ago

eryx67 commented 9 years ago

Thank you for sharing your scaffolding code(I'm very new to JS infrastructure).

Quickly looking at your code I can say that you need transformer ReaderT instead of plain Reader because you are working in context of two monads, use lift to access inner one inside ReaderT.

Sorry if you'll find my comments plain and stupid.

passy commented 9 years ago

Thanks for your input. It's been awhile since I've touched this, but if I remember correctly the problem was that Component is not a monad, so you can't use that as part of your Monad stack. If you want to try to get this to work and open a pull request, I'd love to take a look at that! :)