mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
32e26c5bd1
Instead of having UN & RF (& Hole in the near future & maybe even more later e.g. operator names) we have a single UN constructor that takes a UserName instead of a String. UserName is (for now) ```idris data UserName : Type where Basic : String -> UserName -- default name constructor e.g. map Field : String -> UserName -- field accessor e.g. .fst Underscore : UserName -- no name e.g. _ ``` This is extracted from the draft PR #1852 which is too big to easily debug. Once this is working, I can go back to it.
20 lines
565 B
Plaintext
20 lines
565 B
Plaintext
1/1: Building RecordDoc (RecordDoc.idr)
|
|
RecordDoc>
|
|
RecordDoc> record RecordDoc.A : Type -> Type
|
|
Totality: total
|
|
Constructor: __mkA : _
|
|
Projection: .anA : A a -> a
|
|
RecordDoc> record RecordDoc.Tuple : Type -> Type -> Type
|
|
Totality: total
|
|
Constructor: __mkTuple : _
|
|
Projections:
|
|
.proj1 : Tuple a b -> a
|
|
.proj2 : Tuple a b -> b
|
|
RecordDoc> record RecordDoc.Singleton : a -> Type
|
|
Totality: total
|
|
Constructor: __mkSingleton : _
|
|
Projections:
|
|
.equal : (rec : Singleton v) -> value rec = v
|
|
.value : Singleton v -> a
|
|
RecordDoc> Bye for now!
|