darcs

Patch 2178 remove dependency on regex-compat-tdfa

Title remove dependency on regex-compat-tdfa
Superseder Nosy List bfrk
Related Issues
Status accepted Assigned To
Milestone

Created on 2021-05-22.13:54:36 by bfrk, last changed 2021-06-03.13:46:03 by bfrk.

Files
File name Status Uploaded Type Edit Remove
patch-preview.txt bfrk, 2021-05-22.13:54:34 text/x-darcs-patch
remove-dependency-on-regex_compat_tdfa.dpatch bfrk, 2021-05-22.13:54:34 application/x-darcs-patch
unnamed bfrk, 2021-05-22.13:54:34 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg22798 (view) Author: bfrk Date: 2021-05-22.13:54:34
Please take a look before I screen, particularly the removal of the `darcs
send` warning.

1 patch for repository http://darcs.net/screened:

patch a31bfd7b2456df3b46192e948ebd404bc986755d
Author: Ben Franksen <ben.franksen@online.de>
Date:   Sat May 22 16:05:02 CEST 2021
  * remove dependency on regex-compat-tdfa
  
  This copies a small number of trivial wrappers from that packages into a new
  module Darcs.Util.Regex. The only use of a non-trivial function was in the
  darcs send command where we decide if the system encoding is UTF-8
  compatible and warn the user if it is not. This part has been removed
  because non UTF-8 compatible system encodings are no longer relevant today.
Attachments
msg22799 (view) Author: ganesh Date: 2021-05-22.16:33:51
Looks fine to me, and it's nice to get rid of a bit more C from darcs.

I think our discussion on IRC was after you sent this and we didn't come
to a final conclusion on our strategy. Personally I'm fine with dropping
the dependency in whatever way seems best.
msg22800 (view) Author: bfrk Date: 2021-05-23.06:54:36
> I think our discussion on IRC was after you sent this and we didn't come
> to a final conclusion on our strategy.

Yes, I recorded this patch and then had second thoughts. One more data
point: the docs on subRegex and splitRegex (the two functions I did not
copy over to Darcs.Util.Regex) say

"This does not advance if the regex matches an empty string. This
misfeature is here to match the behavior of the original Text.Regex API."

I am not sure I want to maintain a package with such a compatibility
burden attached to it.

> Personally I'm fine with dropping
> the dependency in whatever way seems best.

I'll think about the options a bit more. In light of the above reasoning
I tend to think the way this patch does it may still be the best way.
msg22833 (view) Author: bfrk Date: 2021-06-03.13:45:19
screening
msg22834 (view) Author: bfrk Date: 2021-06-03.13:46:03
self-accept (after discussion on irc and elsewhere)
History
Date User Action Args
2021-05-22 13:54:36bfrkcreate
2021-05-22 16:33:52ganeshsetmessages: + msg22799
2021-05-23 06:54:39bfrksetmessages: + msg22800
2021-06-03 13:45:19bfrksetstatus: needs-screening -> needs-review
messages: + msg22833
2021-06-03 13:46:03bfrksetstatus: needs-review -> accepted
messages: + msg22834