Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- unqualIEWrapName :: IEWrappedName RdrName -> Text
- safeTyThingId :: TyThing -> Maybe Id
- safeTyThingType :: TyThing -> Maybe Type
- data SpanDoc
- data SpanDocUris = SpanDocUris {}
- emptySpanDoc :: SpanDoc
- spanDocToMarkdown :: SpanDoc -> [Text]
- spanDocToMarkdownForTest :: String -> String
- type DocMap = NameEnv SpanDoc
- type KindMap = NameEnv TyThing
Documentation
unqualIEWrapName :: IEWrappedName RdrName -> Text Source #
Shows IEWrappedName, without any modifier, qualifier or unique identifier.
SpanDocString HsDocString SpanDocUris | Extern module doc |
SpanDocText [Text] SpanDocUris | Local module doc |
Instances
Eq SpanDoc Source # | |
Show SpanDoc Source # | |
Generic SpanDoc Source # | |
NFData SpanDoc Source # | |
Defined in Development.IDE.Spans.Common | |
type Rep SpanDoc Source # | |
Defined in Development.IDE.Spans.Common type Rep SpanDoc = D1 ('MetaData "SpanDoc" "Development.IDE.Spans.Common" "ghcide-1.7.0.0-Et6Gp1ZnqTjGFkpVtgQ7GA" 'False) (C1 ('MetaCons "SpanDocString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HsDocString) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpanDocUris)) :+: C1 ('MetaCons "SpanDocText" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpanDocUris))) |
data SpanDocUris Source #
SpanDocUris | |
|
Instances
spanDocToMarkdown :: SpanDoc -> [Text] Source #
Convert SpanDoc
to Markdown format.
Return a list Text
includes haddock, document uri and source code uri,
each item can be empty and must end with '\n' if exist. This is to prevent
subsequent render problem caused by the missing newline.
Example:
For return value ["xxxx","yyyy"], if we concat the list with inserting a separate line(note by "---n"), it will result "xxxx---nyyyy" and can't be rendered as a normal doc. Therefore we check every item in the value to make sure they all end with '\n', this makes "xxxxn---nyyyn" and can be rendered correctly.