purescript-halogen-template icon indicating copy to clipboard operation
purescript-halogen-template copied to clipboard

Having the main component be a button is a bit misleading

Open garyb opened this issue 3 years ago • 4 comments

While this repo isn't necessarily meant as a direct learning resource, it's still going to be the first thing some people encounter when trying to get hands-on with Halogen.

Having the component in here as App/Button.purs is not very helpful with that, as in normal situations it would be something like App/Component.purs, which then might well have a button inside it, or a child button component or whatever. Basically, I feel like straight out of the box it's set up wrong for what someone would actually want as a starting point for a project.

garyb avatar Jun 28 '21 13:06 garyb

@garyb indeed, that's exactly where I'm now (just started with PS, playing with this repo).

Where can I find a more idiomatic PS project for learning? Thanks!

ocramz avatar Oct 22 '21 10:10 ocramz

You may be interested in the extended template by @and-pete: https://github.com/and-pete/purescript-halogen-template-extended

Or in the full application example, Real World Halogen: https://github.com/thomashoneyman/purescript-halogen-realworld

thomashoneyman avatar Oct 22 '21 14:10 thomashoneyman

You may be interested in the extended template by @and-pete: https://github.com/and-pete/purescript-halogen-template-extended

@ocramz You can also see the extended template previewed live via this Gist on TryPureScript to get a feel for its user sign-in/sign-out and page routing functionality.

and-pete avatar Oct 23 '21 02:10 and-pete

That's great, thank you!

ocramz avatar Oct 23 '21 07:10 ocramz