lean-bindings-0.1: Haskell bindings to the Lean Theorem Prover.

Copyright(c) Galois Inc, 2015
LicenseApache-2
Maintainerjhendrix@galois.com, lcasburn@galois.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell98

Language.Lean.Name

Description

Operations for working with Lean names.

Synopsis

Documentation

anonymousName :: Name Source

The root "anonymous" name

nameAppend :: Name -> String -> Name Source

Append a string to a name.

nameAppendIndex :: Name -> Word32 -> Name Source

Append a numeric index to a name.

data NameView Source

A view of head of a lean name.

Constructors

AnonymousName

The anonymous name.

StringName Name String

A name with a string appended.

IndexName Name Word32

A name with a numeric value appended.

Instances

nameView :: Name -> NameView Source

View the head of a Lean name.

nameToString :: Name -> String Source

Return a name as a string with subnames separated by periods.