Commit Graph

2996 Commits

Author SHA1 Message Date
Marcin Rzeźnicki
2cb8c23334
Update Archlinux installation section (#2933) 2022-05-27 13:21:03 +00:00
Sergey Vinokurov
0769f2343a
Omit more parens for wildcard type signature (#2929)
* Omit more parens for wildcard type signature (#2929)

This is a followup to #2764.

* Review suggestions
2022-05-27 08:43:16 +01:00
Aarush Bhat
b14799defa
docs/installation: Remove unused clone with submodule command (#2930)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-26 12:06:11 +00:00
Lei Zhu
faa88f685e
A plugin for GADT syntax converter (#2899)
* initial hls-gadt-plugin

* Correct condition

* Render context correctly

* Fix typo

* Support from ghc-8.6 to ghc-9.0

* ghc8.6 compat

* Try to fix test for ghc-8.6

* Pretty name

* Add GADTs pragma automatically

* Enrich Readme

* Clean up

* Update hls docs

* Update CODEOWNERS

* Fix typo

* Rename withTempDir with withCanonicalTempDir

* Add @michaelpj's suggestions

* Pass PluginId through descriptor

* Explicit forall
2022-05-26 17:13:09 +08:00
Ondřej Šebek
1a0d4a7621
Document eval plugin limitations (#2917)
- mention std[in|out|err] problems
- link to differences with doctest

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-24 22:38:24 +00:00
Lei Zhu
859edfbd83
Fix hover format (#2911)
* Fix hover format

* Test with regex

* Add comments about inserting a new line in Markdown
2022-05-24 09:44:09 +00:00
Aarush Bhat
9b3f3bf20e
ghcide: remove redundant env NIX_GHC_LIBDIR (#2819)
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-05-23 10:44:54 +01:00
Ondřej Šebek
ef7b5abc57
Bump documentation requirements (#2918)
- support Python 3.10 with new Sphinx
- make the bounds less strict
2022-05-22 18:23:07 +01:00
Lei Zhu
eeb1d2057d
Replace TextDocumentIdentifier with Uri (#2912) 2022-05-18 08:35:29 +00:00
Ondřej Šebek
a1ead72357
Fix multiline eval plugin padding (#2910)
* Test multiline eval results

- add test for multiline show instance

See #2907

* Fix multiline eval padding

See haskell#2907
2022-05-17 14:41:12 +00:00
Michael Peyton Jones
b1bf549915
nix update (#2892)
* Drop -haddock as ghc 8.10.7 fails to build ghc-lib with:

```
compiler/GHC/CmmToAsm/AArch64/CodeGen.hs:176:15: error:
2081
Error:     parse error on input {- | debugIsOn -}
2082
    |
2083
176 | ann doc instr {- | debugIsOn -} = ANN doc instr
2084
    |               ^^^^^^^^^^^^^^^^^
```

  # Please enter the commit message for your changes. Lines starting

* flake.lock: Update

Flake lock file updates:

• Updated input 'flake-compat':
    'github:edolstra/flake-compat/b7547d3eed6f32d06102ead8991ec52ab0a4f1a7' (2022-01-03)
  → 'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/997f7efcb746a9c140ce1f13c72263189225f482' (2021-08-20)
  → 'github:numtide/flake-utils/a4b154ebbdc88c8498a5c7b01589addc9e9cb678' (2022-04-11)
• Updated input 'gitignore':
    'github:hercules-ci/gitignore.nix/211907489e9f198594c0eb0ca9256a1949c9d412' (2021-01-26)
  → 'github:hercules-ci/gitignore.nix/bff2832ec341cf30acb3a4d3e2e7f1f7b590116a' (2022-03-05)
• Updated input 'hie-bios':
    'https://hackage.haskell.org/package/hie-bios-0.9.0/hie-bios-0.9.0.tar.gz?narHash=sha256-nd+FfUQVZNxJfKZkAWA3dF0JwRgXntL+1gGvyNHDbKc='
  → 'https://hackage.haskell.org/package/hie-bios-0.9.1/hie-bios-0.9.1.tar.gz?narHash=sha256-5RqspT27rb%2ftMBwrKr4VfSSbq0+c0LMNuaKlTun0Kkk='
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c473cc8714710179df205b153f4e9fa007107ff9' (2021-12-13)
  → 'github:NixOS/nixpkgs/ab83c5d70528f1edc7080dead3a5dee61797b3ff' (2022-04-24)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/397f0713d007250a2c7a745e555fa16c5dc8cadb' (2021-06-29)
  → 'github:cachix/pre-commit-hooks.nix/e5e7b3b542e7f4f96967966a943d7e1c07558042' (2022-04-04)
• Updated input 'pre-commit-hooks/flake-utils':
    'github:numtide/flake-utils/74f7e4319258e287b0f9cb95426c9853b282730b' (2021-11-28)
  → 'github:numtide/flake-utils/3cecb5b042f7f209c56ffd8371b2711a290ec797' (2022-02-07)
• Updated input 'pre-commit-hooks/nixpkgs':
    'github:NixOS/nixpkgs/6f05cfdb1e78d36c0337516df674560e4b51c79b' (2022-01-01)
  → 'github:nixos/nixpkgs/77a7a4197740213879b9a1d2e1788c6c8ade4274' (2022-02-23)

* nix flake update & bump ghc921 -> ghc922
ghc921 is no longer available on Nix, see:
  https://github.com/NixOS/nixpkgs/pull/163426

* myst-parser: bump docutils version requirements

* fix devShells and packages default

* use ghc-exactprint 1.5.0 for ghc922

* ghc902: add flag hlint34 to nix

* macosx: add SSE-enabled ptr-poker dependency

* ghc902 requires ghc-lib-parser >= 9.2

* nix: ghcDefault supports HLS tweaks

* fix typo

* add support for pre-commit in mkDevShell

* fix typo

* add ptr-poker to nix shell

* add ghc-884 configuration tweaks

* fix stylish-haskell for ghc-884

* fix default ghc lookup

* ghc884: fixup brittany version to 0.13.1.2

* ghc884: fixup aeson version to 1.5.2.0

* ghc884: fixup ormolu/fourmolu

* add configuration tweak for ghc8107

* rename configuration-ghc-xxx.nix files

* update hackage index

* use current cabal/hackage to fetch ptr-poker in mkDevShell

* reinstate .pre-commit.yaml

* nix: temporary disable "build binaries" from the work flow

* nix: temporary disable builds and partially populate cachix

* nix: temporarily disable ghc 884 and 8107

* nix: temporarily disable nix develop run

* nix: re-enable ghc8107/ghc884 builds, disable "build all binaries"

* nix: noop push commit to test cachix

* nix: touch flake.nix, remove ghc 884

* nix: rm ghc 810, ghc88 + disableLibraryProfiling

* nix: build all binaries again

* Update flake.nix

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>

* Update flake.nix

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>

* Update flake.nix

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>

* revert change made on comment

* rm myst-parser.nix

* fix typo (thanks @guibou)

* explain why we disable library profiling with nix

* ghc922, disable "hls-hlint-plugin"

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Providence Salumu <Providence.Salumu@smunix.com>
Co-authored-by: Providence Salumu <smunix@users.noreply.github.com>
2022-05-13 10:09:51 +01:00
Pepe Iborra
9e1738e8c5
Fix DisplayTHWarning error (#2895)
This used to fail in the CLI with

```
Internal error, getIdeGlobalExtras, no entry for DisplayTHWarning
```
2022-05-08 20:10:01 +00:00
Pepe Iborra
6524122927
Expose runtime metrics via EKG (#2267)
* Collect metrics and expose an EKG server

* register gc metrics locally

* getDatabaseKeys

* fixups

* Abstract monitoring and put EKG behind a Cabal flag

* Add CI for the new flag

* fix double ifdef

* link to GHC docs for eventlogs

* log when stopping the EKG server

* Allow CPP in modules

* Add doc comments

* Apply suggestions from code review

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>

* Compat. with ghc 9.2

* use an ekg-json snapshot that preserves compat. with ghc 8.x

* confine CPP to the EKG module

Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-05-06 09:58:18 +00:00
Pepe Iborra
b6d87c564d
no longer disable -dynamic builds (#2885) 2022-05-05 22:53:42 +00:00
Pepe Iborra
8cbefb71bc
Consolidate all cabal.project files (#2866) 2022-05-05 15:07:51 +01:00
Lei Zhu
796b292f4f
Fix hls-call-hierarchy-plugin tests (#2888)
* Wait for kick done

* Enable test on Windows

* Wait for kick done
2022-05-05 09:16:24 +00:00
Lei Zhu
8a5c7fc958
Build hls-alternate-number-format-plugin with stack.yaml (#2891)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-05 07:05:34 +00:00
Lei Zhu
2a8d24460e
Enable hls-eval-plugin test on ghc-9.2.2 (#2893) 2022-05-03 17:41:04 +00:00
Lei Zhu
7bd6e0897b
Modify ghcide requirements of hls-change-type-signature-plugin (#2889) 2022-05-02 19:54:15 +01:00
ˌbodʲɪˈɡrʲim
6d319ba24d
hls-pragmas-plugin requires ghcide >= 1.7 (#2884)
Otherwise Development.IDE.printOutputable is not available

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-05-02 13:18:47 +00:00
Sergey Vinokurov
fe573f8f7f
Prefer Data.HashSet.member to Data.Foldable.elem (#2886)
* Prefer Data.HashSet.member to Data.Foldable.elem

* Remove unused binding

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-05-02 11:10:56 +00:00
Dennis Gosnell
40acece759
Add .txt files as extra-source-files (#2887) 2022-05-02 08:01:11 +01:00
Pepe Iborra
2bd9ab4e3c
simplify hlint plugin Cabal descriptor (#2867) 2022-05-01 20:17:13 +00:00
Pepe Iborra
e52cffe855
Make iface-error-test-1 less flaky (#2882)
* remove duplicate log message

* Fix expectNoMoreDiagnostics

* redundant import

* dead code

* unnecessary do section

* redundant log message

* waitForProgressDone to improve consistency

* redundant import
2022-05-01 18:37:12 +00:00
Pepe Iborra
65fbc5e41c
Restore compat. with prettyprinter 1.6 (#2877) 2022-05-01 15:58:43 +00:00
ˌbodʲɪˈɡrʲim
4b475b0adf
hls-haddock-comments does not support ghc-exactprint >= 1.0 (#2878)
* hls-haddock-comments does not support ghc-exactprint >= 1.0

And should be marked as such otherwise `cabal install haskell-language-server` generates an unbuildable plan

* Try to make CI happy

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-05-01 13:50:12 +00:00
Pepe Iborra
5a6b079af2
Review project stack descriptors according to #2533 (#2874)
* Review project stack descriptors according to #2533

* adjust shake-bench cabal descriptor to work with gen-hie

* Fix shake-bench to build with aeson 2.x

* track also LTS 16
2022-05-01 12:08:37 +00:00
Nick Suchecki
e6aa0aaa28
Fix hanging redundant import on Unicode function (#2870)
* Revert partial changes from #2483

Instead of using a low-level `is_ident` that only works on ascii
characters. Instead match directly on the '_' character. The original
functionality has been restored (using `isAlpha` instead).

This commit removes the now unneccessary `is_ident` compat layer

* Add regression test for unicode functions

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-01 04:20:31 +00:00
ˌbodʲɪˈɡrʲim
1473e95c0b
ghcide requires ghc-exactprint >= 1.4 (#2876)
E. g., instance Default EpaLocation is not present in ghc-exactprint-1.3
2022-05-01 02:11:10 +00:00
Jens Petersen
95e9e3ac07
ghcide needs prettyprinter-1.7 to build (#2875)
fails with prettyprinter 1.6
```
[37 of 77] Compiling Development.IDE.Types.Logger ( src/Development/IDE/Types/Logger.hs, dist/build/Development/IDE/Types/Logger.o )
src/Development/IDE/Types/Logger.hs:57:1: error:
    Could not find module `Prettyprinter'
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
57 | import           Prettyprinter                 as PrettyPrinterModule
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Development/IDE/Types/Logger.hs:58:1: error:
    Could not find module `Prettyprinter.Render.Text'
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
58 | import           Prettyprinter.Render.Text     (renderStrict)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build ghcide-1.7.0.0 (which is required by
exe:haskell-language-server from haskell-language-server-1.7.0.0 and
exe:haskell-language-server-wrapper from haskell-language-server-1.7.0.0). See
the build log above for details.
```
from https://download.copr.fedorainfracloud.org/results/petersen/haskell-language-server/fedora-34-x86_64/04345531-haskell-language-server/
2022-04-30 22:16:01 +00:00
Lei Zhu
df6cc3cccd
Expand input to pragma if available (#2871) 2022-04-30 15:36:23 +01:00
Pepe Iborra
6802aafcf1
hls-call-hierarchy-plugin Patch release (#2873)
I want to make a Hackage release including the extended aeson compat. changes from #2868
2022-04-30 12:01:25 +00:00
Pepe Iborra
0913ce70f5
Compatibility with older aeson releases (#2868) 2022-04-30 10:54:11 +01:00
Sergey Vinokurov
306aaa0b01
Improve name export code action (#2847)
* Improve code action that exports a name to reuse export list style

* Remove outdated comment

* Prefer comparisons on Text to comparisons on String

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-04-30 00:49:36 +00:00
Lei Zhu
c14cbdbdd4
Support hls-hlint-plugin and hls-stylish-plugin for ghc9.0 and ghc9.2 (#2854)
* hls-hlint-plugin & hls-stylish-haskell-plugin rush to ghc92

* Restore allow-newer

* Add BufSpan for lower version ghc

* Add Cabal constraint for stack-9.0.1.yaml

* Try ghc-lib-parser for BufSpan

* Loose tactic compiling constraint

* Rename hlint34

* Rerun test

* Update doc

* Comment ghc-exactprint requirements

* Add test for apply-refact-0.10

* Use hackage stylish-haskell

* ghc-exactprint constraints for hls-class-plugin

* Remove uncompiled if

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-04-28 17:36:25 +00:00
Michael Peyton Jones
a541ae8bc7
Merge pull request #2861 from haskell/release-script-fixes
release script fixes
2022-04-28 17:08:01 +01:00
Zubin Duggal
eac10c0e25
Also recognize gz files in upload script 2022-04-27 13:51:52 +05:30
Zubin Duggal
57004e93ac
gitlab-ci: Fix executable extension on windows 2022-04-27 13:50:57 +05:30
Lei Zhu
6742c205c8
Unify showSDocUnsafe (#2830)
* Unify showSDocUnsafe

* Fix dependency

* Add missing instance

* Add missing instance

* Remove unused imports

* Clean up unused code

* Remove unnecessary exports & Rename

* Unify use printOutputable

* Remove redundant import

* Replace show with unpack

* Rerun tests

* Rerun tests

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Junyoung "Clare" Jang <jjc9310@gmail.com>
2022-04-27 07:24:39 +00:00
Lei Zhu
8f1a59cf5b
Fix Completion document format (#2848)
* Fix doc display

* Fix doc display

* Add tests

* Fix broken tests

* Remove extra docs

* Rerun tests

* Add spanDocToMarkdown doc

* Fix tests

* Adjust test for broken target

* Fix test

* Fix broken tests

* Unify tests

* Update spanDocToMarkdown doc

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-04-26 23:18:35 +00:00
wz1000
b5a37f7fc3
Merge pull request #2850 from haskell/wip/1.7-release-scripts
Add scripts for releases and final 1.7 tweaks
2022-04-26 19:17:36 +05:30
wz1000
18af8aadc9
Merge branch 'master' into wip/1.7-release-scripts 2022-04-26 17:49:16 +05:30
Michael Peyton Jones
24e3e131cd
Update plugin support table (#2840)
I linked someone to it on IRC and I noticed that it was out of date.

Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-04-26 11:26:10 +00:00
wz1000
3269f505ee
Merge branch 'master' into wip/1.7-release-scripts 2022-04-26 15:02:35 +05:30
Michael Peyton Jones
cf759779a2
Merge pull request #2852 from haskell/dependabot/github_actions/haskell/actions-2
Bump haskell/actions from 1 to 2
2022-04-26 09:53:22 +01:00
wz1000
51c49cecec
Merge branch 'master' into wip/1.7-release-scripts 2022-04-26 12:04:37 +05:30
Zubin Duggal
b1e084ed06
Fix windows CI 2022-04-26 01:08:40 +05:30
Zubin Duggal
9114c11907
Add release scripts 2022-04-25 13:08:49 +05:30
dependabot[bot]
a4b8e645a2
Bump haskell/actions from 1 to 2
Bumps [haskell/actions](https://github.com/haskell/actions) from 1 to 2.
- [Release notes](https://github.com/haskell/actions/releases)
- [Commits](https://github.com/haskell/actions/compare/v1...v2)

---
updated-dependencies:
- dependency-name: haskell/actions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 03:05:36 +00:00
Michael Peyton Jones
2ced7aade2
Merge pull request #2849 from haskell/code-actions-contributing-guidelines
Guidelines for contributing code actions
2022-04-24 15:13:41 +01:00