Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial refactor - much better types #9

Merged
merged 36 commits into from
Nov 25, 2023
Merged

Conversation

rasheedja
Copy link
Owner

@rasheedja rasheedja commented Jul 14, 2023

  • Use types which are way clearer
  • Some docs
  • Use lens where they make things easier
  • New types required quite a significant factor of the codebase
  • Cleanup
  • Further refactoring/polishing
    • I want type names to reflect those typically used when talking about simplex methods
    • But first, I need to learn what the actual terms are
    • I'd also like to simplify a lot of these functions
    • The refactor has made it easier for me to think about these functions, which makes it easier to simplify them

+ Use types which are way clearer
+ Some docs
+ Use lens where they make things easier
+ New types required quite a significant factor of the codebase
+ TODO:
  + Cleanup
  + Further refactoring/polishing
    + I want type names to reflect those typically used when talking about simplex methods
    + But first, I need to learn what the actual terms are
    + I'd also like to simplify a lot of these functions
    + The refactor has made it easier for me to think about these functions, which makes it easier to simplify them
+ test10 was broken due to an LLM sneakily adding extra constraints and changing objective
+ testQuickCheck1/2 were broken because the constraints were built using `Map.fromList` with duplicate keys
  + only one of the key values were used, others were ignored
+ Control.Monad.Logger used for logging
+ Documented various functions
+ Handled some edge cases which shouldn't be possible (and log warnings/errors when we reach these edge cases)
+ I like this name better
+ Allows for alternative solvers
+ I was using the cabal plan as a key, now I use stack files/cabal generated files
+ Don't want to spend effor fixing windows caching
@rasheedja rasheedja marked this pull request as ready for review November 25, 2023 15:10
@rasheedja rasheedja merged commit d053637 into master Nov 25, 2023
13 checks passed
@rasheedja rasheedja deleted the junaidr/refactor-types branch November 25, 2023 15:10
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.

1 participant