Skip to content

Update pack nightly and add contrib package#41

Merged
keiravillekode merged 1 commit intoexercism:mainfrom
FranklinChen:add-contrib-and-update-pack
Feb 9, 2026
Merged

Update pack nightly and add contrib package#41
keiravillekode merged 1 commit intoexercism:mainfrom
FranklinChen:add-contrib-and-update-pack

Conversation

@FranklinChen
Copy link
Contributor

Summary

  • Update base image from nightly-250523-jammy to nightly-260208-jammy
  • Explicitly install contrib alongside tester, enabling exercises to use libraries like Data.Linear.Array

Context

The contrib library is part of the Idris 2 distribution and is already present in the base pack image (22MB, pre-compiled). The RUN pack install contrib line simply registers it in pack's package index. This adds zero additional Docker image size.

Making contrib available allows students to use Idris 2's linear types with mutable arrays — a key differentiating feature of the language. See the forum discussion.

Test plan

  • All 6 golden tests pass with updated nightly
  • All 57 exercise example solutions pass with updated nightly
  • Verified contrib adds no image size (already in base image)

🤖 Generated with Claude Code

Update base image from nightly-250523-jammy to nightly-260208-jammy
and explicitly install contrib alongside tester, enabling exercises
to use libraries like Data.Linear.Array.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 9, 2026 05:05
@FranklinChen FranklinChen requested a review from a team as a code owner February 9, 2026 05:05
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Feb 9, 2026
FranklinChen added a commit to FranklinChen/idris that referenced this pull request Feb 9, 2026
Add `depends = contrib` to every exercise .ipkg file, giving students
access to libraries like Data.Linear.Array for linear-type solutions.
Since hello-world.ipkg is the template used by bin/add-practice-exercise,
future exercises will inherit this dependency automatically.

Depends on exercism/idris-test-runner#41.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Idris2 Pack base image to a newer nightly and ensures the contrib package is registered in Pack so exercises can use standard Idris 2 distribution libraries (e.g., linear mutable arrays).

Changes:

  • Bump base Docker image from nightly-250523-jammy to nightly-260208-jammy.
  • Install/register contrib alongside tester via Pack during image build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@keiravillekode keiravillekode reopened this Feb 9, 2026
Copy link
Contributor

@keiravillekode keiravillekode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@IsaacG IsaacG requested a review from a team February 9, 2026 05:46
@keiravillekode keiravillekode merged commit aa6f132 into exercism:main Feb 9, 2026
8 of 9 checks passed
keiravillekode pushed a commit to exercism/idris that referenced this pull request Feb 9, 2026
Add `depends = contrib` to every exercise .ipkg file, giving students
access to libraries like Data.Linear.Array for linear-type solutions.
Since hello-world.ipkg is the template used by bin/add-practice-exercise,
future exercises will inherit this dependency automatically.

Depends on exercism/idris-test-runner#41.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants