Skip to content

Should everything in purescript-prelude be exported in Prelude? #222

@milesfrain

Description

@milesfrain

If I want to use lift2, I need to import it from Control.Apply, even though it's part of purescript-prelude. Is this intentional, or should we expect everything in purescript-prelude to be reexported in Prelude?

Usually this is a non-issue when working in an IDE with auto-imports. But it becomes annoying in the repl and in TryPureScript. If I find a function on Pursuit that's part of purescript-prelude I don't know whether I need to explicitly import it without digging into Prelude. For example, these functions appear to be similarly available in Prelude from the initial Pursuit results:

  • add, purescript-prelude, Data.Semiring
  • lift2, purescript-prelude, Control.Apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions