ormolu-0.0.2.0: A formatter for Haskell source code

Safe HaskellNone
LanguageHaskell2010

Ormolu.Utils

Description

Random utilities used by the code.

Synopsis

Documentation

combineSrcSpans' :: NonEmpty SrcSpan -> SrcSpan Source #

Combine all source spans from the given list.

isModule :: Data a => a -> Bool Source #

Return True if given element of AST is module.

notImplemented :: String -> a Source #

Placeholder for things that are not yet implemented.

showOutputable :: Outputable o => o -> String Source #

Pretty-print an Outputable thing.

splitDocString :: HsDocString -> [Text] Source #

Split and normalize a doc string. The result is a list of lines that make up the comment.

typeArgToType :: LHsTypeArg p -> LHsType p Source #