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)
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