haskell / haskell/pretty

Missing exportations in the Text.PrettyPrint module

Open
#40 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
75
Forks
32
PR merge metrics
No merged PRs in 30d

Description

The [documentation](http://hackage.haskell.org/package/pretty-1.1.3.3/docs/Text-PrettyPrint.html) for `Text.PrettyPrint` says:

> This module should be used as opposed to the HughesPJ module. Both are equivalent though as this module simply re-exports the other.

However, for example the function `maybeParens` defined in `Text.PrettyPrint.HughesPJ` is not exported by `Text.PrettyPrint`:

```
import Text.PrettyPrint

foo :: Bool -> Doc -> Doc
foo = maybeParens

-- Test.hs:5:7: error:
-- Variable not in scope: maybeParens :: Bool -> Doc -> Doc
```

Note also that in the above documentation, the module name 'HughesPJ' should be 'Text.PrettyPrint.HughesPJ'.

pretty version: 1.1.3.3.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.