[Haskell-cafe] Deprecation being transitively reported for re-exported definitions

Viktor Dukhovni ietf-dane at dukhovni.org
Sun Aug 15 01:35:41 UTC 2021

> On 14 Aug 2021, at 9:22 pm, Ivan Perez <ivanperezdominguez at gmail.com> wrote:
> I have a library that is exposing too much. As a minimal example, say the library contains:
> - Module A, which defines several functions and types.
> - Module B, which exports specific definitions from module A and has none of its own.

The simplest solution might be:

	module B (somefunction)

	import qualified A

	somefunction = A.somefunction

This creates a *new* function in B, which is not deprecated, without
re-exporting anything from A.


More information about the Haskell-Cafe mailing list