Skip to content

Instantly share code, notes, and snippets.


Javier Neira jneira

View GitHub Profile
View cmd check issues
Meta issue: why do we have labels Cabal: cmd/check and cabal-install: cmd/check ? Cabal: cmd/check cabal-install: cmd/check meta: tracking
#8185 opened yesterday by andreasabel
cabal check error location not propagated ("unexpected SecArgName") attention: pr-welcome Cabal: cmd/check Cabal: parser re: error-message type: bug
#7846 opened on 1 Dec 2021 by andreasabel
Encourage top-level build-depends when it occurs in all branches of a conditional Cabal: cmd/check re: conditional type: enhancement
#7768 opened on 23 Oct 2021 by andreasabel
cabal check warns about -O2 even if it is just a flag Cabal: cmd/check re: -O2 re: flag type: bug
View PackageTests.CustomPreProcess.log
PS D:\dev\ws\haskell\cabal> cabal run --builddir .\dist-val-ghc-8.10.7\ cabal-testsuite:exe:cabal-tests -- .\cabal-testsuite\PackageTests\CustomPreProcess\setup.test.hs --with-cabal $CABAL_CMD
Up to date
"D:\ghcup\bin\runghc.exe" "--" "--ghc-arg=-i" "--ghc-arg=-no-user-package-db" "--ghc-arg=-package-db" "--ghc-arg=D:\cabal\store\ghc-8.10.7\package.db" "--ghc-arg=-package-db" "--ghc-arg=D:\dev\ws\haskell\cabal\dist-val-ghc-8.10.7\packagedb\ghc-8.10.7" "--ghc-arg=-package-id" "--ghc-arg=Cabal-" "--ghc-arg=-package-id" "--ghc-arg=Cabal-syntax-" "--ghc-arg=-package-id" "--ghc-arg=async-2.2.4-95020977405be35391cd1ff29177d0d573277564" "--ghc-arg=-package-id" "--ghc-arg=base-" "--ghc-arg=-package-id" "--ghc-arg=cabal-testsuite-3-inplace" "--ghc-arg=-package-id" "--ghc-arg=clock-0.8.3-dabe425044590505b9f094b194448f133b7ed57b" "--ghc-arg=-package-id" "--ghc-arg=exceptions-0.10.4" "--ghc-arg=-package-id" "--ghc-arg=filepath-" "--ghc-arg=-package-id" "--ghc-arg=optparse-app
View cabal-dynhls.project.local
package haskell-language-server
ghc-options: -dynamic
View ghcup.error.log
> cabal install -w ghc-8.8.4
Building executable 'hsc2hs' for hsc2hs-0.68.7..
[ 1 of 12] Compiling ATTParser ( ATTParser.hs, dist\build\hsc2hs\hsc2hs-tmp\ATTParser.o )
[12 of 12] Compiling Main ( Main.hs, dist\build\hsc2hs\hsc2hs-tmp\Main.o )
Linking dist\build\hsc2hs\hsc2hs.exe ...
realgcc.exe: error: LEVEL=6: No such file or directory
ghc.exe: panic! (the 'impossible' happened)
(GHC version 8.8.4 for x86_64-unknown-mingw32):
View gist:50f06d70bd39177edb2a7f539ec3d69d
D:\ws\haskell\ghcup-hs>cabal build
Build profile: -w ghc-8.6.5 -O2
In order, the following will be built (use -v for more details):
- libarchive- (lib:libarchive) (requires build)
- yaml-streamly-0.12.0 (lib) (requires build)
- ghcup- (lib) (first run)
- ghcup- (test:ghcup-test) (first run)
- ghcup- (exe:ghcup) (first run)
[1 of 1] Compiling Main ( D:\ws\haskell\ghcup-hs\dist-newstyle\tmp\s
rc-13672\libarchive-\dist\setup\setup.hs, D:\ws\haskell\ghcup-hs\dist-new
View autoconf-2.71.log
PS D:\dev\ws\haskell\issues\network-> D:\bin\cabal.exe build
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
- network- (lib:network) (first run)
Configuring network-
configure: WARNING: unrecognized options: --with-compiler
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-msys
checking for gcc... D:\ghcup\ghc\8.10.7\lib\../mingw/bin\gcc.exe
checking whether the C compiler works... yes
View stack-check.log
D:\ws\haskell\stack-test>stack --version
Version, Git revision 016cb8490f5c5b6e8a0fa3c9cf1172f64b5810d9 x86_64 hp
D:\ws\haskell\stack-test>where stack
D:\ws\haskell\stack-test>dir %STACK_ROOT%\hooks\
El volumen de la unidad D es Datos
El número de serie del volumen es: 6EEC-72D7
View stack build output
stack : Version 2.8.0, Git revision ad4849e7689b823a0300cba938ebff85ebd1d470 (dirty) (8357
commits) PRE-RELEASE x86_64
En línea: 1 Carácter: 1
+ stack build -v 2>&1 | out-file .\output.txt
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Version 2.8.0, ...-RELEASE x86_64:String) [], RemoteE
+ FullyQualifiedErrorId : NativeCommandError
Compiled with:
View bootstrap-haskell.ps1.log
PS D:\> .\bootstrap-haskell.ps1
Advertencia de seguridad
Ejecute sólo los scripts de confianza. Los archivos procedentes de Internet
pueden ser útiles, pero algunos archivos podrían dañar su equipo. ¿Desea
ejecutar D:\bootstrap-haskell.ps1?
[N] No ejecutar [Z] Ejecutar una vez [U] Suspender [?] Ayuda
(el valor predeterminado es "N"):Z
Preparing for GHCup installation...
First checking for Msys2...
jneira /
Last active Apr 29, 2021
gsoc proposal

Title Incorporating semantic tokens and call hierarchies into the Haskell Language Server


Version 3.16.0 of the Language Server Protocol (LSP) introduces the notion of semantic tokens and call hierarchies. Semantic tokens allow for coloring of specific tokens in a document by allowing the server to specify their type (ie, function, “static” modifier, type, etc.) Call hierarchies allow programmers to see the incoming and outgoing call sites for functions. Currently, Haskell’s