| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Tokstyle.Common
Synopsis
- functionName :: Show a => Node (Lexeme a) -> Maybe a
- isPointer :: Node (Lexeme Text) -> Bool
- semEq :: Node (Lexeme Text) -> Node (Lexeme Text) -> Bool
- skip :: [FilePath] -> (FilePath, [Node (Lexeme Text)]) -> (FilePath, [Node (Lexeme Text)])
- warn :: (HasDiagnosticsRich diags CimplePos, HasDiagnosticInfo at CimplePos) => FilePath -> at -> Text -> DiagnosticsT diags ()
- warnDoc :: (HasDiagnosticsRich diags CimplePos, HasDiagnosticInfo at CimplePos) => FilePath -> at -> Doc AnsiStyle -> DiagnosticsT diags ()
- backticks :: Doc ann -> Doc ann
- dquotes :: Doc ann -> Doc ann
- (>+>) :: Monad m => (t -> m ()) -> (t -> m ()) -> t -> m ()
Documentation
functionName :: Show a => Node (Lexeme a) -> Maybe a Source #
Extract the name of a function, possibly inside an attribute node.
Non-function nodes result in Nothing.
warn :: (HasDiagnosticsRich diags CimplePos, HasDiagnosticInfo at CimplePos) => FilePath -> at -> Text -> DiagnosticsT diags () Source #
warnDoc :: (HasDiagnosticsRich diags CimplePos, HasDiagnosticInfo at CimplePos) => FilePath -> at -> Doc AnsiStyle -> DiagnosticsT diags () Source #