-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
[#496] Run Stan on Summoner and fix observations #498
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no place for me here... I will choose the truth I like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I love how Stan helped us here to make Summoner better ⚕️
But turned out, as you said, Summoner already was good enough 👍
upperBound ghcs = let Pvp{..} = baseVerPvp $ last ghcs in | ||
show pvpFirst <> "." <> show (pvpSecond + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice refactoring! No partial functions in the end 😎
where | ||
isSuccess :: Validation e a -> Bool | ||
isSuccess = \case { Success _ -> True; _ -> False } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
validatedErrorMessages = whenFailure [] | ||
(validateKit dirs $ formState kitForm) | ||
(map showFormError . toList) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out, we implemented useful functions in validation
!
Co-authored-by: Dmitrii Kovanikov <kovanikov@gmail.com>
Resolves #496
There were 30 observations, now down to 2 (
length
ones which are not resolvable now).The code was actually pretty good already 👍🏼