cdepillabout / pretty-simple

pretty-printer for Haskell data types that have a Show instance
https://hackage.haskell.org/package/pretty-simple
BSD 3-Clause "New" or "Revised" License
243 stars 29 forks source link

add pPrintString function #53

Closed cdepillabout closed 4 years ago

cdepillabout commented 4 years ago

Often I want a function like the following:

pPrintString :: MonadIO m => String -> m ()

This would be similar to pPrint and pString.

pPrint actually prints out something Showable to the console, while pString takes a haskell datatype that has been showed and pretty prints it to a Text.

pPrintString would take a Haskell datatype that has already been showed and pretty prints it to the screen.

sureyeaah commented 4 years ago

I'd like to work on this :)

cdepillabout commented 4 years ago

@sureyeaah Thanks! Please go ahead!