summaryrefslogtreecommitdiff
path: root/dhall/src/phase/parse.rs
diff options
context:
space:
mode:
authorNadrieril2019-05-09 23:18:55 +0200
committerNadrieril2019-05-09 23:23:49 +0200
commit33c1aa4bd1d5b83361eb52d00beb8d8c762225cd (patch)
tree1219c3305d9b113b10308bb30dc257acc06bc105 /dhall/src/phase/parse.rs
parent7ac061b5ddf15ffe3fc4f36b64138b7431429758 (diff)
Make visibilities more consistent
Diffstat (limited to 'dhall/src/phase/parse.rs')
-rw-r--r--dhall/src/phase/parse.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhall/src/phase/parse.rs b/dhall/src/phase/parse.rs
index d5cb9f5..765fc09 100644
--- a/dhall/src/phase/parse.rs
+++ b/dhall/src/phase/parse.rs
@@ -8,7 +8,7 @@ use crate::error::Error;
use crate::phase::resolve::ImportRoot;
use crate::phase::Parsed;
-pub(crate) fn parse_file(f: &Path) -> Result<Parsed, Error> {
+pub fn parse_file(f: &Path) -> Result<Parsed, Error> {
let mut buffer = String::new();
File::open(f)?.read_to_string(&mut buffer)?;
let expr = parse_expr(&*buffer)?;
@@ -16,13 +16,13 @@ pub(crate) fn parse_file(f: &Path) -> Result<Parsed, Error> {
Ok(Parsed(expr, root))
}
-pub(crate) fn parse_str(s: &str) -> Result<Parsed, Error> {
+pub fn parse_str(s: &str) -> Result<Parsed, Error> {
let expr = parse_expr(s)?;
let root = ImportRoot::LocalDir(std::env::current_dir()?);
Ok(Parsed(expr, root))
}
-pub(crate) fn parse_binary_file(f: &Path) -> Result<Parsed, Error> {
+pub fn parse_binary_file(f: &Path) -> Result<Parsed, Error> {
let mut buffer = Vec::new();
File::open(f)?.read_to_end(&mut buffer)?;
let expr = crate::phase::binary::decode(&buffer)?;