Safe Haskell | None |
---|---|
Language | Haskell2010 |
Random utilities used by the code.
Synopsis
- combineSrcSpans' :: NonEmpty SrcSpan -> SrcSpan
- isModule :: Data a => a -> Bool
- notImplemented :: String -> a
- showOutputable :: Outputable o => o -> String
- splitDocString :: HsDocString -> [Text]
Documentation
combineSrcSpans' :: NonEmpty SrcSpan -> SrcSpan Source #
Combine all source spans from the given list.
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.