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/PursLoader') 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