Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The private Unison.Name innards. Prefer importing Unison.Name instead, unless you need the data constructor of Name.
Synopsis
- data Name = Name Position (NonEmpty NameSegment)
- isAbsolute :: Name -> Bool
- segments :: Name -> NonEmpty NameSegment
Documentation
A name is an absolute-or-relative non-empty list of name segments. It is used to represent the path to a definition.
A few example names:
Name | |
|
Instances
isAbsolute :: Name -> Bool Source #
Is this name absolute?
O(1).