You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It occurred to me recently that my adventures in present that I ultimately decided wasn’t tenable in Haskell, might actually be tenable for Hell:
Hell only supports built-in types, or user-defined records/variants in the file, meaning Hell is capable of knowing all possible shapes of any runtime value, and be able to print them all, structurally (without Show).
This could be used for either a REPL, or —eval type of function, to show any value that a Hell script can conceive of.
With a terminal (e.g. brick), web or emacs, one could have an interactive, colourized, lazy expansion of any data structure (including infinite lists) out of the box (think CLIM, SLIME, DevTools or nushell).
Built in types being Tree, List, Vector, Map, tuples, Text, ByteString, Int, etc.
A user function like Hell.debug :: a -> Text (note, no type class constraint) is also viable, though would depart from Haskell, so I don’t like it. Whereas a mere command line flag would be ok.
I was watching a video about NuShell and thought, that kind of interactive display of data is actually quite viable for Hell if I combine the architectural designs from my present package and the helpful limitations of Hell.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It occurred to me recently that my adventures in present that I ultimately decided wasn’t tenable in Haskell, might actually be tenable for Hell:
—eval
type of function, to show any value that a Hell script can conceive of.Hell.debug :: a -> Text
(note, no type class constraint) is also viable, though would depart from Haskell, so I don’t like it. Whereas a mere command line flag would be ok.I was watching a video about NuShell and thought, that kind of interactive display of data is actually quite viable for Hell if I combine the architectural designs from my present package and the helpful limitations of Hell.
Beta Was this translation helpful? Give feedback.
All reactions