Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Util.HsPretty

Description

 

Synopsis

Documentation

pprint :: Show a => a -> IO () Source #

pshow :: Show a => a -> Text Source #

pshowStr :: Show a => Config -> a -> Text Source #

Like pshow, but if it's a string, return the string's text directly, or "" if it's ().

data Config Source #

Constructors

Config 

Fields

Instances

format :: (Syntax.HsExp -> Maybe.Maybe Text) -> Config -> String -> Text Source #

Parse the text as an expression and format it.