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

Pretty printing #5

Closed
2 of 3 tasks
sharkdp opened this issue Jan 5, 2016 · 2 comments
Closed
2 of 3 tasks

Pretty printing #5

sharkdp opened this issue Jan 5, 2016 · 2 comments

Comments

@sharkdp
Copy link
Owner

sharkdp commented Jan 5, 2016

Considering advantages of FlareCheck over testing in psci, there is certainly one field where we could make use of the browser environment: showing the output in useful/nice ways.

For example:

  • Pretty-print complex ADTs in a nice way (maybe with parts that can be hidden / folded away). I'm not sure how this can be done in general...
  • Render Left (...), Nothing or false with a red background and Right (...), Just (...) and true with a green background.
  • Render big arrays/lists in a nice way (hide some elements initially but have a "Full output" button..)
@sharkdp
Copy link
Owner Author

sharkdp commented Jan 5, 2016

Also, one could provide additional information for some types:

Output: "foo"
Type: String
Length: 3
Output: [2.3, 1.5]
Type: Array Number
Length: 2

@sharkdp
Copy link
Owner Author

sharkdp commented Jan 5, 2016

For the ADT part, we can actually use purescript-generics (?).

sharkdp added a commit that referenced this issue Jan 18, 2016
Big update to pretty printing

We now depent fully on Generic instead of Show. This allows us to use
all the information in the GenericSpine to do syntax highlighting and
interactive tooltips.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant