Fix test refs
Accept several changes in Hoogle tests: Pretty printing logic no longer prints the `(Proxy (Proxy (...))` chain in Bug806 with parentheses. Since this test was only meant to verify that line breaks do not occur, accept the change. `tyThingToLHsDecl` is called for class and data declarations, which ends up "synifying" the type variables and giving unlifted types kind signatures. As a result, type variables of kind `Type -> Type` are now printed with kind signatures in Hoogle output. This could be changed by manually drop kind signatures from class variables in the Hoogle backend if the behavior is deemed unacceptable. Sometimes subordinate declarations are exported separate from their parent declarations (e.g. record selectors). In this case, a type signature is cobbled together for the export item in `extractDecl`. Since this type signature is very manually constructed, it may lack kind signatures of decls constructed from `tyThingToLHsDecl`. An example of this is the `type-sigs` Hoogle test. Change `*` to `Type` in Hoogle test refs. I don't think this will break Hoogle behavior, since it appears to not consider type signatures in search. I have not fully verified this.
Showing
- haddock-api/src/Haddock/Backends/Hoogle.hs 70 additions, 49 deletionshaddock-api/src/Haddock/Backends/Hoogle.hs
- haddock-api/src/Haddock/Convert.hs 4 additions, 3 deletionshaddock-api/src/Haddock/Convert.hs
- haddock-api/src/Haddock/Interface/Create.hs 5 additions, 2 deletionshaddock-api/src/Haddock/Interface/Create.hs
- hoogle-test/ref/Bug722/test.txt 1 addition, 1 deletionhoogle-test/ref/Bug722/test.txt
- hoogle-test/ref/Bug806/test.txt 4 additions, 4 deletionshoogle-test/ref/Bug806/test.txt
- hoogle-test/ref/Bug825/test.txt 1 addition, 1 deletionhoogle-test/ref/Bug825/test.txt
- hoogle-test/ref/Bug992/test.txt 2 additions, 2 deletionshoogle-test/ref/Bug992/test.txt
- hoogle-test/ref/classes/test.txt 1 addition, 1 deletionhoogle-test/ref/classes/test.txt
- hoogle-test/ref/type-sigs/test.txt 6 additions, 6 deletionshoogle-test/ref/type-sigs/test.txt
Loading
Please register or sign in to comment