diff --git a/dust-lang/src/abstract_tree/built_in_function.rs b/dust-lang/src/abstract_tree/built_in_function.rs
index 49ef105..4616c41 100644
--- a/dust-lang/src/abstract_tree/built_in_function.rs
+++ b/dust-lang/src/abstract_tree/built_in_function.rs
@@ -1,4 +1,4 @@
-use std::{fs::read_to_string, io::stdin};
+use std::{fs::read_to_string, io::stdin, thread::sleep, time::Duration};
use serde::{Deserialize, Serialize};
use serde_json::from_str;
@@ -11,7 +11,7 @@ use crate::{
Value,
};
-use super::{AbstractNode, Evaluation, Expression, Type, TypeConstructor};
+use super::Type;
#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Serialize, Deserialize)]
pub enum BuiltInFunction {
@@ -98,13 +98,29 @@ impl FunctionLogic for ReadFile {
fn r#type() -> Type {
Type::Function {
type_parameters: None,
- value_parameters: None,
+ value_parameters: Some(vec![(Identifier::new("path"), Type::String)]),
return_type: Some(Box::new(Type::String)),
}
}
fn call(context: &Context, manage_memory: bool) -> Result