Comments (1)
Hm. If you build the Haddocks locally, then the link does work. The reason that it doesn't work on Hackage is because the link is here:
https://hackage.haskell.org/package/lens-5.2/src/images/Hierarchy.png
Instead of here:
https://hackage.haskell.org/package/lens-5.2/images/Hierarchy.png
Notice the additional src/
subdirectory in the first URL. You might think that you could fix the issue by changing the link to the local copy like so:
diff --git a/lens.cabal b/lens.cabal
index 6acf6115..5bf54a47 100644
--- a/lens.cabal
+++ b/lens.cabal
@@ -50,7 +50,7 @@ description:
.
<<http://i.imgur.com/ALlbPRa.png>>
.
- <images/Hierarchy.png (Local Copy)>
+ <src/images/Hierarchy.png (Local Copy)>
.
You can compose any two elements of the hierarchy above using @(.)@ from the @Prelude@, and you can
use any element of the hierarchy as any type it linked to above it.
But then the link will be broken if you build the Haddocks locally! Ugh.
Now that I look a little more closely, we've encountered this same issue in ekmett/semigroupoids#123. We were unable to figure out a consistent way to link to local images in Haddock and have it still work on Hackage, so we resorted to linking to a copy of the image on GitHub. This does work regardless of whether you view the Haddocks locally or on Hackage, but it's arguably not a "local" copy anymore.
In the absence of a better solution, I think we should just link to GitHub.
from lens.
Related Issues (20)
- Does not compile on GHC 9.2.2 (pre-release): Module ‘Data.Semigroup’ does not export ‘getOption’ HOT 2
- Add O(1) `Iso'`s for sets with map representations HOT 2
- `Bizarre` as a superclass of `IndexedComonadStore`?
- `Index` TypeFamily for `Ixed`/`At` inconsistent with FunDeps for `*WithIndex` HOT 3
- Compatibility with transformers-0.6 and mtl-2.3 HOT 12
- FYI: all dependencies should be GHC-9.4 compatible now HOT 2
- creately.com diagram template broken, blocks #828 HOT 2
- Expand tuple accessors to support 26-item tuples
- Add `Zoom` for `Control.Monad.Trans.WriterT.CPS` HOT 1
- Missing combinators for creating and consuming Fold1, and IndexedFold1 's
- Add a strict over? HOT 1
- Are state modifications supposed to be so lazy? HOT 1
- No accessors are generated when using `NoFieldSelectors` to remove prefixes. HOT 3
- Splitting Ixed/At/Contains into their own package HOT 2
- Build failure with GHC-9.6, mtl-2.3.1 but transformers-0.5 HOT 12
- Negative Index onto Text type results in returning first element HOT 4
- Add `toAlternativeOf`? HOT 7
- Declare Fields with Nested Records of types defined in same Splice HOT 1
- Change the link in github HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lens.