{
"name": "purs-loader",
- "version": "0.6.0-beta.2",
+ "version": "0.6.0-beta.3",
"description": "PureScript loader for webpack",
"license": "MIT",
"repository": "ethul/purs-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)
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