Skip to content

Commit d567a63

Browse files
committed
Rename TypeError -> UnsatisfiedConstraint
1 parent 57c6cc6 commit d567a63

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/base/Haskell/Prelude.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

lib/base/Haskell/Prim.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ data IsFalse : Bool → Type where
124124
data 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

129129
it : {@0 ℓ} {@0 a : Type ℓ} ⦃ a ⦄ a
130130
it ⦃ x ⦄ = x

lib/base/Haskell/Prim/Int.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ showInt a = showInteger (intToInteger a)
103103

104104
@0 IsNonNegativeInt : Int Type
105105
IsNonNegativeInt 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

109109
intToNat : (a : Int) @0 ⦃ IsNonNegativeInt a ⦄ Nat

lib/base/Haskell/Prim/Integer.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ isNegativeInteger (negsuc _) = True
103103
@0 IsNonNegativeInteger : Integer Type
104104
IsNonNegativeInteger (pos _) =
105105
IsNonNegativeInteger n@(negsuc _) =
106-
TypeError (primStringAppend (primShowInteger n) (" is negative"))
106+
UnsatisfiedConstraint (primStringAppend (primShowInteger n) (" is negative"))

0 commit comments

Comments
 (0)