Skip to content

Commit 03244d5

Browse files
committed
Fix review comments
1 parent 7e2fee2 commit 03244d5

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.circleci/config.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

397404
workflows:

src/Streamly/Internal/Data/Stream/Serial.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
507507
unfoldrM step seed = D.fromStreamD (D.unfoldrM step seed)
508+

0 commit comments

Comments
 (0)