File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
src/Streamly/Internal/Data/Stream Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -390,8 +390,15 @@ jobs:
390390 command : |
391391 bash -c "$PACKCHECK $BUILD" || exit 1
392392 count=$(find . -name "*.hs" -exec grep -H '\ $' {} \; | tee /dev/tty | wc -l)
393- count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; print FILENAME; } }' *.hs | tee /dev/tty | wc -l)
394- exit $((count+count2))
393+ if $count > 0
394+ then exit 1
395+ fi
396+ git diff > tmp_len
397+ count2=$(awk '{ if (length($0) > 80) {print "Line length exceeds 80 : " length($0); print $0; } }' tmp_len | tee /dev/tty | wc -l)
398+ rm tmp_len
399+ if $count2 > 0
400+ then exit 2
401+ fi
395402 - *save
396403
397404workflows :
Original file line number Diff line number Diff line change @@ -503,5 +503,6 @@ TRAVERSABLE_INSTANCE(WSerialT)
503503-- /Pre-release/
504504--
505505{-# INLINE unfoldrM #-}
506- unfoldrM :: (IsStream t , Monad m ) => (b -> m (Maybe (a , b ))) -> b -> t m a
506+ unfoldrM :: (IsStream t , Monad m ) => (b -> m (Maybe (a , b ))) -> b -> t m a
507507unfoldrM step seed = D. fromStreamD (D. unfoldrM step seed)
508+
You can’t perform that action at this time.
0 commit comments