[Haskell-cafe] Deprecation being transitively reported for re-exported definitions
Tikhon Jelvis
tikhon at jelv.is
Sun Aug 15 02:00:07 UTC 2021
Ivan mentioned that option in his email—seems like that could be okay (but
awkward!) for functions, but would not work well for other definitions like
typeclasses.
On Sat, Aug 14, 2021, 18:44 Viktor Dukhovni <ietf-dane at dukhovni.org> wrote:
> > 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.
>
> --
> Viktor.
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210814/50296741/attachment.html>
More information about the Haskell-Cafe
mailing list