Copyright | (c) 2020 Kowainik |
---|---|
License | MPL-2.0 |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Data types and functions for working with meta information.
Synopsis
- data NameMeta = NameMeta {}
- prettyShowNameMeta :: NameMeta -> Text
- compareNames :: NameMeta -> Name -> Bool
- hieMatchNameMeta :: NameMeta -> (Identifier, IdentifierDetails TypeIndex) -> Bool
- hieFindIdentifier :: NameMeta -> HieAST TypeIndex -> Maybe NameMeta
- baseNameFrom :: Text -> ModuleName -> NameMeta
- mkBaseListMeta :: Text -> NameMeta
- mkBaseOldListMeta :: Text -> NameMeta
- mkBaseFoldableMeta :: Text -> NameMeta
- unorderedNameFrom :: Text -> ModuleName -> NameMeta
- textNameFrom :: Text -> ModuleName -> NameMeta
- ghcPrimNameFrom :: Text -> ModuleName -> NameMeta
- primTypeMeta :: Text -> NameMeta
Documentation
Meta information about function/type.
NameMeta | |
|
Pretty show
prettyShowNameMeta :: NameMeta -> Text Source #
Pretty show NameMeta
in the following format: package/module/name
.
Comparison with Name
:: NameMeta | Name meta info |
-> (Identifier, IdentifierDetails TypeIndex) | HIE identifier |
-> Bool |
Check whether HIE Identifier
with details is a given NameMeta
.
Smart constructors
baseNameFrom :: Text -> ModuleName -> NameMeta infix 8 Source #
Create NameMeta
for a function from the base
package and
a given ModuleName
. module.
mkBaseListMeta :: Text -> NameMeta Source #
mkBaseOldListMeta :: Text -> NameMeta Source #
Create NameMeta
for a function from the base
package and
the Data.OldList module.
mkBaseFoldableMeta :: Text -> NameMeta Source #
Create NameMeta
for a function from the base
package and
the Data.Foldable module.
unorderedNameFrom :: Text -> ModuleName -> NameMeta infix 8 Source #
Create NameMeta
for a function from the unordered-containers
package
and a given ModuleName
module.
textNameFrom :: Text -> ModuleName -> NameMeta infix 8 Source #
Create NameMeta
for a function from the text
package
and a given ModuleName
module.
ghcPrimNameFrom :: Text -> ModuleName -> NameMeta infix 8 Source #
Create NameMeta
for a function from the ghc-prim
package
and a given ModuleName
module.