<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xmobar/src/Xmobar, branch master</title>
<subtitle>a minimalistic status bar</subtitle>
<id>https://jao.io/cgit/xmobar/atom?h=master</id>
<link rel='self' href='https://jao.io/cgit/xmobar/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/'/>
<updated>2026-05-07T00:05:54Z</updated>
<entry>
<title>hlint warnings</title>
<updated>2026-05-07T00:05:54Z</updated>
<author>
<name>jao</name>
<email>jao@gnu.org</email>
</author>
<published>2026-05-07T00:05:54Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=ad7cae0a320c3793a073d82f348b3bacd85ccd35'/>
<id>urn:sha1:ad7cae0a320c3793a073d82f348b3bacd85ccd35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Accordion - a few cleanups</title>
<updated>2026-04-27T19:23:42Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2026-04-27T12:40:28Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=90bdfef9df3dff6eabd993cb76467bba3f2c6edf'/>
<id>urn:sha1:90bdfef9df3dff6eabd993cb76467bba3f2c6edf</id>
<content type='text'>
  - Use `RecordWildCards` language extension
  - Use `concurrently_` and `mapConcurrently_` instead of `withAsync`
  - Use `Bool` instead of `Maybe ()`
  - Use `whenM` instead of `when`
  - Add signature to `loop`
</content>
</entry>
<entry>
<title>Accordion: remove unnecessary context from `Exec` instance</title>
<updated>2026-03-12T18:26:59Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2026-03-12T07:34:53Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=7f387ff1e4c45527e4d2029051d32f0568625064'/>
<id>urn:sha1:7f387ff1e4c45527e4d2029051d32f0568625064</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix #767 - 1st attempt</title>
<updated>2026-03-11T11:39:18Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2026-03-11T11:39:18Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=70f8a6374b269669362cf04c576b6990e842c108'/>
<id>urn:sha1:70f8a6374b269669362cf04c576b6990e842c108</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update doc for PacmanUpdates</title>
<updated>2026-03-09T09:07:19Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2026-03-09T09:00:30Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=0805ea0b8c06a6b1a97f226b87489c38fc3a9d01'/>
<id>urn:sha1:0805ea0b8c06a6b1a97f226b87489c38fc3a9d01</id>
<content type='text'>
This is a minor follow up to https://codeberg.org/xmobar/xmobar/pulls/764, so see that one as well if you got here because the plugin told you it's deprecated.

This change consists of:

  - turning the deprecated constructor in a pattern synonym for the new
    ones (which are also pattern synonyms for calling convenience),
  - dropping the `PacmanUpdatesDeprecated` type entirely,
  - adding documentation with usage examples.
</content>
</entry>
<entry>
<title>Improve `PacmanUpdates`</title>
<updated>2026-03-08T17:56:49Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2026-03-06T16:10:10Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=508feb2abf27ea991bbcc0ba163e3f64cd60b67b'/>
<id>urn:sha1:508feb2abf27ea991bbcc0ba163e3f64cd60b67b</id>
<content type='text'>
Recently, I've seen the usefulness in knowning whether one of the pending updates is a kernel update (which means we should most likely reboot after next system update), and also whether the running kernel is older than the installed kernel package (which means we've probably not rebooted yet), so I thought I should update this plugin.

However, the feature of knowing whether a kernel update is contained in the available updates requires that one knows the kernel package name, so that's to be a `String` input to the plugin. But one might not want to pass it, and be happy with just the detection of whether the running kernel is older than the installed one.

Since recently, I've been studying type families and also come across pattern synonyms, I thought I could leverage these, so I thought I could parametrize the plugin over kind `Bool`, and branch on it to provide the different APIs; then I could use type synonyms to lift the burden of having to use type application at the user code.

Furthermore, rather than still customizing the message by asking the user to provide `String`s for the various cases (0 updates, 1 update, 2+ updates), I thought it was better to ask the caller to provide a function that accepts the relevant inputs (`Int` number of updates, `Bool` telling whether such and such) and turns them into a `String`.

With this change, I'm

  - renaming the previous type `PacmanUpdates` to
    `PacmanUpdatesDeprecated`
  - deprecating such type (with a pragma and by printing a clickable
    note in the plugin text) with the intention of deleting it in a year
    from now,
  - preserving its data ctor's to avoid breaking existing code right
    now,
  - creating a new `PacmanUpdates` type that is parametrized over kind
    `Bool`
    - the `True` instance allows passing the name of the kernel package
      that the plugin uses to detect whether there's a pending kernel
      update
    - the `False` instance doesn't,
    - accordingly the two instances accept from the caller a printing
      function with different signature (see haddock comments for
      details),
  - hiding (i.e. not exporting) the constructor of such new type,
  - provided pattern synonyms to more conveniently create a
    `PacmanUpdates False` (for `PacmanUpdates True` is just the same as
    the ctor),
  - changing the approach with which the final `String` is produced,
    from asking the user to provide a bunch of some sort of template
    `String`, to asking them for a function that produces a `String`
    given the required inputs (e.g. the number of available updates).
</content>
</entry>
<entry>
<title>Remove deprecated ArchUpdates plugin</title>
<updated>2026-02-28T08:05:11Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2026-02-28T07:51:16Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=39fd70308c3aef5402abe7152ade76ff7bb331bb'/>
<id>urn:sha1:39fd70308c3aef5402abe7152ade76ff7bb331bb</id>
<content type='text'>
Users should have long switched to PacmanUpdates, as communicated in #723.

Furthemore, we had forgotten to list PacmanUpdates in the plugins wrappable in Runnable. Fixed now.
</content>
</entry>
<entry>
<title>Remove unnecessary `extensible-exceptions` dependency</title>
<updated>2025-12-24T22:17:26Z</updated>
<author>
<name>konsumlamm</name>
<email>konsumlamm@gmail.com</email>
</author>
<published>2025-12-24T22:17:26Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=50ed21ea8cde2402d8ed139eb0c63f23826f1b1a'/>
<id>urn:sha1:50ed21ea8cde2402d8ed139eb0c63f23826f1b1a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid redundant use of IO monad</title>
<updated>2025-10-26T12:16:59Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2025-10-26T11:06:21Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=0495a8c0e453b0d29e3eb24f38491a9d534c5e94'/>
<id>urn:sha1:0495a8c0e453b0d29e3eb24f38491a9d534c5e94</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Accordion: avoid spawing a process to read from pipe</title>
<updated>2025-10-23T08:27:15Z</updated>
<author>
<name>Enrico Maria De Angelis</name>
<email>enricomaria.dean6elis@gmail.com</email>
</author>
<published>2025-10-23T08:27:13Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=57e31a571828e387f3b7b1e7414dd62f1783aa4b'/>
<id>urn:sha1:57e31a571828e387f3b7b1e7414dd62f1783aa4b</id>
<content type='text'>
The reason is that this way the issue
https://codeberg.org/Aster89/xnobar/issues/15#issue-2346829 is fixed.

See https://codeberg.org/Aster89/xnobar/issues/15#issuecomment-7864955
for more details.
</content>
</entry>
</feed>
