diff options
author | Yuchen Pei <hi@ypei.me> | 2022-07-18 12:29:27 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-07-22 23:58:31 +1000 |
commit | d7116ec423228dfa142573b14bda03564981cb2e (patch) | |
tree | 1289287667ccb3ecc9b79be26fd7f37e86911a6c /haddock-api/src/Haddock/Backends/Org | |
parent | ade326ccab4ad7fbefe8a7e5594f555f8e4e4f23 (diff) |
Adding hackage url to top level decl properties
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Org')
-rw-r--r-- | haddock-api/src/Haddock/Backends/Org/Types.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/haddock-api/src/Haddock/Backends/Org/Types.hs b/haddock-api/src/Haddock/Backends/Org/Types.hs index 81f2add5..3bfc8619 100644 --- a/haddock-api/src/Haddock/Backends/Org/Types.hs +++ b/haddock-api/src/Haddock/Backends/Org/Types.hs @@ -187,6 +187,9 @@ orgToString = fullRender (PageMode True) 0 1 txtPrinter "" cIdProp :: String -> Properties cIdProp cid = [("CUSTOM_ID", cid)] +hackageProp :: String -> Properties +hackageProp url = [("Hackage", url)] + cIdsProp :: [String] -> Properties cIdsProp cids = map (\cid -> ("CUSTOM_ID", cid)) cids |