-
-
Notifications
You must be signed in to change notification settings - Fork 22
[#90] Change types in 'Iris.Colour.Formatting' from 'ByteString' to 'Text' #91
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
Conversation
|
We can probably also remove the bytestring dependency if we merge this? |
chshersh
left a comment
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.
Thanks, looks great! Nice and simple 🙂
I have one comment about the changelog entry but the rest looks great 👍🏻
chshersh
left a comment
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.
Everything looks great 👍🏻
I see a GHC warning about unused import. I believe, it's the only remaining part 🙂
src/Iris/Colour/Formatting.hs
Outdated
| import Control.Monad.IO.Class (MonadIO (..)) | ||
| import Control.Monad.Reader (MonadReader) | ||
| import Data.ByteString (ByteString) | ||
| import qualified Data.Text as T |
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.
GHC outputs the warning that this import is redundant. I believe, only IO functions from Text are used so this one can be removed 🧹
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.
Removed the redundant import, though it now won't compile though as the simple-grep uses ByteString still.
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.
Will open a PR to fix that after this is merged 😄
962c4ed to
7056b0e
Compare
chshersh
left a comment
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.
Looks fine then 👌🏻
@lillycat332 Could you resolve conflicts so I can merge the PR? Thanks!
|
Done 🙂 |
Resolves #90
I have changed the ByteString usage in Iris.Colour.Formatting to Data.Text.
Additional tasks