aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PursLoader/Plugin.purs
diff options
context:
space:
mode:
Diffstat (limited to 'src/PursLoader/Plugin.purs')
-rw-r--r--src/PursLoader/Plugin.purs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/PursLoader/Plugin.purs b/src/PursLoader/Plugin.purs
index 23f8600..520c786 100644
--- a/src/PursLoader/Plugin.purs
+++ b/src/PursLoader/Plugin.purs
@@ -2,6 +2,7 @@ module PursLoader.Plugin
2 ( Result() 2 ( Result()
3 , Compile() 3 , Compile()
4 , Context() 4 , Context()
5 , Options()
5 , ImmutableMap() 6 , ImmutableMap()
6 , DependencyGraph() 7 , DependencyGraph()
7 , get 8 , get
@@ -22,7 +23,9 @@ type Result = { srcMap :: ImmutableMap String String, ffiMap :: ImmutableMap Str
22 23
23type Compile eff = Nullable Error -> Result -> Eff eff Unit 24type Compile eff = Nullable Error -> Result -> Eff eff Unit
24 25
25type Context eff = { compile :: Compile eff -> Eff eff Unit } 26type Context eff = { compile :: Compile eff -> Eff eff Unit, options :: Options }
27
28type Options = { bundle :: Boolean, output :: String, bundleOutput :: String }
26 29
27get :: forall key value. ImmutableMap key value -> key -> Maybe value 30get :: forall key value. ImmutableMap key value -> key -> Maybe value
28get = runFn4 getFn Nothing Just 31get = runFn4 getFn Nothing Just