add Semigroup instance for InfoMod#132
Merged
chrisdone-artificial merged 1 commit intoMay 29, 2026
Merged
Conversation
Owner
|
Great, glad you like it! Will merge when back. The missing Semigroup instance is purely oversight, happy to add it.
…On Fri, May 29, 2026, at 12:06 PM, supersonic-copycat wrote:
There is no Semigroup instance for InfoMod, preventing writing something like this, like I'd write in plain Haskell (taken from `examples/41-commands.hell`, modified):
main = do
let opts = Options.info (Main.cmdParser <**> Options.helper)
(Options.fullDesc <> Options.header "Program is distributed AS IS, without ANY warranty claims")
cmd <- Options.execParser opts
case cmd of
Add f -> Text.putStrLn $ "Adding " <> f
Remove f -> Text.putStrLn $ "Removing " <> f
List -> Text.putStrLn "Listing files"
PS. I stumbled upon this project and it is quite nice, thanks for open-sourcing it. I do not write a lot of scripts but when I do it's nice to have simpler and somewhat familiar (although more restrictive) alternative to bash.
If your vision of future development of this project does not include having Semigroup instance for InfoMod, feel free to close my MRs.
You can view, comment on, or merge this pull request online at:
#132
Commit Summary
• 948d541 <948d541> add Semigroup instance for InfoMod
File Changes
(1 file <https://github.com/chrisdone/hell/pull/132/files>)
• *M* src/Hell.hs <https://github.com/chrisdone/hell/pull/132/files#diff-325ca97693d2484b525eb7b068459a3a975507609b042a5f32e444d4ff1317c6> (1)
Patch Links:
• https://github.com/chrisdone/hell/pull/132.patch
• https://github.com/chrisdone/hell/pull/132.diff
—
Reply to this email directly, view it on GitHub <#132?email_source=notifications&email_token=AAACWC5NZKEDJCIQOUXDVYL45FVNDA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTONRYGQ2DKMJQGSTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVRTG633UMVZF6Y3MNFRWW>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAACWC65KJQOHRTDSKBAJ5T45FVNDAVCNFSM6AAAAACZSJLDHWVHI2DSMVQWIX3LMV43ASLTON2WKOZUGU2DOOJUGM2TQMY>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AAACWC754SPPTE52SJ3VOU345FVNDA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTONRYGQ2DKMJQGSTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVJTG633UMVZF62LPOM> and Android <https://github.com/notifications/mobile/android/AAACWCZCZ2OXZRAVSBPNYYT45FVNDA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTONRYGQ2DKMJQGSTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
chrisdone
approved these changes
May 29, 2026
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.
There is no Semigroup instance for InfoMod, preventing writing something like this, like I'd write in plain Haskell (taken from
examples/41-commands.hell, modified):PS. I stumbled upon this project and it is quite nice, thanks for open-sourcing it. I do not write a lot of scripts but when I do it's nice to have simpler and somewhat familiar (although more restrictive) alternative to bash.
If your vision of future development of this project does not include having Semigroup instance for InfoMod, feel free to close my MRs.