-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
allow non-balanced brackets, parens, etc #27
Comments
Since pretty-simple is by design for data types with a Show instance I do not consider it a bug. The Haskell Report has the following to say about Show:
We can reasonably expect the input to be balanced. |
@dminuoso There are many commonly used data types with non-syntactically-correct |
Here is an example of this failing to pretty-print something with non-balanced parenthesis: $ ghci
> import Text.Pretty.Simple
> import Data.Text.Lazy
> putStrLn $ unpack $ pString "Just \"hello\" ) 3345"
Just "hello" You can see that everything after the |
#52 is another instance of things being dropped after non-balanced parenthesis. This should really be fixed. |
Pretty-simple doesn't currently allow non-balanced brackets, parens, etc.
This should be considered a bug. This is also related to #5.
The text was updated successfully, but these errors were encountered: