Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Types related to working with NameLookups. We define these low-level types rather than use Path's because we don't have access to those domain types given the package dependency tree.
Synopsis
- newtype ReversedName = ReversedName (NonEmpty Text)
- newtype ReversedPath = ReversedPath [Text]
- newtype PathSegments = PathSegments [Text]
- type NamespaceText = Text
- reversedNameToNamespaceText :: ReversedName -> NamespaceText
- reversedNameToPathSegments :: ReversedName -> PathSegments
- pathSegmentsToText :: PathSegments -> Text
- textToPathSegments :: Text -> PathSegments
Documentation
newtype ReversedName Source #
Instances
newtype ReversedPath Source #
Instances
Show ReversedPath Source # | |
Defined in U.Codebase.Sqlite.NameLookups showsPrec :: Int -> ReversedPath -> ShowS # show :: ReversedPath -> String # showList :: [ReversedPath] -> ShowS # | |
Eq ReversedPath Source # | |
Defined in U.Codebase.Sqlite.NameLookups (==) :: ReversedPath -> ReversedPath -> Bool # (/=) :: ReversedPath -> ReversedPath -> Bool # | |
Ord ReversedPath Source # | |
Defined in U.Codebase.Sqlite.NameLookups compare :: ReversedPath -> ReversedPath -> Ordering # (<) :: ReversedPath -> ReversedPath -> Bool # (<=) :: ReversedPath -> ReversedPath -> Bool # (>) :: ReversedPath -> ReversedPath -> Bool # (>=) :: ReversedPath -> ReversedPath -> Bool # max :: ReversedPath -> ReversedPath -> ReversedPath # min :: ReversedPath -> ReversedPath -> ReversedPath # | |
From ReversedPath [Text] Source # | |
Defined in U.Codebase.Sqlite.NameLookups from :: ReversedPath -> [Text] # | |
From [Text] ReversedPath Source # | |
Defined in U.Codebase.Sqlite.NameLookups from :: [Text] -> ReversedPath # |
newtype PathSegments Source #
Instances
type NamespaceText = Text Source #
A namespace rendered as a path, no leading .
E.g. "base.data"
reversedNameToNamespaceText :: ReversedName -> NamespaceText Source #
>>>
reversedSegmentsToNamespaceText (["List", "data", "base"])
"base.data.List"
pathSegmentsToText :: PathSegments -> Text Source #
>>>
pathSegmentsToText (PathSegments ["base", "data", "List"])
"base.data.List"
textToPathSegments :: Text -> PathSegments Source #
>>>
textToPathSegments "base.data.List"
PathSegments ["base","data","List"]