Support ordering floats in numeric literal bounds

This commit is contained in:
Ayaz Hafiz 2022-07-04 12:20:39 -04:00 committed by ayazhafiz
parent 1905e1815d
commit 5a18490050
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED
5 changed files with 147 additions and 82 deletions

View file

@ -1,7 +1,7 @@
use crate::def::Def;
use crate::expr::{self, AnnotatedMark, ClosureData, Expr::*, IntValue};
use crate::expr::{Expr, Field, Recursive};
use crate::num::{FloatBound, IntBound, IntWidth, NumBound};
use crate::num::{FloatBound, IntBound, IntLitWidth, NumBound};
use crate::pattern::Pattern;
use roc_collections::all::SendMap;
use roc_module::called_via::CalledVia;
@ -1577,7 +1577,7 @@ fn str_to_num(symbol: Symbol, var_store: &mut VarStore) -> Def {
errorcode_var,
Variable::UNSIGNED8,
0,
IntBound::Exact(IntWidth::U8),
IntBound::Exact(IntLitWidth::U8),
),
),
],
@ -2175,7 +2175,7 @@ fn list_split(symbol: Symbol, var_store: &mut VarStore) -> Def {
index_var,
Variable::NATURAL,
0,
IntBound::Exact(IntWidth::Nat),
IntBound::Exact(IntLitWidth::Nat),
);
let clos = Closure(ClosureData {