Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lillycham
Copy link
Contributor

@lillycham lillycham commented Oct 14, 2022

Resolves #90

I have changed the ByteString usage in Iris.Colour.Formatting to Data.Text.

Additional tasks

  • Documentation for changes provided/changed
  • Tests added
  • Updated CHANGELOG.md

@lillycham lillycham requested a review from chshersh as a code owner October 14, 2022 10:12
@lillycham
Copy link
Contributor Author

We can probably also remove the bytestring dependency if we merge this?

@chshersh chshersh added the hacktoberfest-accepted https://hacktoberfest.com/participation/ label Oct 14, 2022
Copy link
Owner

@chshersh chshersh left a 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 👍🏻

Copy link
Owner

@chshersh chshersh left a 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 🙂

import Control.Monad.IO.Class (MonadIO (..))
import Control.Monad.Reader (MonadReader)
import Data.ByteString (ByteString)
import qualified Data.Text as T
Copy link
Owner

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 🧹

Copy link
Contributor Author

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.

Copy link
Contributor Author

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 😄

@chshersh chshersh changed the title #90 - Changes types in 'Iris.Colour.Formatting' from 'ByteString' to 'Text' [#90] Change types in 'Iris.Colour.Formatting' from 'ByteString' to 'Text' Oct 19, 2022
@chshersh chshersh added the enhancement New feature or request label Oct 19, 2022
Copy link
Owner

@chshersh chshersh left a 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!

@lillycham
Copy link
Contributor Author

Done 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hacktoberfest-accepted https://hacktoberfest.com/participation/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changes types in 'Iris.Colour.Formatting' from 'ByteString' to 'Text'

2 participants