Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display instances #12

Open
o1lo01ol1o opened this issue Feb 2, 2017 · 1 comment
Open

Display instances #12

o1lo01ol1o opened this issue Feb 2, 2017 · 1 comment

Comments

@o1lo01ol1o
Copy link

Raised this in gutter yesterday and am adding some notes here.

My basic thought was that it would be great to be able to define Display instances for types in the same way as one defines Show instances. Depending on how the architecture of HaskellDO evolves, I saw this effectively as compiling the instance to a JavaScript function (ghcjs) and embedding the js in the frontend. Some instances would probably need to take some form of state to update the rendered html/svg so that subsequent calls don't recompile the js on refresh.

Additionally, one could also define interfaces that would paramterize types like the mat lab functionality of creating inline sliders etc.

@NickSeagull NickSeagull added this to Backlog in HaskellDO Feb 2, 2017
@NickSeagull NickSeagull removed this from Feature ideas in HaskellDO Feb 2, 2017
@NickSeagull NickSeagull added this to Proposed features in HaskellDO Feb 2, 2017
@NickSeagull NickSeagull moved this from Backlog to In progress in HaskellDO Feb 27, 2017
@NickSeagull
Copy link
Member

Now Haskell.do allows rendering HTML/JS without any special stuff just putStrLn "String that contains HTML and JS" and it's done

@NickSeagull NickSeagull moved this from In progress to Backlog in HaskellDO Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
HaskellDO
Backlog
Development

No branches or pull requests

2 participants