xvaldetaro / purescript-hyrule-paraglider

Explore Hyrule with of Paraglider Rx-inpired operators
6 stars 0 forks source link

Proposal: make the github.io page a storybook of functions with small examples using deku #3

Open mikesol opened 2 years ago

mikesol commented 2 years ago

Each function in the lib (memoBeh, take, etc) could have its own small component in a storybook-like presentation where one can open up the example on trypurescript and edit it further.

xvaldetaro commented 2 years ago

Yea. I hope I can do that! I will try at least to put an example in trypurescript with a link in the code. I do need to publish this though

xvaldetaro commented 2 years ago

I started a page https://xvaldetaro.github.io/purescript-deku-starter/ It is not in this repo for now. I will create a ghpages branch here that has only the webpage at some point. I gave up on that idea of parameterizing everything and creating a complex page where you could connect operators generically. I have limited time off to play with this and when I get back to work I might not have any free time for Purescript

xvaldetaro commented 2 years ago

There you go. Moved it to the repo https://xvaldetaro.github.io/purescript-hyrule-paraglider/ and added to the README. These are all the Operators that I know how to implement a demo for.

Unfortunately, all the interop Effect/Aff/Event and the ones that return m (AnEvent m a) I can't do it because I don't know how to solve type issue with m not maching Effect when using them with Deku. I guess it will all be solved by Zora, right?

xvaldetaro commented 2 years ago

@mikesol do you think we should add Hyrule's operators to the page as well?

mikesol commented 2 years ago

Nice!

@mikesol do you think we should add Hyrule's operators to the page as well?

Yeah that's a good idea.