aboutsummaryrefslogtreecommitdiff
path: root/hoogle-test/ref/type-sigs
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-07-20 03:01:16 -0700
committerAlexander Biehl <alexbiehl@gmail.com>2018-07-20 12:01:16 +0200
commit953e3eb86b57f468c68d6ec0c651e8b3feda1518 (patch)
tree65ea508b6730a9bf114b2210b18e4dba5b926a1b /hoogle-test/ref/type-sigs
parent9add5b561406cde1245f150deb3d2625e701399c (diff)
Refactor handling of parens in types (#874)
* Fix type parenthesization in Hoogle backend Ported the logic in the HTML and LaTeX backends for adding in parens into something top-level in 'GhcUtil'. Calling that from the Hoogle backend fixes #873. * Remove parenthesizing logic from LaTeX and XHTML backends Now, the only times that parenthesis in types are added in any backend is through the explicit 'HsParTy' constructor. Precedence is also represented as its own datatype. * List out cases explicitly vs. catch-all * Fix printing of parens for QuantifiedConstraints The priority of printing 'forall' types was just one too high. Fixes #877. * Accept HTML output for quantified contexts test
Diffstat (limited to 'hoogle-test/ref/type-sigs')
-rw-r--r--hoogle-test/ref/type-sigs/test.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/hoogle-test/ref/type-sigs/test.txt b/hoogle-test/ref/type-sigs/test.txt
index ec5f5043..1209279c 100644
--- a/hoogle-test/ref/type-sigs/test.txt
+++ b/hoogle-test/ref/type-sigs/test.txt
@@ -6,11 +6,11 @@
module ReaderT
newtype ReaderT r m a
-ReaderT :: r -> m a -> ReaderT r m a
+ReaderT :: (r -> m a) -> ReaderT r m a
[runReaderT] :: ReaderT r m a -> r -> m a
module ReaderTReexport
newtype ReaderT r m a
-ReaderT :: r -> m a -> ReaderT r m a
+ReaderT :: (r -> m a) -> ReaderT r m a
[runReaderT] :: ReaderT r m a -> r -> m a
runReaderT :: ReaderT r m a -> r -> m a