mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-20 10:39:48 +00:00
Switch fx mode based on platform main too
This commit is contained in:
parent
2c8571537e
commit
b80f44738f
4 changed files with 19 additions and 15 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue