Skip to content

Prelude surface: classes, instances, and the value functions #94

Description

@biuld

Part of #76 (Phase 3). The highest-leverage library slice: 163 passing files are blocked on Prelude alone, more than every other missing module combined.

stdlib/lib/Prelude.purs is currently six declarations — pure, bind, discard, map, apply, runEffect over foreign import data Effect. The corpus expects the standard classes and instances.

Classes and instances

Show, Eq, Ord, Semigroup, Monoid, Functor, Apply, Applicative, Foldable, plus Boolean combinators, folds, and the String/Char/Number conversions the corpus uses.

Prerequisites this exposes

Each of these is Phase 2 work, and writing the library is the forcing function that finds the rest:

Constraint

Every addition compiles and executes under Wasmtime, not only type-checks. A Prelude that type-checks but cannot run does not recover a single passing file.

Acceptance

Prelude carries the classes and instances above, executes under Wasmtime, and the passing files blocked on Prelude fall toward zero.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:stdlibThe PureScript standard library under stdlib/libenhancementNew feature or requestgate:L6/M7Blocks runtime and the standard library (D-04 L6, M7)

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions