Switch fx mode based on platform main too

This commit is contained in:
Agus Zubiaga 2024-10-16 15:30:49 -03:00
parent 2c8571537e
commit b80f44738f
No known key found for this signature in database
4 changed files with 19 additions and 15 deletions

View file

@ -19,6 +19,7 @@ use crate::pattern::record_pattern_fields;
use crate::state::State;
use crate::string_literal::{self, parse_str_literal};
use crate::type_annotation;
use roc_module::ident::IdentSuffix;
use roc_module::symbol::ModuleId;
use roc_region::all::{Loc, Position, Region};
@ -1134,7 +1135,7 @@ impl<'a> ExposedName<'a> {
}
pub fn is_effectful_fn(&self) -> bool {
self.0.ends_with('!')
IdentSuffix::from_name(self.0).is_bang()
}
}