[ POC ] Implement complete Idris2 library with comprehensive test suite#7
Closed
GulinSS wants to merge 1 commit intodbreunig:mainfrom
Closed
[ POC ] Implement complete Idris2 library with comprehensive test suite#7GulinSS wants to merge 1 commit intodbreunig:mainfrom
GulinSS wants to merge 1 commit intodbreunig:mainfrom
Conversation
Add full implementation of whenwords human-friendly time formatting library for Idris2. The implementation includes all five core functions (timeago, duration, parseDuration, humanDate, dateRange) with comprehensive test coverage. **Key changes:** - Core library implementation in `src/Whenwords.idr` - Complete test suite parsing tests.yaml specifications - Multiple test runners and debugging utilities - Full documentation including usage examples - Package configuration for Idris2 build system **Testing:** - All 122 tests from SPEC.md pass successfully - Functions implemented with proper error handling and Idris2 idioms - Comprehensive edge case coverage including rounding thresholds The library is now ready for use in Idris2 projects requiring human-friendly time formatting capabilities.
Author
|
Sorry! I need to make it there: https://github.com/dbreunig/whenwords-examples |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is just for demonstration purposes.
Feel free to decline and close it. Just wanted to share the experience.
Generated PR description
Add full implementation of whenwords human-friendly time formatting library for Idris2. The implementation includes all five core functions (timeago, duration, parseDuration, humanDate, dateRange) with comprehensive test coverage.
Key changes:
src/Whenwords.idrTesting:
The library is now ready for use in Idris2 projects requiring human-friendly time formatting capabilities.
Manual notes
Idris2 library implementation by
DeepSeek 3.1 Terminus via
Crush AI
Prompt:
Full implementation required to repeat the prompt few times:
Overall generation took ~3 hours and spent ~3.5$ at OpenRouter.