From 87145c4d29e9ab45d04c62d19e8697527728549f Mon Sep 17 00:00:00 2001 From: eric thul Date: Tue, 8 Mar 2016 21:58:55 -0500 Subject: Handle optional bundling by the compiler Resolves ethul/purescript-webpack-plugin#9 --- docs/PursLoader/Plugin.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/PursLoader/Plugin.md b/docs/PursLoader/Plugin.md index 9abec4d..26e3f26 100644 --- a/docs/PursLoader/Plugin.md +++ b/docs/PursLoader/Plugin.md @@ -15,7 +15,13 @@ type Compile eff = Nullable Error -> Result -> Eff eff Unit #### `Context` ``` purescript -type Context eff = { compile :: Compile eff -> Eff eff Unit } +type Context eff = { compile :: Compile eff -> Eff eff Unit, options :: Options } +``` + +#### `Options` + +``` purescript +type Options = { bundle :: Boolean, output :: String, bundleOutput :: String } ``` #### `get` -- cgit v1.2.3 From 845f3ec3c5b13a47d60b9ff2be14bf41fb5c4734 Mon Sep 17 00:00:00 2001 From: eric thul Date: Sat, 12 Mar 2016 14:33:55 -0500 Subject: Handling dependencies --- docs/PursLoader/LoaderRef.md | 6 ------ docs/PursLoader/Plugin.md | 20 +------------------- 2 files changed, 1 insertion(+), 25 deletions(-) (limited to 'docs') diff --git a/docs/PursLoader/LoaderRef.md b/docs/PursLoader/LoaderRef.md index 60341f7..917db3a 100644 --- a/docs/PursLoader/LoaderRef.md +++ b/docs/PursLoader/LoaderRef.md @@ -30,12 +30,6 @@ async :: forall eff. LoaderRef -> Eff (loader :: Loader | eff) (Maybe Error -> S cacheable :: forall eff. LoaderRef -> Eff (loader :: Loader | eff) Unit ``` -#### `query` - -``` purescript -query :: LoaderRef -> String -``` - #### `clearDependencies` ``` purescript diff --git a/docs/PursLoader/Plugin.md b/docs/PursLoader/Plugin.md index 26e3f26..7a524da 100644 --- a/docs/PursLoader/Plugin.md +++ b/docs/PursLoader/Plugin.md @@ -1,15 +1,9 @@ ## Module PursLoader.Plugin -#### `Result` - -``` purescript -type Result = { srcMap :: ImmutableMap String String, ffiMap :: ImmutableMap String String, graph :: DependencyGraph } -``` - #### `Compile` ``` purescript -type Compile eff = Nullable Error -> Result -> Eff eff Unit +type Compile eff = Nullable Error -> DependencyGraph -> Eff eff Unit ``` #### `Context` @@ -24,24 +18,12 @@ type Context eff = { compile :: Compile eff -> Eff eff Unit, options :: Options type Options = { bundle :: Boolean, output :: String, bundleOutput :: String } ``` -#### `get` - -``` purescript -get :: forall key value. ImmutableMap key value -> key -> Maybe value -``` - #### `dependenciesOf` ``` purescript dependenciesOf :: DependencyGraph -> String -> Either Error (Array String) ``` -#### `ImmutableMap` - -``` purescript -data ImmutableMap :: * -> * -> * -``` - #### `DependencyGraph` ``` purescript -- cgit v1.2.3