The library itself is GPL-3.0-or-later and lives in the
subdirectory. There is an echo server example in
libtelnet-example/src/Main.hs, which is licensed under the 3-clause BSD license.
to learn how to drive the library.
If you use nix, then
nix-shell will give you an environment that can
cabal new-build both the
libtelnet-reflex library package and the
libtelnet-reflex-example example package.
libtelnet-reflex-example depends on some packages that are not
published on hackage. The nix shell provides them for you, but if you
don't use nix and have
cabal-install 2.4 or newer (GHC 8.6), then
you can build them using
Why are there two
cabal.project files, though?
At the time of writing,
reflex is currently broken in
nixpkgs. This forces us to use
which provides cabal-install 2.2, which is not recent enough to
Even with recent cabal-install, specifying
source-repository-package stanzas causes them to be
unconditionally fetched and
which defeats the purpose of having nix provide the build