Idris2Doc : Core.Name

Core.Name

(source)

Reexports

importpublic Core.Name.Namespace

Definitions

dataUserName : Type
  A username has some structure

Totality: total
Visibility: public export
Constructors:
Basic : String->UserName
Field : String->UserName
Underscore : UserName

Hints:
EqUserName
OrdUserName
PrettyVoidUserName
ShowUserName
mkUserName : String->UserName
  A smart constructor taking a string and parsing it as the appropriate
username

Totality: total
Visibility: export
dataName : Type
  Name helps us track a name's structure as well as its origin:
was it user-provided or machine-manufactured? For what reason?

Totality: total
Visibility: public export
Constructors:
NS : Namespace->Name->Name
UN : UserName->Name
MN : String->Int->Name
PV : Name->Int->Name
DN : String->Name->Name
Nested : (Int, Int) ->Name->Name
CaseBlock : String->Int->Name
WithBlock : String->Int->Name
Resolved : Int->Name

Hints:
EqName
FreelyEmbeddable (IsVarxk)
FreelyEmbeddableVar
FreelyEmbeddable (NVarnm)
GenWeakenVar
GenWeaken (NVarnm)
HasNames (PatInfonvars)
HasNames (NamedPatstodovars)
HasNames (PatClausetodovars)
HasNames (Int, (FC, Name))
HasNames (Name, Bool)
HasNames (Name, Lista)
HasNames (Name, Transform)
HasNames (Name, (Name, Bool))
HasNamesName
HashableName
IsScopedVar
OrdName
PrettyIdrisSyntax (NamedPatstodovars)
PrettyIdrisSyntax (PatClausetodovars)
PrettyVoidName
SExpableName
Show (ArgTypens)
Show (PatInfonvars)
Show (NamedPatstodovars)
Show (PatClausetodovars)
Show (Partitionsps)
Show (Grouptodovars)
Show (ScoredPatspsns)
Show (NHeadfree)
Show (NFfree)
Show (Liftedvs)
Show (LiftedConAltvs)
Show (LiftedConstAltvs)
Show (CaseTreevars)
Show (CaseAltvars)
Show (CExpvars)
Show (Termvars)
ShowName
StrengthenVar
Strengthen (NVarnm)
StripNamespaceName
TTCName
TTC (Binder (Termvars))
TTC (Termvars)
TTC (CaseTreevars)
TTC (CaseAltvars)
TTC (EnvTermvars)
TTC (CExpvars)
TTC (CConAltvars)
TTC (CConstAltvars)
Weaken (PatInfop)
Weaken (NamedPatstodo)
WeakenVar
Weaken (NVarnm)
mkNamespacedName : MaybeNamespace->UserName->Name
Totality: total
Visibility: export
matches : Name->Name->Bool
  `matches a b` checks that the name `a` matches `b` assuming
the name roots are already known to be matching.
For instance, both `reverse` and `List.reverse` match the fully
qualified name `Data.List.reverse`.

Totality: total
Visibility: export
asName : ModuleIdent->Namespace->Name->Name
Totality: total
Visibility: export
userNameRoot : Name->MaybeUserName
Totality: total
Visibility: export
isOpChar : Char->Bool
Totality: total
Visibility: export
isOpUserName : UserName->Bool
  Test whether a user name begins with an operator symbol.

Totality: total
Visibility: export
isOpName : Name->Bool
  Test whether a name begins with an operator symbol.

Totality: total
Visibility: export
isUnderscoreName : Name->Bool
Totality: total
Visibility: export
isPatternVariable : UserName->Bool
Totality: total
Visibility: export
isUserName : Name->Bool
Totality: total
Visibility: export
isSourceName : Name->Bool
  True iff name can be traced back to a source name.
Used to determine whether it needs semantic highlighting.

Totality: total
Visibility: export
isRF : Name->Maybe (Namespace, String)
Totality: total
Visibility: export
isUN : Name->Maybe (Namespace, UserName)
Totality: total
Visibility: export
isBasic : UserName->MaybeString
Totality: total
Visibility: export
isField : UserName->MaybeString
Totality: total
Visibility: export
caseFn : Name->Bool
Totality: total
Visibility: export
displayUserName : UserName->String
Totality: total
Visibility: export
nameRoot : Name->String
Totality: total
Visibility: export
displayName : Name-> (MaybeNamespace, String)
Totality: total
Visibility: export
splitNS : Name-> (Namespace, Name)
Totality: total
Visibility: export
dropNS : Name->Name
Totality: total
Visibility: export
dropAllNS : Name->Name
Totality: total
Visibility: export
mbApplyNS : MaybeNamespace->Name->Name
Totality: total
Visibility: export
isUnsafeBuiltin : Name->Bool
Totality: total
Visibility: export
isPrettyOp : Bool->Name->Bool
  Will it be an operation once prettily displayed?
The first boolean states whether the operator is prefixed.

Totality: total
Visibility: export
prettyOp : Bool->Name->DocVoid
Visibility: export
userNameEq : (x : UserName) -> (y : UserName) ->Maybe (x=y)
Totality: total
Visibility: export
nameEq : (x : Name) -> (y : Name) ->Maybe (x=y)
Totality: total
Visibility: export
namesEq : (xs : ListName) -> (ys : ListName) ->Maybe (xs=ys)
Totality: total
Visibility: export
next : Name->Name
  Generate the next machine name

Totality: total
Visibility: export
closeMatch : Name->Name->IOBool
  Check if the test closely match the reference.
We only check for namespaces and user-defined names.

Totality: total
Visibility: export