Clean up unnecessary usage of String type in favour of Text#1675
Clean up unnecessary usage of String type in favour of Text#1675david-yz-liu merged 7 commits intoCourseography:masterfrom
Conversation
|
CourseControllerTests, IntersectionTests, Config: removed The remaining String to Text conversions fall into these categories:
Would like a follow-up on whether you think any of these categories should also be simplified, or if the current changes are enough. Side question: what's the easiest way to test whether the Svg/Parser changes work as expected? Should I try to write tests for this file, since I've altered it and it doesn't have any, or are these tangentially tested somewhere else? |
Pull Request Test Coverage Report for Build 573f628e-7148-48ae-918f-aa3f439e1370Details
💛 - Coveralls |
|
(see comment above, not sure if I should have pressed "request review" instead of sending a Slack message yesterday) |
david-yz-liu
left a comment
There was a problem hiding this comment.
Hi @Purplegaze, thanks for making this PR! Sending a message on Slack was fine, but so was requesting a review (either is an acceptable way to flag an in-progress PR to my attention).
Regarding your notes about the remaining String instances: you can add the text-show package to our dependencies, that's a nice find. Don't worry about changing the Req datatype or the Parsec parsers for this PR.
You're right that there aren't tests currently for the Svg.Parser module. Don't worry about adding test cases for them here, but you can test your changes manually by re-running the database-graphs command.
|
Thanks! Should be ready for review now. |
david-yz-liu
left a comment
There was a problem hiding this comment.
Nice work, @Purplegaze!
Proposed Changes
Removes unnecessary uses of
Data.Text.packand simplifies code to avoid usage of the String type to account for the OverloadedStrings compiler extension....
Screenshots of your changes (if applicable)
Type of Change
(Write an
Xor a brief description next to the type or types that best describe your changes.)Checklist
(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the
[ ]into a[x]in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)Before opening your pull request:
After opening your pull request:
Questions and Comments
Will post in a separate comment below.