serokell / universum

:milky_way: Prelude written in @Serokell
MIT License
176 stars 26 forks source link

Add universum-prelude #240

Open Martoon-00 opened 3 years ago

Martoon-00 commented 3 years ago

Often I'd like to have Prelude module re-exporting Universum module, and use it with base-noprelude. This way there will be no need to write import Universum each time explicitly.

There are two ways to implement this:

  1. Use mixins within the depending project. However, mixins are not yet well supported, e.g. stack ghci fails for projects using them, as well as haskell language server. And this will unlikely be resolve soon.
  2. Add a dedicated package here.

So I propose to add universum-prelude subpackage that would allow projects that depend on it to obtain the desired Prelude module that could be used implicitly.