[darcs-users] darcs patch: Improve generic rules for English plurals.
David Roundy
droundy at darcs.net
Tue Jul 29 17:17:41 UTC 2008
Applied. Thanks!
David
On Tue, Jul 15, 2008 at 10:26:18AM +0000, E.Y.Kow at brighton.ac.uk wrote:
> Wed Jun 4 13:37:28 BST 2008 Eric Kow <E.Y.Kow at brighton.ac.uk>
> * Improve generic rules for English plurals.
>
Content-Description: A darcs patch for your repository!
>
> New patches:
>
> [Improve generic rules for English plurals.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080604123728] hunk ./src/English.lhs 22
> +import Data.List (isSuffixOf)
> +
> hunk ./src/English.lhs 34
> - plural (Noun "") = id
> - -- note that this is wrong! consider 'cat-es' and 'dog-es'
> - -- but it works for darcs 'patch-es' and 'change-s'
> - plural (Noun s) | last s == 'e' = showString s . showChar 's'
> - plural (Noun s) = showString s . showString "es"
> + -- more irregular nouns will just need to have their own type
> + plural (Noun s) | "ch" `isSuffixOf` s = showString s . showString "es"
> + plural (Noun s) = showString s . showChar 's'
>
> Context:
>
> [Better avoid silly manpage error.
> Trent W. Buck <trentbuck at gmail.com>**20080704024920
>
> It turned out only initialize's help string used 'quotes', so just
> remove them. This makes init's docstring consistent with the others.
> ]
> [Missing period at end of sentence.
> Trent W. Buck <trentbuck at gmail.com>**20080704024232]
> [darcs --overview no longer works, so don't document it.
> Trent W. Buck <trentbuck at gmail.com>**20080704030804]
> [Avoid silly manpage error.
> Trent W. Buck <trentbuck at gmail.com>**20080703010733
> man (nroff) treats an apostrophe in the first column specially,
> resulting in a syntax error without this patch.
>
> Ideally, all cases of 'foo' in the manpage (i.e. docstrings) should
> become `foo', since man -Tps turns ` and ' into left and right single
> quotes respectively.
> ]
> [obliterate whitespace in Darcs.Commands.Get
> gwern0 at gmail.com**20080627192026
> 'twas causing lhs/haddock difficulties where a \end{code} wasn't getting recognized.
> ]
> [rm haddock CPP business
> gwern0 at gmail.com**20080627191413
> Try as I might, I can't see any reason to special-case some Haddock CPP logic to deal with some *commented-out guards*, unless CPP magically restores and uncomments the code if Haddock isn't being run.
> ]
> [make pull less verbose when --verbose flag is given.
> David Roundy <droundy at darcs.net>**20080624170035]
> [fix makefile to remember to regenerate version information after running configure.
> David Roundy <droundy at darcs.net>**20080624170001]
> [TAG 2.0.2
> David Roundy <droundy at darcs.net>**20080624012041]
> [bump version number again (brown bag!)
> David Roundy <droundy at darcs.net>**20080624011914]
> [add script to check that "make dist" actually works.
> David Roundy <droundy at darcs.net>**20080624011817]
> [fix buggy and inconsistent release-determining scripts.
> David Roundy <droundy at darcs.net>**20080624011759]
> [ignore boring changelog entry patches when constructing ChangeLog.
> David Roundy <droundy at darcs.net>**20080623224504]
> [add changelog entry for fix of version-numbering bug.
> David Roundy <droundy at darcs.net>**20080623223901]
> [fix bug in determine_release_state.pl.
> David Roundy <droundy at darcs.net>**20080623223739]
> [TAG 2.0.1
> David Roundy <droundy at darcs.net>**20080623214707]
> [bump version to 2.0.1.
> David Roundy <droundy at darcs.net>**20080623214646]
> [determine_release_state.pl: use regexp to determine patch count if "darcs changes" does not support --count argument.
> Dmitry Kurochkin <dmitry.kurochkin at gmail.com>**20080621122305]
> [Delete haddock documentation on constructor arguments; see Issue935
> Michael De La Rue <gneqbgqnepfqbgarg.yeuhc at spamgourmet.com>**20080622182644]
> [Add configure options for libcurl and libwww debugging.
> Dmitry Kurochkin <dmitry.kurochkin at gmail.com>**20080620221237]
> [aclocal.m4: add library to $LIBS instead of $GHCFLAGS in GHC_CHECK_LIBRARY.
> Dmitry Kurochkin <dmitry.kurochkin at gmail.com>**20080620214538]
> [resolve issue930: remove broken link from webpage.
> David Roundy <droundy at darcs.net>**20080620172635]
> [add threadWaitRead trick as suggested by Simon (issue916).
> David Roundy <droundy at darcs.net>**20080620172119
> Apparently this should solve the ctrl-C issues on posix systems, but
> windows remains only partially-solved (it requires multiple ctrl-C's
> to exit).
> ]
> [resolve issue916: use separate thread for reading from stdin.
> David Roundy <droundy at darcs.net>**20080618210110]
> [Set up configure to build an rpm spec file for building rpm packages with.
> Michael De La Rue <gneqbgqnepfqbgarg.yeuhc at spamgourmet.com>**20080616231617]
> [hscurl.c: fix harmless warning with curl >= 7.18.1.
> Dmitry Kurochkin <dmitry.kurochkin at gmail.com>**20080613125607]
> [Even more changelog entries for 2.0.1.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080614091045]
> [Use changes -s style for unlogged patches (make_changelog).
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080614072632
> This make it easier to tell what a patch is at a glance.
> ]
> [Still more changelog entries for 2.0.1.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613181548]
> [Canonize Benjamin Fraksen.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613171147]
> [fix potential redundancy in version name.
> David Roundy <droundy at darcs.net>**20080613162019]
> [fix issue #918: use simplePrinters for xml output in "darcs changes" command
> benjamin.franksen at bessy.de**20080613110922]
> [make darcs send always provide context.
> David Roundy <droundy at darcs.net>**20080613155550
> I've just gotten sick of telling folks to add send --unified to their
> defaults file. It's hard to see who wouldn't want context included.
> ]
> [More changelog entries for 2.0.1.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613165729]
> [Clarify intent of ignored changelog entries.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613162537]
> [Ignore tags in make_changelog warning about unlogged patches.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613162213]
> [Support comments on ignored changelog entries.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613161742
>
> Parsec wibble: the problem was that it would start parsing the
> emptyLine as a 'match' and not backtrack.
> ]
> [ChangeLog entries by Eric.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613151200
> Some ChangeLog entries for 2.0.1
> ]
> [Add 'ignored' changelog entries (no warnings).
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613150620]
> [Resolve issue705: warn about patches which are not changelogged.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613145443
> Mostly by Tommy Pettersson.
> ]
> [Add ability to ignore patches for ChangeLog.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613142540
> This would be useful if make_changelog could point out which patches
> are not being changelogged.
> ]
> [Exceptions to GPL granted as of 2008-06-13 morning.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613072749]
> [Add test for case-insensitive backup bug.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613070918]
> [Fix a backup bug on case-insensitive file systems.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080613070213
>
> Avoids this scenario. The task: move foo to FOO and modify FOO
> 1. FOO (foo) already exists, so I'll back it up
> (moves FOO [foo] to FOO.darcs-backup0)
> 2. Now I can move foo to FOO
> foo no longer exists, but that's ok
> (nothing happens)
> 3. Now I can FOO
> hey, where did FOO go?
> (crash!)
> ]
> [Check for bash before running shell tests.
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080612145509
> MSYS, for instance, does not provide bash by default.
> [note: or rather, only under the guise of sh.exe]
> ]
> [TAG 2.0.1rc2
> David Roundy <droundy at darcs.net>**20080613011745]
> [bump version number up to 2.0.1rc2.
> David Roundy <droundy at darcs.net>**20080613011731]
> [Resolve issue913: Use Data.Bytestring for IO, not Data.Bytestring.Char8
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080612125719
>
> This solution comes from Ian Lynagh, who points out that the
> difference between the two is:
>
> Data.Bytestring.Char8
> ---------------------
> writeFile :: FilePath -> ByteString -> IO ()
> writeFile f txt = bracket (openFile f WriteMode) hClose
> (\h -> hPut h txt)
>
> Data.Bytestring
> ---------------
> writeFile :: FilePath -> ByteString -> IO ()
> writeFile f txt = bracket (openBinaryFile f WriteMode) hClose
> (\h -> hPut h txt)
>
> We want this change because, as the System.IO docs say:
>
> On Windows, reading a file in text mode (which is the default) will
> translate CRLF to LF, and writing will translate LF to CRLF. This is
> usually what you want with text files. With binary files this is
> undesirable; also, as usual under Microsoft operating systems, text
> mode treats control-Z as EOF. Binary mode turns off all special
> treatment of end-of-line and end-of-file characters.
>
> ]
> [fix OPTLLIBS filtering
> Karel Gardas <kgardas at objectsecurity.com>**20080607210701]
> [Darcs.Repository.Prefs: +boring filters for MS Visual Studio (see -users discussion)
> gwern0 at gmail.com**20080607080336]
> [Demonstrate 'hidden conflicts' bug (old format).
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080606151534]
> [fix regression introduced by using Data.List.isInfixOf.
> David Roundy <droundy at darcs.net>**20080606102519]
> [fix bug in test when there's a space in test directory.
> David Roundy <droundy at darcs.net>**20080605151104]
> [translate pull.pl into shell.
> David Roundy <droundy at darcs.net>**20080605124106]
> [make test suite smarter about cleaning up test directories.
> David Roundy <droundy at darcs.net>**20080605124025]
> [darcs put now support --{no-,}set-default.
> Nicolas Pouillard <nicolas.pouillard at gmail.com>**20080604214551]
> [fix regression in index.html.in.
> David Roundy <droundy at darcs.net>**20080605114356]
> [resolve issue783: propose 'edit' as a default Windows editor
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080605165812
>
> I think every Windows box has this. Advantages over notepad are that
> - it's a console app
> - it appears to support Unix newlines
> ]
> [Makefile: prefix -optl only on $(LIBS) that start with '-'
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080605105539
>
> Otherwise, on Windows, if you try to build --with-static-libs, the
> linker will be passed /usr/local/lib/libcurl.a as an argument, which
> makes gcc complain.
> ]
> [resolve issue770: catch 'does not exist' when running external programs
> Eric Kow <E.Y.Kow at brighton.ac.uk>**20080604143100
> Convert these errors into ExitCode 127 (for Windows)
> ]
> [TAG 2.0.1rc1
> David Roundy <droundy at darcs.net>**20080603124331]
> Patch bundle hash:
> 84a65e15c12bff09cab9839da6cb54df717bdb27
--
David Roundy
Department of Physics
Oregon State University
More information about the darcs-users
mailing list