Skip to content

Fix incorrect GHCI outputs in docs #17

Closed

Description

@fpringle

Some of the comments are incorrect, for example the docs for Diff say that diff (Bin (Atom 1) Plus (Atom 1)) (Atom 2) should return Error (Nested (WrongConstructor (S (Z (Constructor "Bin"))) (Z (Constructor "Atom")))), but in fact it returns Error (Nested (WrongConstructor (S (Z (Record "Bin" (FieldInfo "left" :* FieldInfo "op" :* FieldInfo "right" :* Nil)))) (Z (Constructor "Atom")))).

Can we test this automatically using doctest?

Activity

  1. self-assigned this
    on Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions