core: Store reexporting result and either. Closes #1997

This commit is contained in:
Brian Anderson 2012-03-16 15:14:37 -07:00
parent ddbd02aaf2
commit 47d468f08c
15 changed files with 20 additions and 6 deletions

View File

@ -24,8 +24,7 @@ io::println(comm::recv(p));
~~~
"];
import sys;
import task;
import either::either;
export send;
export recv;

View File

@ -4,8 +4,6 @@
import option::{some, none};
import option = option::option;
import either = either::either;
import result = result::result;
import path = path::path;
import vec::vec_len;
export path, option, some, none, vec_len, unreachable;

View File

@ -1,5 +1,7 @@
#[doc = "A type that represents one of two alternatives"];
import result::result;
#[doc = "The either type"]
enum either<T, U> {
left(T),

View File

@ -11,6 +11,8 @@ io::println(#fmt(\"fib(5000) = %?\", delayed_fib.get()))
~~~
"];
import either::either;
export future;
export future::{};
export from_value;

View File

@ -4,6 +4,8 @@ Module: io
Basic input/output
*/
import result::result;
import libc::{c_int, c_uint, c_void, size_t, ssize_t};
import libc::consts::os::posix88::*;
import libc::consts::os::extra::*;

View File

@ -1,5 +1,7 @@
#[doc = "A type representing either success or failure"];
import either::either;
#[doc = "The result type"]
enum result<T, U> {
#[doc = "Contains the successful result value"]

View File

@ -22,6 +22,8 @@ spawn {||
~~~
"];
import result::result;
export task;
export task_result;
export notification;

View File

@ -3,7 +3,7 @@
#[doc = "json serialization"];
import result::{ok, err};
import result::{result, ok, err};
import io;
import io::{reader_util, writer_util};
import map;

View File

@ -5,6 +5,7 @@
// simplest interface possible for representing and running tests
// while providing a base that other test frameworks may build off of.
import either::either;
import result::{ok, err};
import io::writer_util;

View File

@ -2,6 +2,7 @@
import std::map;
import std::map::hashmap;
import either::either;
import syntax::{ast, ast_util};
import driver::session::session;

View File

@ -1,4 +1,5 @@
import std::{ufind, map, smallintmap};
import result::result;
import std::map::hashmap;
import driver::session;
import session::session;

View File

@ -1,3 +1,4 @@
import result::result;
import syntax::{ast, ast_util};
import ast::spanned;
import syntax::ast_util::{local_def, respan};

View File

@ -1,4 +1,5 @@
import either::{left, right};
import result::result;
import either::{either, left, right};
import std::map::{hashmap, str_hash};
import token::can_begin_expr;
import codemap::{span,fss_none};

View File

@ -2,6 +2,7 @@
// FIXME: I'm not happy how this module turned out. Should probably
// just be folded into cstore.
import result::result;
export filesearch;
export mk_filesearch;
export pick;

View File

@ -1,3 +1,4 @@
import result::result;
import std::getopts;
export output_format;