Documentation garbles backslashes, leading to incomprehensible examples
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- haskell
- Ambito
- documentation
Direzione di ricerca
Inizia confrontando la documentazione generata di Language-LSP-Server con il codice sorgente collegato di Language.LSP.Server.Core, concentrandoti su come il generatore della documentazione gestisce i backslash negli esempi di codice. Individua il percorso di escaping e verifica che gli snippet generati preservino la sintassi lambda in tutta la documentazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Consider, for example: https://hackage.haskell.org/package/lsp-2.7.0.1/docs/Language-LSP-Server.html#v:interpretHandler
The code snippet reads:
ServerDefinition { ...
, doInitialize = env _req -> pure $ Right env
, interpretHandler = env -> Iso
(runLspT env) -- how to convert from IO ~> m
liftIO -- how to convert from m ~> IO
}
Making people wonder what strange new language extension syntax that may be. (Arrows perhaps?)
But looking at the source, it turns out, it is just lambdas:
-- @
-- ServerDefinition { ...
-- , doInitialize = \env _req -> pure $ Right env
-- , interpretHandler = \env -> Iso
-- (runLspT env) -- how to convert from IO ~> m
-- liftIO -- how to convert from m ~> IO
-- }
-- @
It seems the backslashes got eaten due to an escaping mechanism in the documentation generator.
This is a problem throughout all of the documentation.
So I kindly ask if you could fix that, so it becomes understandable? :)
(BTW: I very much miss an actual guide on how to use this. A reference documentation is of course nice, but an actual guide/howto/intro, even if short, would make it possible to understand how it is meant to be used in its entirety. Not even the library and functions to start with is clear as it is, and must be dug up. Unfortunately this is a common problem with Haskell package documentation. Maybe while we’re at it, a quick thing could be added. haskell-language-server is really way too large to serve as an example for a beginner. :-/)
- Lingua principale
- Haskell
- Stelle
- 426
- Fork
- 107
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di haskell/lsp
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
-
Optimize `instance Eq NormalizedFilepath`?!Forse già presa @sjakobi l’ha presa 381 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Improve snippet sanitizationApertaZuriHac
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
haskell/bytestring#730 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
seal-harness/seal-harness#399 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-frp/reflex#563 ·