File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ open Haskell.Prim public using
66 ( Type;
77 Bool; True; False; Char; Integer;
88 List; []; _∷_; Nat; zero; suc; ⊤; tt;
9- TypeError ; ⊥; iNumberNat; lengthNat;
9+ UnsatisfiedConstraint ; ⊥; iNumberNat; lengthNat;
1010 IsTrue; IsFalse; NonEmpty;
1111 All; allNil; allCons;
1212 Any; anyHere; anyThere;
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ data IsFalse : Bool → Type where
124124data NonEmpty {a : Type} : List a → Type where
125125 instance itsNonEmpty : ∀ {x xs} → NonEmpty (x ∷ xs)
126126
127- data TypeError (err : AgdaString) : Type where
127+ data UnsatisfiedConstraint (err : AgdaString) : Type where
128128
129129it : ∀ {@0 ℓ} {@0 a : Type ℓ} → ⦃ a ⦄ → a
130130it ⦃ x ⦄ = x
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ showInt a = showInteger (intToInteger a)
103103
104104@0 IsNonNegativeInt : Int → Type
105105IsNonNegativeInt a@(int64 _) =
106- if isNegativeInt a then TypeError (primStringAppend (primStringFromList (showInt a)) " is negative" )
106+ if isNegativeInt a then UnsatisfiedConstraint (primStringAppend (primStringFromList (showInt a)) " is negative" )
107107 else ⊤
108108
109109intToNat : (a : Int) → @0 ⦃ IsNonNegativeInt a ⦄ → Nat
Original file line number Diff line number Diff line change @@ -103,4 +103,4 @@ isNegativeInteger (negsuc _) = True
103103@0 IsNonNegativeInteger : Integer → Type
104104IsNonNegativeInteger (pos _) = ⊤
105105IsNonNegativeInteger n@(negsuc _) =
106- TypeError (primStringAppend (primShowInteger n) (" is negative" ))
106+ UnsatisfiedConstraint (primStringAppend (primShowInteger n) (" is negative" ))
You can’t perform that action at this time.
0 commit comments