-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix building with TS config #2372
Conversation
writeJsonValue :: Path' Abs (File f) -> Value -> IO () | ||
writeJsonValue file = IOUtil.writeFileBytes file . encode |
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.
I thought about whether I should put this here or in IOUtil, but I decided this makes more sense in the end.
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.
LGTM, I'd just write a comment above the lens stuff (the intention of the code)
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.
@sodic looks good! This actually turned out to be quite simple merely a bit of manipulation on json files and that is it really. Code is also quite simple due to lenses, couple of lines.
Most stuff I commented are minor improvements in code cleanliness, but one is actually a potentiall bug in hiding (although not likely to happen), which is why I didn't approve it yet. Let's fix that and whatever code improvements you like and then we can do it.
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.
LGTM!
Fixes #2368