1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-29 21:32:43 +03:00

change order of Bool constructors

This commit is contained in:
Jan Mas Rovira 2024-11-22 11:05:24 +01:00
parent 379c2ec11f
commit 3285b4cb69
2 changed files with 3 additions and 3 deletions

View File

@ -3,5 +3,5 @@ module Juvix.Builtin.V1.Bool;
--- Inductive definition of booleans.
builtin bool
type Bool :=
| true
| false;
| false
| true;

View File

@ -50,7 +50,7 @@ instance Pretty BuiltinPrim where
builtinConstructors :: BuiltinInductive -> [BuiltinConstructor]
builtinConstructors = \case
BuiltinNat -> [BuiltinNatZero, BuiltinNatSuc]
BuiltinBool -> [BuiltinBoolTrue, BuiltinBoolFalse]
BuiltinBool -> [BuiltinBoolFalse, BuiltinBoolTrue]
BuiltinInt -> [BuiltinIntOfNat, BuiltinIntNegSuc]
BuiltinList -> [BuiltinListNil, BuiltinListCons]
BuiltinMaybe -> [BuiltinMaybeNothing, BuiltinMaybeJust]