The haskell-language-server (HLS) project is an implementation of a server (a
"language server") for the Language Server Protocol (LSP). A language server
talks to a client (typically an editor), which can ask the server to perform
various operations, such as reporting errors or providing code completions. The
advantage of this system is that clients and servers can interoperate more
easily so long as they all speak the LSP protocol. In the case of HLS, that
means that it can be used with many different editors, since editor support for
the LSP protocol is now widespread.
HLS is responsible for actually understanding your project and answering the
questions that the client asks of it, such as: what completion items could go
here? are there any errors in the project? and so on. HLS provides many (but not
all) of the features that the LSP protocol supports.
But HLS only provides the server part of the setup. In order to actually use it
you also need a client (editor). The client is responsible for managing your
interaction with the server: launching it, dispatching commands to it, and
displaying or implementing responses. Some clients will even install the server
binaries for you!
*/*: Use C.UTF-8 locale
Ports 02f27a83b44d fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters. USE_LOCALE was introduced to let ports use another
locale if they needed it. The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.
Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE. The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.
PR: 295945
Exp-run by: antoine
Some Haskell ports: Mark BROKEN on aarch64.
These ports are failing on build cluster for some time. I tried reproducing
it locally and it turned out to be a strange heisenbug - the compiler crashes
when compiling different unrelated files and restarting the build makes the
problem go away.
I wasn't able to extract a minimal reproducing testcase, so didn't contact
upstream.
Mark BROKEN for now and hope for a new compiler version to work.
Reported by: pkg-fallout
Uses/cabal.mk: Change the way we act on cabal.project files.
Instead of moving the original project file into a temporary location,
employ cabal.project.local for Ports-related adjustments.
This implements an idea that upstream cabal.project files shouldn't be touched
by Ports framework. If needed they can be patched by the port maintainer
directly.
Adapt existing Haskell ports to this change.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/hs-haskell-language-server: Flavorize.
To work with GHC x.y.z Haskell Language Server should be compiled with GHC x.y.z
Flavorizing allows HLS to operate on GHC 8.10.7 projects.
lang/ghc: Update to 9.2.4
Deal with Haskell ports fallout caused by the update.
While there, re-add patches necessary for lang/ghc810 that were somehow lost.
devel/hs-haskell-language-server: Override extract-cabal-deps.
The target provided by USES won't do for this port, because it uses Shake
to build the code.
devel/hs-haskell-language-server: Mark as not for i386.
Upstream indicated that they do not support 32bit systems, as HLS itself is
quite memory hungry.
It doesn't make sense to build the helper port too.
Reported by: pkg-fallout
Create devel/hs-haskell-language-server and devel/hs-hls-install ports.
Haskell Language Server is a Language Server Protocol implementation, which
can be used to add support for Haskell programming language to any text editor
that can talk LSP.
hs-hls-install is a helper executable used during build of the main port.
The port is not in ideal state ATM, because it only builds HLS against GHC
version we have in ports. It will require FLAVORizing (or even subpackaging)
to support other versions.
Submitted by: Alexis Praga <alexis.praga@free.fr> (initial version)