| Commit message (Collapse) | Author | Age | Files | Lines | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
Commit e41c1cbe9f0476997eac7b4a3f17cbc6b2262faf added a call to
e.preventDefault() when handling click events that reach a toggle
element. This prevents the browser from following hyperlinks within the
Synopsis section when they are clicked by a user. This commit restores
functioning hyperlinks within the Synopsis section by removing the call
to e.preventDefault(), as it does not appear to be necessary, and
removing it increases the flexibility of the details-helper code.
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |\   | 
 | 
| | | 
| | 
| | 
| |  | 
(cherry picked from commit 2fec1b44e0ee7e263286709aa528b4ecb99ac6c2)
 | 
| | | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| |  | 
* Update index.rst
Common errors page
* Create common-errors.rst
* Update common-errors.rst
* Use GHC 9.2 in CI runner (#1378)
* [haddock-api] remove .hspec-failures
Co-authored-by: Hécate Moonlight <Kleidukos@users.noreply.github.com>
 | 
| |/   | 
 | 
| | 
| 
| 
|  | 
(cherry picked from commit cafb48118f7c111020663776845897e225607b41)
 | 
| |  | 
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
As landed via https://gitlab.haskell.org/ghc/ghc/-/merge_requests/2418
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
This catches up to GHC using the new extractTHDocs function, which
returns documentation added via the putDoc function (provided it was
compiled with Opt_Haddock). Since it's already a map from names -> docs,
there's no need to do traversal etc.
It also matches the change from the argument map being made an IntMap
rather than a Map Int
 | 
| |  | 
 | 
| |  | 
 | 
| |\   | 
 | 
| | | 
| | 
| | 
| |  | 
Explicit the imports from GHC.HsToCore.Docs
 | 
| | |  | 
 | 
| | |  | 
 | 
| | |\  
| | | 
| | |  | 
Add UnitId to Target record
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| | |\ \  
| | |/  
| |/|    | 
Stable sort for instances
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| |/ /  
| |   
| |   
| |   
| |   
| |    | 
This prevents noLoc's appearing in the ParsedSource.
Match the change in GHC.
 | 
| | |  | 
 | 
| |\ \  
| | | 
| | |  | 
Logger refactoring
 | 
| | |/   | 
 | 
| |\|  | 
 | 
| | |\   | 
 | 
| | | |\   | 
 | 
| | | | |  | 
 | 
| | | |/   | 
 | 
| | | |  | 
 | 
| | |\|  | 
 | 
| | | |\  
| | | | 
| | | |  | 
Add `NoGhcTc` instance now that it's not closed
 | 
| | | | |  | 
 | 
| | | |/  
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | |    | 
With the introduction of GHC2021, the `Languages` data type in GHC will
grow. In preparation of that (and to avoid changing haddock with each
new language), this change makes the code handle extensions to that data
type gracefully.
(cherry picked from commit c341dd7c9c3fc5ebc83a2d577c5a726f3eb152a5)
 | 
| | | |\  
| | | | 
| | | |  | 
Fix after binder collect changes
 | 
| | | | |  | 
 | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | |  | 
I found that when running as a plugin the lookupName function (which
runs in Ghc monad) does not work correctly from the
typeCheckResultAction hook.
Instead, we abstracted the monad used when creating interfaces, so
that access to GHC session specific parts is explicit and so that the
TcM can provide their (correct) implementation of lookupName.
 | 
| | | | | 
| | | | 
| | | | 
| | | |  | 
It translates to `--ghcopt=-j[n]`
 | 
| | | | |  | 
 | 
| | | | |  | 
 | 
| | |\ \ \  
| | |/ /  
| |/| |    | 
 | 
| | |\ \ \  
| | | | | 
| | | | |  | 
Changes to support -j with backpack
 | 
| | | | | |  | 
 | 
| | |/ / /  
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |   
| | | |    | 
The getGADTConTypeG used HsRecTy, which is at odds with GHC issue #18782.
I noticed that getGADTConTypeG was only used in the Hoogle backend.
Interestingly, when handling H98 constructors, Hoogle converts RecCon to
PrefixCon (see Haddock.Backends.Hoogle.ppCtor).
So I changed getGADTConTypeG to handle RecConGADT in the same manner as
PrefixConGADT, and after this simplification moved it into the 'where'
clause of ppCtor, to the only place where it is used.
The practical effect of this change is as follows.
Consider this example:
	data TestH98 = T98 { bar::Int }
	data TestGADT where
	  TG :: { foo :: Int } -> TestGADT
Before this patch,  haddock --hoogle  used to produce:
	T98 :: Int -> TestH98
	[TG] :: {foo :: Int} -> TestGADT
Notice how the record syntax was discarded in T98 but not TG.
With this patch, we always produce signatures without record syntax:
	T98 :: Int -> TestH98
	[TG] :: Int -> TestGADT
I suspect this might also be a bugfix, as currently Hoogle doesn't seem
to render GADT record constructors properly.
 |