Reduceron icon indicating copy to clipboard operation
Reduceron copied to clipboard

Update Reduceron to build and follow best practices for GHC/Cabal/Stack

Open tommythorn opened this issue 2 years ago • 3 comments

As touched upon in #36, Reduceron doesn't build anymore due to changes to the GHC/Cabal/Stack. Part of the problem is that Flite is effectively a separate project, but a mandatory requirement for Reduceron.

I don't have the expertise to resolve this, but it seems worthwhile to get it back to building, so as an experiment, I'm trying to provide an Algora bounty for this. To make the requirement as clear as possible:

  • Restore the ability to build everything and run all the regressions with a toplevel make
  • Apply the current best practices for Haskell/GHC projects (sounds like using "stack" is a popular approach).

The workaround applied for #36 does not work for me.

/bounty $150

EDIT: typos

tommythorn avatar Aug 19 '23 23:08 tommythorn

💎 $300 bounty • Tommy Thorn

Steps to solve:

  1. Start working: Comment /attempt #40 with your implementation plan
  2. Submit work: Create a pull request including /claim #40 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to tommythorn/Reduceron!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🔴 @rishi-raj-jain Aug 23, 2023, 1:07:23 PM WIP
🟢 @rodfer0x80 Dec 12, 2023, 12:29:05 AM WIP
🟢 @Neptune650 #42
🟢 @Yashashwini2003 #43

algora-pbc[bot] avatar Aug 19 '23 23:08 algora-pbc[bot]

/attempt #40

Options

rishi-raj-jain avatar Aug 23 '23 13:08 rishi-raj-jain

/attempt #40

Options

rodfer0x80 avatar Dec 12 '23 00:12 rodfer0x80

is this still open ? @tommythorn

ashish111333 avatar Dec 04 '24 09:12 ashish111333

yes

tommythorn avatar Dec 04 '24 09:12 tommythorn

Let's raise the stakes

/bounty $300

tommythorn avatar Dec 08 '24 00:12 tommythorn

💡 @Neptune650 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Dec 09 '24 00:12 algora-pbc[bot]

After years of nothing, I now have two fixes for this within 24 hours. I'm not sure how to resolve this, but technically @Neptune650 was earlier.

tommythorn avatar Dec 09 '24 18:12 tommythorn

After years of nothing, I now have two fixes for this within 24 hours. I'm not sure how to resolve this, but technically @Neptune650 was earlier.

@tommythorn I'd appreciate if you merge mine, as the other pull request was created after mine, does roughly the same changes and the commits were only created after mine.

Also, mine adds GitHub Actions CI which might be a nice bonus.

Neptune650 avatar Dec 09 '24 18:12 Neptune650

Thanks for your change. You also used the /claim #40 so I think there's not much debate. I'm still evaluating this and hope to accept your change shortly.

tommythorn avatar Dec 09 '24 19:12 tommythorn

Thanks for your change. You also used the /claim #40 so I think there's not much debate. I'm still evaluating this and hope to accept your change shortly.

@tommythorn Much appreciated! Let me know if you find any issues.

Neptune650 avatar Dec 09 '24 19:12 Neptune650

I'm a bit confused about how this is supposed to be set up. I installed Stack with curl -sSL https://get.haskellstack.org/ | sh and assumed the correctly to install ghc was stack install ghc but after than make still doesn't find runhaskell. Having CI is great, but I think I might need a hint for setting this up for manual use on Ubuntu (and macOS would be nice too).

tommythorn avatar Dec 09 '24 19:12 tommythorn

I'm a bit confused about how this is supposed to be set up. I installed Stack with curl -sSL https://get.haskellstack.org/ | sh and assumed the correctly to install ghc was stack install ghc but after than make still doesn't find runhaskell. Having CI is great, but I think I might need a hint for setting this up for manual use on Ubuntu (and macOS would be nice too).

@tommythorn I believe you have to use stack setup instead.

If that doesn't work, try what I did for testing locally and use GHCUp with: curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh Then set it up with ghcup tui

Neptune650 avatar Dec 09 '24 19:12 Neptune650

💡 @Yashashwini2003 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Dec 09 '24 19:12 algora-pbc[bot]

@tommythorn Thanks for merging, could you award it?

Neptune650 avatar Dec 09 '24 20:12 Neptune650

Of course I'm just trying to figure out how (I'll have to ran the door so it will be later today)

tommythorn avatar Dec 09 '24 20:12 tommythorn

Of course I'm just trying to figure out how (I'll have to ran the door so it will be later today)

@tommythorn No worries!! You can send it from the Algora bounty panel.

Neptune650 avatar Dec 09 '24 20:12 Neptune650

🎉🎈 @Neptune650 has been awarded $300! 🎈🎊

algora-pbc[bot] avatar Dec 09 '24 20:12 algora-pbc[bot]