diff options
author | Yuchen Pei <hi@ypei.me> | 2022-07-18 12:29:27 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-07-22 10:11:06 +1000 |
commit | abdb7d9f6af3d35c991e421481857bbd6b4cddb6 (patch) | |
tree | fc5f960770e0aef31a89d6aaacddcb72d26a2d8f /haddock-api/src/Haddock/Backends/Org | |
parent | bc7305a1f89a5c6c2ee0cd6ce5de423e9b477a84 (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 |