unison-codebase-sqlite-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

U.Codebase.Sqlite.NameLookups

Description

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

Documentation

newtype PathSegments Source #

Constructors

PathSegments [Text] 

Instances

Instances details
Monoid PathSegments Source # 
Instance details

Defined in U.Codebase.Sqlite.NameLookups

Semigroup PathSegments Source # 
Instance details

Defined in U.Codebase.Sqlite.NameLookups

Show PathSegments Source # 
Instance details

Defined in U.Codebase.Sqlite.NameLookups

Eq PathSegments Source # 
Instance details

Defined in U.Codebase.Sqlite.NameLookups

Ord PathSegments Source # 
Instance details

Defined in U.Codebase.Sqlite.NameLookups

From PathSegments [Text] Source # 
Instance details

Defined in U.Codebase.Sqlite.NameLookups

Methods

from :: PathSegments -> [Text] #

From [Text] PathSegments Source # 
Instance details

Defined in U.Codebase.Sqlite.NameLookups

Methods

from :: [Text] -> PathSegments #

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"]