Skip to content

Commit

Permalink
Restyled by stylish-haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Apr 24, 2022
1 parent 687bb57 commit aff4aa2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Tokstyle/Linter/Comments.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import Control.Monad.State.Strict (State)
import qualified Control.Monad.State.Strict as State
import Data.Fix (Fix (..))
import Data.Text (Text)
import Language.Cimple (Lexeme (..), Node, CommentF (..), NodeF (..), lexemeText)
import Language.Cimple (CommentF (..), Lexeme (..), Node,
NodeF (..), lexemeText)
import Language.Cimple.Diagnostics (Diagnostics, warn)
import Language.Cimple.TraverseAst (AstActions, astActions, doComment, doNode,
traverseAst)
import Language.Cimple.TraverseAst (AstActions, astActions, doComment,
doNode, traverseAst)


isGendered :: Text -> Bool
Expand All @@ -36,12 +37,12 @@ linter = astActions
{ doComment = \file comment act ->
case unFix comment of
DocWord w -> checkCommentLexeme file w
_ -> act
_ -> act
, doNode = \file node act ->
case unFix node of
Comment _ _ ws _ -> mapM_ (checkCommentLexeme file) ws
_ -> act
_ -> act

}

analyse :: (FilePath, [Node (Lexeme Text)]) -> [Text]
Expand Down

0 comments on commit aff4aa2

Please sign in to comment.