-
Notifications
You must be signed in to change notification settings - Fork 141
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
Add StrictByteString & LazyByteString type aliases #378
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.
Thanks! :)
The type synonyms should be exported from Data.ByteString
and Data.ByteString.Lazy
. I think the definitions could also be in these public modules, but this probably doesn't matter as much.
No, you're right, this is an oversight from my part |
57d92a1
to
1f0af0d
Compare
@sjakobi Should be good! |
1f0af0d
to
df996e1
Compare
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!
Data/ByteString/Lazy/Internal.hs
Outdated
@@ -80,6 +81,9 @@ data ByteString = Empty | Chunk {-# UNPACK #-} !S.ByteString ByteString | |||
deriving (Typeable) | |||
-- See 'invariant' function later in this module for internal invariants. | |||
|
|||
-- | Type synonym for the lazy flavour of ByteString |
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.
-- | Type synonym for the lazy flavour of ByteString | |
-- | Type synonym for the lazy flavour of 'ByteString'. |
And same for the strict one, please.
Data/ByteString.hs
Outdated
@@ -40,8 +40,9 @@ | |||
|
|||
module Data.ByteString ( | |||
|
|||
-- * The @ByteString@ type | |||
-- * The strict @ByteString@ type and its associated type alias |
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'm afraid this is too long for a side bar table of contents in Haddock, it takes 5 lines.
-- * The strict @ByteString@ type and its associated type alias | |
-- * Strict @ByteString@ |
df996e1
to
a7d231e
Compare
a7d231e
to
de3a43e
Compare
Thank you, @Kleidukos! :) |
cc @Bodigrim
closes #375