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
57d49a6d04
remove *>=> and >=*> ; use <$$> instead
...
I forgot I had <$$> hidden away in Utility.Applicative.
It allows doing the same kind of currying as does >=*>
and I found using it made the code more readable for me.
(*>=> was not used)
2013-09-27 19:58:48 -04:00
guilhem
f15fda60ed
Speed up the 'unused' command.
...
Instead of populating the second-level Bloom filter with every key
referenced in every Git reference, consider only those which differ
from what's referenced in the index.
Incidentaly, unlike with its old behavior, staged
modifications/deletion/... will now be detected by 'unused'.
Credits to joeyh for the algorithm. :-)
2013-08-25 21:02:13 -04:00
Joey Hess
0527c74c0f
assistant: In direct mode, objects are now only dropped when all associated files are unwanted. This avoids a repreated drop/get loop of a file that has a copy in an archive directory, and a copy not in an archive directory. (Indirect mode still has some buggy behavior in this area, since it does not keep track of associated files.) Closes : #712060
2013-06-15 14:44:43 -04:00
Joey Hess
ec7a51727a
pasto
2012-11-02 12:48:52 -04:00
Joey Hess
21d8f96679
give <&&> and <||> same fixity as && and ||
...
Suggestion by Daniel Trstenjak
These are not currently mixed in my code base, so no real change.
2012-11-02 11:20:55 -04:00
Joey Hess
6cad247c5f
look for sysctl in some common sbin locations when it's not in PATH
2012-10-06 16:16:31 -04:00
Joey Hess
ed79596b75
noop
2012-04-21 23:32:33 -04:00
Joey Hess
a362c46b70
fun with symbols
...
Nothing at all on hackage is using <&&> or <||>.
(Also, <&&> should short-circuit on failure.)
2012-03-17 00:38:40 -04:00
Joey Hess
771052a85e
optimize monadic ||
...
(||) used applicative style runs both conditions rather than short
circuiting. Add an orM that properly short-circuits.
2012-03-16 12:28:17 -04:00
Joey Hess
60ab3d84e1
added ifM and nuked 11 lines of code
...
no behavior changes
2012-03-14 17:43:34 -04:00
Joey Hess
183bdacca2
treak
2012-01-21 02:49:32 -04:00
Joey Hess
1e929c022d
typo
2012-01-03 18:40:47 -04:00
Joey Hess
ee554542c1
after is a better name for observe_
2012-01-03 00:29:27 -04:00
Joey Hess
fc80b8d96b
factor observe_
2012-01-03 00:11:00 -04:00
Joey Hess
442202dd6d
add a new useful thing
2012-01-02 11:18:33 -04:00
Joey Hess
64672c6262
refactor
2011-12-03 09:10:23 -04:00
Joey Hess
23f2a12816
broke up Utility
2011-10-16 00:50:12 -04:00