Closed CMCDragonkai closed 6 years ago
Just wanted to share the ability to use ppsh inside GHCi which is quite useful:
-- Pretty prints a showable expression or binding :def pp (\s -> return $ ":cmd return $ \":! echo '\" ++ show " ++ s ++ " ++ \"' | ppsh\ -- Pretty prints a string expression or binding :def pps (\s -> return $ ":cmd return $ \":! echo '\" ++ " ++ s ++ " ++ \"' | ppsh\"")
This means you don't have to import the pretty-show package for a project just to interactively explore nested structures.
Actually I think I have something wrong here.
Just wanted to share the ability to use ppsh inside GHCi which is quite useful:
This means you don't have to import the pretty-show package for a project just to interactively explore nested structures.