Skip to content

Improve social draft copy-pasting, add Haskell Weekly - #627

Merged
dschrempf merged 1 commit into
haskellfoundation:hakyllfrom
dschrempf:dom/social-draft-improvements
Jul 30, 2026
Merged

Improve social draft copy-pasting, add Haskell Weekly#627
dschrempf merged 1 commit into
haskellfoundation:hakyllfrom
dschrempf:dom/social-draft-improvements

Conversation

@dschrempf

Copy link
Copy Markdown
Collaborator

A draft is now a list of labelled sections rather than one text blob: the label is chrome (dim, indented) and the body starts at column 0 with blank lines around it, so a line or block selection grabs exactly what to paste. That also gets the microblog character count out of the post body, where it used to be pasted along with the text.

Model what was stringly typed: Constraint (format, length limit, etiquette) and ChannelKind, which the new curated-newsletter channel needs anyway. The per-channel records replace the microblog smart constructor, whose positional arguments no longer said which Int was colour and which the limit.

Haskell Weekly is a pull request against the issue being assembled, for important news only.

A draft is now a list of labelled sections rather than one text blob: the
label is chrome (dim, indented) and the body starts at column 0 with blank
lines around it, so a line or block selection grabs exactly what to paste.
That also gets the microblog character count out of the post body, where it
used to be pasted along with the text.

Model what was stringly typed: Constraint (format, length limit, etiquette)
and ChannelKind, which the new curated-newsletter channel needs anyway. The
per-channel records replace the `microblog` smart constructor, whose
positional arguments no longer said which Int was colour and which the limit.

Haskell Weekly is a pull request against the issue being assembled, for
important news only. Its entry names an author, so attribution becomes a
Byline: a link-out item with no `author` field credits nobody rather than
crediting the HF for someone else's post.
@dschrempf
dschrempf marked this pull request as ready for review July 30, 2026 18:57
@dschrempf

Copy link
Copy Markdown
Collaborator Author

Merging since it only affects the social-draft script!

@dschrempf
dschrempf merged commit 0c73e1a into haskellfoundation:hakyll Jul 30, 2026
1 check passed
@dschrempf
dschrempf deleted the dom/social-draft-improvements branch July 30, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant