From 2b620717603a6a2ba4d93ee1ca7334dc31500acf Mon Sep 17 00:00:00 2001 From: Nathan Faubion Date: Mon, 2 Nov 2015 14:04:58 -0600 Subject: Remove `require-path`, use relative paths for PS Fixes #15 Removes the `require-path` option and fixes it to '../'. When generating the temporary module for Webpack, use a relative path to the output directory so it doesn't need to be in `modulesDirectories`. --- docs/PursLoader/Loader.md | 2 +- docs/PursLoader/Options.md | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/PursLoader/Loader.md b/docs/PursLoader/Loader.md index 8e91c4a..f81c486 100644 --- a/docs/PursLoader/Loader.md +++ b/docs/PursLoader/Loader.md @@ -3,7 +3,7 @@ #### `Effects` ``` purescript -type Effects eff = (cp :: ChildProcess, fs :: FS, glob :: Glob, loader :: Loader | eff) +type Effects eff = (cp :: ChildProcess, fs :: FS, glob :: Glob, loader :: Loader, err :: EXCEPTION | eff) ``` #### `loader` diff --git a/docs/PursLoader/Options.md b/docs/PursLoader/Options.md index d04b721..4202475 100644 --- a/docs/PursLoader/Options.md +++ b/docs/PursLoader/Options.md @@ -1,9 +1,26 @@ ## Module PursLoader.Options +#### `Options` + +``` purescript +newtype Options +``` + +##### Instances +``` purescript +instance isForeignOptions :: IsForeign Options +``` + +#### `output` + +``` purescript +output :: Options -> String +``` + #### `pscOptions` ``` purescript -pscOptions :: Foreign -> Array String +pscOptions :: Options -> Array String ``` #### `loaderSrcOption` -- cgit v1.2.3