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

Config-Value Check #99

Open
lapplislazuli opened this issue Aug 16, 2021 · 0 comments
Open

Config-Value Check #99

lapplislazuli opened this issue Aug 16, 2021 · 0 comments
Labels
Haskell Issue is in our Haskell Code Low-Prio Change / Request is not urgent

Comments

@lapplislazuli
Copy link
Collaborator

At the moment, the configuration is "just" checked by compiler.
However, some things are ok with types but not ok with the algorithms, e.g. declaring a negative or zero population is "valid" at the moment.

I think it would be nice if we have for our Config a check valid :: Config -> Bool that defaults to true, but we can add all constraints that we gather.
Also it should give an error message what is wrong, so maybe something valid :: Config -> [Errors] that can be printed.

I think it makes more sense to have this

  1. centrally checked and per config defined
  2. before any computation / compilation is done - i do not want to wait for precompute fixes to finish to see that my genetic config is failing
@lapplislazuli lapplislazuli added Low-Prio Change / Request is not urgent Haskell Issue is in our Haskell Code labels Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Haskell Issue is in our Haskell Code Low-Prio Change / Request is not urgent
Projects
None yet
Development

No branches or pull requests

1 participant