@@ -11,6 +11,7 @@ module Ormolu.Parser.CommentStream
11 , Comment (..)
11 , Comment (..)
12 , mkCommentStream
12 , mkCommentStream
13 , isPrevHaddock
13 , isPrevHaddock
14 , showCommentStream
15 , showCommentStream
@@ -71,6 +72,11 @@ mkCommentStream extraComments pstate =
71isPrevHaddock :: Comment -> Bool
72isPrevHaddock :: Comment -> Bool
72isPrevHaddock (Comment (x :| _)) = "-- ^" `isPrefixOf` x
73isPrevHaddock (Comment (x :| _)) = "-- ^" `isPrefixOf` x
75+-- | Is this comment multiline-style?
77+isMultilineComment :: Comment -> Bool
78+isMultilineComment (Comment (x :| _)) = "{-" `isPrefixOf` x
74-- | Pretty-print a 'CommentStream'.
80-- | Pretty-print a 'CommentStream'.
76showCommentStream :: CommentStream -> String
82showCommentStream :: CommentStream -> String