diff options
author | Simon Jakobi <simon.jakobi@gmail.com> | 2018-06-14 09:18:35 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-06-14 10:03:28 -0400 |
commit | 69b50efe08bdd09de0b4f0208fe52804ad938853 (patch) | |
tree | 948e388faab4d574ca8b0b4be91ffda5b7312b4c /testsuite/tests/showIface | |
parent | 87d691c025fa7cff44717d9a860d40bae2dc4cc9 (diff) | |
download | haskell-69b50efe08bdd09de0b4f0208fe52804ad938853.tar.gz |
Fix deserialization of docs (#15240)
We were using Map.fromDistinctAscList to deserialize a
(Map Name HsDocString). As the Names' Uniques had changed, we
ended up with an invalid map in which we couldn't lookup certain keys.
Switching to Map.fromList fixed the issue.
Added comments in several places.
Reviewers: alexbiehl, hvr, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
GHC Trac Issues: #15240
Differential Revision: https://phabricator.haskell.org/D4816
Diffstat (limited to 'testsuite/tests/showIface')
-rw-r--r-- | testsuite/tests/showIface/DocsInHiFile1.stdout | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/testsuite/tests/showIface/DocsInHiFile1.stdout b/testsuite/tests/showIface/DocsInHiFile1.stdout index fcb5f94f71..2576c2560c 100644 --- a/testsuite/tests/showIface/DocsInHiFile1.stdout +++ b/testsuite/tests/showIface/DocsInHiFile1.stdout @@ -4,28 +4,25 @@ module header: '<>', ':=:', 'Bool' " declaration docs: - D': - " Another datatype... - - ...with two docstrings." - P: - " A class" - p: - " A class method" + elem: + " '()', 'elem'." D: " A datatype." D0: " A constructor for 'D'. '" D1: " Another constructor" - elem: - " '()', 'elem'." + P: + " A class" + p: + " A class method" $fShowD: " 'Show' instance" + D': + " Another datatype... + + ...with two docstrings." arg docs: - p: - 0: - " An argument" add: 0: " First summand for 'add'" @@ -33,4 +30,7 @@ arg docs: " Second summand" 2: " Sum" + p: + 0: + " An argument" |