On Thu, Aug 6, 2009 at 4:00 AM, Neil Mitchell<[email protected]> wrote:
Why not -fwarn-tabs ? It's in GHC already. Although I'm not totally
opposed to adding checks for things like trailing white space, use of
tabs etc.

Thanks

Neil

Well, we already have -Wall on in darcs.cabal, which I think turns on 
-fwarn-tabs; but IIRC this wouldn't cover trailing whitespace.

Anyone know whether leading tabs is *all* that haskell_policy covers? My sed-fu 
is weak; the relevant section is:

darcs query manifest --repodir="$ROOT" | grep '\.l\?hs$' | while read f; do
   grep -FHnwe "       " "$ROOT/$f" >> "$RESULT"
done
if [ -s "$RESULT" ]; then
   echo "Found the following lines with unwanted tabs:"
   # ugly sed expresion to fix relative paths; think pretty cat
   sed -e 's/[^:]*\/\.\///' "$RESULT"
   echo
   ERRORSTATUS=1
fi


--
gwern

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to