From 17f22f868b851e50081844562627a7a8a414dcaa Mon Sep 17 00:00:00 2001 From: eric thul Date: Mon, 29 Feb 2016 19:57:39 -0500 Subject: Bumping version number to 0.6.0-beta.3 --- src/PursLoader/Loader.purs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/PursLoader/Loader.purs b/src/PursLoader/Loader.purs index 49c5f24..d1068b6 100644 --- a/src/PursLoader/Loader.purs +++ b/src/PursLoader/Loader.purs @@ -7,6 +7,7 @@ module PursLoader.Loader import Prelude (Unit(), ($), (>>=), (<$>), (<*>), (++), bind, const, id, pure, unit) import Control.Apply ((*>)) +import Control.Alt ((<|>)) import Control.Bind (join) import Control.Monad.Eff (Eff(), foreachE) import Control.Monad.Eff.Exception (Error(), error) @@ -63,7 +64,7 @@ loader ref source = do addDependency ref (resourcePath ref) - either (\err -> callback (Just err) "") id + either (\err -> callback (toMaybe error' <|> Just err) "") id (handle <$> name <*> dependencies <*> exports) where handle :: String -> Array String -> String -> Eff (Effects eff) Unit -- cgit v1.2.3