mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Detect fx mode based on hosted module
This commit is contained in:
parent
fd3fb16f7a
commit
01c94050c8
9 changed files with 54 additions and 10 deletions
|
@ -1132,6 +1132,10 @@ impl<'a> ExposedName<'a> {
|
|||
pub fn as_str(&'a self) -> &'a str {
|
||||
self.0
|
||||
}
|
||||
|
||||
pub fn is_effectful_fn(&self) -> bool {
|
||||
self.0.ends_with('!')
|
||||
}
|
||||
}
|
||||
|
||||
pub trait Keyword: Copy + Clone + Debug {
|
||||
|
@ -1255,7 +1259,7 @@ pub struct PlatformHeader<'a> {
|
|||
|
||||
#[derive(Copy, Clone, Debug, PartialEq)]
|
||||
pub enum ImportsEntry<'a> {
|
||||
/// e.g. `Hello` or `Hello exposing [hello]` see roc-lang.org/examples/MultipleRocFiles/README.html
|
||||
/// e.g. `Hello` or `Hello exposing [hello]` see roc-lang.org/examples/MultipleRocFiles/README.html
|
||||
Module(
|
||||
ModuleName<'a>,
|
||||
Collection<'a, Loc<Spaced<'a, ExposedName<'a>>>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue