Joey Hess
794fc72afb
avoid parseDuration succeeding on empty string
2020-12-08 12:51:56 -04:00
Joey Hess
4c58433c48
avoid using MonadFail in ParseDuration
...
There's no instance for Either String, so that makes it not as useful as
it could be, so instead just return an Either String.
2020-08-15 15:53:35 -04:00
Joey Hess
f6d629e483
changelog and minor style
2020-02-28 12:57:55 -04:00
Peter Simons
73cf523a4b
Fix build with ghc-8.8.x.
...
The 'fail' method has been moved to the 'MonadFail' class. I made the changes
so that the code still compiles with previous versions of 'base' that don't
have the new MonadFail class exported by Prelude yet.
2020-02-28 12:54:20 -04:00
Joey Hess
e38b654096
Estimated time to completion display shortened from eg "1h1m1s" to "1h1m"
...
Because seconds accuracy over such a time is unlikely to be accurate.
Also, it was possible to get a ridiculous "1y1d1h1m1s" if stalled or
very slow.
2019-01-21 00:04:35 -04:00
Joey Hess
b59b8be737
generalize parseDuration so it can be used in the ReadM monad
2015-07-08 16:08:26 -04:00
Joey Hess
ec267aa1ea
rejigger imports for clean build with ghc 7.10's AMP changes
...
The explict import Prelude after import Control.Applicative is a trick
to avoid a warning.
2015-05-10 16:20:30 -04:00
Joey Hess
afc5153157
update my email address and homepage url
2015-01-21 12:50:09 -04:00
Joey Hess
9fd95d9025
indent with tabs not spaces
...
Found these with:
git grep "^ " $(find -type f -name \*.hs) |grep -v ': where'
Unfortunately there is some inline hamlet that cannot use tabs for
indentation.
Also, Assistant/WebApp/Bootstrap3.hs is a copy of a module and so I'm
leaving it as-is.
2014-10-09 15:09:26 -04:00
Joey Hess
7b50b3c057
fix some mixed space+tab indentation
...
This fixes all instances of " \t" in the code base. Most common case
seems to be after a "where" line; probably vim copied the two space layout
of that line.
Done as a background task while listening to episode 2 of the Type Theory
podcast.
2014-10-09 15:09:11 -04:00
Joey Hess
2427832bed
relicense general utility library code to BSD
...
Omitted a couple of files what have had significant contributions from
others.
2014-05-10 11:01:27 -03:00
Joey Hess
72ec0ab736
hlint
2014-04-26 19:25:05 -04:00
Joey Hess
e0bd088f08
add webapp UI to manage unused files
2014-01-23 15:09:43 -04:00
Joey Hess
4830c0d830
parse "5" as 5 seconds
2013-10-26 12:07:00 -04:00
Joey Hess
51c44b26aa
quickcheck duration
2013-10-08 17:35:25 -04:00
Joey Hess
ca83b16415
expand with a fromDuration and support for mixed unit durations
2013-10-08 17:12:38 -04:00
Joey Hess
f87a781aa6
finished where indentation changes
2012-12-13 00:24:19 -04:00
Joey Hess
f0e0d17440
New --time-limit option, makes long git-annex commands stop after a specified amount of time.
2012-09-25 16:48:24 -04:00