Skip to content

Commit 99ef436

Browse files
committed
Fix up the docs
1 parent cd80edc commit 99ef436

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

classy-prelude/src/ClassyPrelude.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -632,15 +632,17 @@ getContents = liftIO LTextIO.getContents
632632
interact :: MonadIO m => (LText -> LText) -> m ()
633633
interact = liftIO . LTextIO.interact
634634

635-
-- | Pattern synonyms for working with sequences,
636-
-- corresponding to [] and (x : xs) for List
635+
{-# COMPLETE Empty, Cons #-}
636+
-- | Corresponds to [] for List
637637
--
638638
-- @since 1.5.1
639-
{-# COMPLETE Empty, Cons #-}
640639
pattern Empty :: IsSequence seq => seq
641640
pattern Empty <- (uncons -> Nothing) where
642641
Empty = fromList []
643642

643+
-- | Corresponds to (x : xs) for List
644+
--
645+
-- @since 1.5.1
644646
pattern Cons :: IsSequence seq => Element seq -> seq -> seq
645647
pattern Cons x xs <- (uncons -> Just (x, xs)) where
646648
Cons = cons

0 commit comments

Comments
 (0)