Skip to content

Instantly share code, notes, and snippets.

View jneira's full-sized avatar
:octocat:

Javier Neira jneira

:octocat:
View GitHub Profile
using 'D:\dev\ws\haskell\ghcide' as project root
Tree
~~~~
aeson-pretty-0.8.8
[aeson-pretty-0.8.8:exe:"aeson-pretty"]
├─ aeson-1.5.1.0
│ ├─ attoparsec-0.13.2.4
│ │ ├─ array-0.5.3.0
@jneira
jneira / hls.log
Created May 28, 2020 14:28
Full log opening three modules in hls
haskell-lsp:Starting up server ...
2020-05-28 16:10:23.4520406 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":1444,"clientInfo":{"name":"vscode","version":"1.45.1"},"rootPath":"d:\\dev\\ws\\haskell\\hls","rootUri":"file:///d%3A/dev/ws/haskell/hls","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true}
haskell-lsp:Starting up server ...
2020-05-24 21:46:35.0251855 [ThreadId 4] - ---> {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":7000,"clientInfo":{"name":"vscode","version":"1.45.1"},"rootPath":"d:\\dev\\ws\\haskell\\hls","rootUri":"file:///d%3A/dev/ws/haskell/hls","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true}
@jneira
jneira / completions.log.txt
Last active May 22, 2020 07:54
ghcide tests reults
Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
- ghcide-0.1.0 (exe:ghcide-test-preprocessor) (configuration changed)
- shake-0.19 (lib) (configuration changed)
- ghcide-0.1.0 (lib) (configuration changed)
- ghcide-0.1.0 (exe:ghcide) (configuration changed)
- ghcide-0.1.0 (test:ghcide-tests) (configuration changed)
Configuring executable 'ghcide-test-preprocessor' for ghcide-0.1.0..
Configuring library for shake-0.19..
Preprocessing executable 'ghcide-test-preprocessor' for ghcide-0.1.0..
@jneira
jneira / install-unix-time.txt
Created April 25, 2020 13:31
debug unix-time stack windows
PS D:\dev\ws\haskell\haskell-ide-engine> stack build unix-time-0.4.7 --stack-yaml .\stack-8.6.5.yaml -v
Version 2.1.3, Git revision 0fa51b9925decd937e4a993ad90cb686f88fa282 (7739 commits) x86_64 hpack-0.31.2
2020-04-25 15:25:11.994935: [debug] Loading project config file stack-8.6.5.yaml
2020-04-25 15:25:12.016941: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2020-04-24 13:25:12.0169413 UTC]
2020-04-25 15:25:12.086942: [debug] Using package location completions from a lock file
2020-04-25 15:25:12.659939: [debug] Asking for a supported GHC version
2020-04-25 15:25:12.660931: [debug] Getting system compiler version
2020-04-25 15:25:12.685964: [debug] SELECT "id","actual_version","arch","ghc_path","ghc_size","ghc_modified","ghc_pkg_path","runghc_path","haddock_path","cabal_version","global_db","global_db_cache_size","global_db_cache_modified","info","global_dump" FROM "compiler_cache" WHERE "ghc_path"=?; [PersistText "D:\\bin\\stack\\x86_6
@jneira
jneira / vsode.out
Created April 21, 2020 21:50
hls output
ghcide version: 0.1.0.0 (GHC: 8.8.3) (PATH: D:\bin\haskell-language-server-wrapper.exe)
cd d:\dev\ws\haskell\hls; cabal v2-build --with-ghc=D:\bin\stack\x86_64-windows\ghc-8.6.5\bin\ghc.exe --with-ghc-pkg=D:\bin\stack\x86_64-windows\ghc-8.6.5\bin\ghc-pkg.exe --with-haddock=D:\bin\stack\x86_64-windows\ghc-8.6.5\bin\haddock.exe --project-file=d:\dev\ws\haskell\hls\cabal.project --builddir=d:\dev\ws\haskell\hls\dist-newstyle --dry-run all
Build profile: -w ghc-8.6.5 -O1
In order, the following would be built (use -v for more details):
- cabal-helper-1.0.0.0 (lib) (configuration changed)
- cabal-helper-1.0.0.0 (test:compile-test) (first run)
- cabal-helper-1.0.0.0 (test:examples) (first run)
- cabal-helper-1.0.0.0 (test:ghc-session) (first run)
- cabal-helper-1.0.0.0 (test:programs-test) (first run)
- ghcide-0.1.0 (lib) (configuration changed)
@jneira
jneira / profile-hie.md
Created October 16, 2019 22:17
Intructions from mpickering to profile hie
  1. Add profiling: True to the cabal.project file of haskell-ide-engine
  2. cabal new-build hie
  3. (IMPORTANT) Add profiling: True to the cabal.project file of the project being opened by hie
  4. Make a wrapper script somewhere which calls the hie you built in step 2 with +RTS -hc -l-au
  5. Modify your editor settings to call this wrapper script instead of looking for hie on the path
  6. Try using h-i-e as normal and then you can either send me the *.eventlog which was created or process it yourself using eventlog2html

So +RTS -hc -l-au says, do cost centre profiling and create an eventlog which has the profiling samples in, my tool eventlog2html can turn that into a profile graph and I have a branch which renders cost centre profiles in an even nicer way Other modes which might be of interest, -hd

@jneira
jneira / report.md
Last active September 4, 2018 06:47
etlas dhall integration

dhall support check list:

  • New build
    • get: not applicable
    • init: not implemented
    • configure: tested
    • build: tested
    • docs: same behaviour etlas.exe: The program 'etadoc' version >=0.1 is required but it could not be found.
    • deps: tested
    • clean: tested
  • run: tested
PackageDescription {
package = PackageIdentifier {pkgName = PackageName "wai-servlet", pkgVersion = mkVersion [0,1,5,1]},
license = BSD3,
licenseFiles = ["LICENSE"],
copyright = "",
maintainer = "Javier Neira Sanchez <atreyu.bbb@gmail.com>",
author = "Javier Neira Sanchez",
stability = "Experimental",
testedWith = [],
homepage = "https://github.com/jneira/wai-servlet",