How to install zlib in KDE LINUX?

Building a Haskell program und Nix I encountered this error

running dist/build/Codec/Compression/Zlib/Stream_hsc_make failed (exit code 127)
rsp file was: “dist/build/Codec/Compression/Zlib/hsc2hscall16230-3.rsp”
output file:“dist/build/Codec/Compression/Zlib/Stream.hs”
command was: dist/build/Codec/Compression/Zlib/Stream_hsc_make >dist/build/Codec/Compression/Zlib/Stream.hs
error: dist/build/Codec/Compression/Zlib/Stream_hsc_make: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory

And btw, the docs page is broken:

The library is there in KDE Linux:

$ ls /usr/lib/libzstd*               
/usr/lib/libzstd.so  /usr/lib/libzstd.so.1  /usr/lib/libzstd.so.1.5.7

So it seems like the question is not so much “How to install zlib?”, it’s “why can’t my Haskell toolchain see the library?” (To which I don’t have good answers, sorry, I don’t have any Haskell experience.)

zstd is not zlib