]> git.immae.eu Git - github/fretlink/purs-loader.git/blobdiff - src/PursLoader/Options.purs
Bumping version number to 0.6.0-beta.3
[github/fretlink/purs-loader.git] / src / PursLoader / Options.purs
index 132096c5d6ba73a5486ecc3706c46c49fac552b9..0c1453e10a608f540ca406072bdb1d38ad254bea 100644 (file)
@@ -1,5 +1,5 @@
 module PursLoader.Options
-  ( Options()
+  ( Options(..)
   , runOptions
   ) where
 
@@ -11,20 +11,20 @@ import Data.Maybe (maybe)
 
 import PursLoader.Path (joinPath)
 
-newtype Options = Options { pscBundle :: String }
+newtype Options = Options { bundleOutput :: String }
 
-type Options_ = { pscBundle :: String }
+type Options_ = { bundleOutput :: String }
 
 runOptions :: Options -> Options_
 runOptions (Options options) = options
 
 instance isForeignOptions :: IsForeign Options where
   read obj =
-    Options <$> ({ pscBundle: _ }
-            <$> (maybe pscBundleDefault id <<< runNullOrUndefined <$> readProp pscBundle obj))
+    Options <$> ({ bundleOutput: _ }
+            <$> (maybe bundleOutputDefault id <<< runNullOrUndefined <$> readProp bundleOutput obj))
     where
-    pscBundle :: String
-    pscBundle = "pscBundle"
+    bundleOutput :: String
+    bundleOutput = "bundleOutput"
 
-    pscBundleDefault :: String
-    pscBundleDefault = joinPath "output" "bundle.js"
+    bundleOutputDefault :: String
+    bundleOutputDefault = joinPath "output" "bundle.js"