aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/PursLoader/Plugin.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/PursLoader/Plugin.md')
-rw-r--r--docs/PursLoader/Plugin.md20
1 files changed, 4 insertions, 16 deletions
diff --git a/docs/PursLoader/Plugin.md b/docs/PursLoader/Plugin.md
index 645c41b..9f9f852 100644
--- a/docs/PursLoader/Plugin.md
+++ b/docs/PursLoader/Plugin.md
@@ -1,27 +1,21 @@
1## Module PursLoader.Plugin 1## Module PursLoader.Plugin
2 2
3#### `Result`
4
5``` purescript
6type Result = { srcMap :: ImmutableMap String String, ffiMap :: ImmutableMap String String, graph :: DependencyGraph, output :: String }
7```
8
9#### `Compile` 3#### `Compile`
10 4
11``` purescript 5``` purescript
12type Compile eff = Nullable Error -> Result -> Eff eff Unit 6type Compile eff = Nullable Error -> DependencyGraph -> String -> Eff eff Unit
13``` 7```
14 8
15#### `Context` 9#### `Context`
16 10
17``` purescript 11``` purescript
18type Context eff = { compile :: Compile eff -> Eff eff Unit } 12type Context eff = { compile :: Compile eff -> Eff eff Unit, options :: Options }
19``` 13```
20 14
21#### `get` 15#### `Options`
22 16
23``` purescript 17``` purescript
24get :: forall key value. ImmutableMap key value -> key -> Maybe value 18type Options = { bundle :: Boolean, output :: String, bundleOutput :: String }
25``` 19```
26 20
27#### `dependenciesOf` 21#### `dependenciesOf`
@@ -30,12 +24,6 @@ get :: forall key value. ImmutableMap key value -> key -> Maybe value
30dependenciesOf :: DependencyGraph -> String -> Either Error (Array String) 24dependenciesOf :: DependencyGraph -> String -> Either Error (Array String)
31``` 25```
32 26
33#### `ImmutableMap`
34
35``` purescript
36data ImmutableMap :: * -> * -> *
37```
38
39#### `DependencyGraph` 27#### `DependencyGraph`
40 28
41``` purescript 29``` purescript