X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FPursLoader%2FOptions.purs;h=0c1453e10a608f540ca406072bdb1d38ad254bea;hb=17f22f868b851e50081844562627a7a8a414dcaa;hp=132096c5d6ba73a5486ecc3706c46c49fac552b9;hpb=63d6a244462d050e119bde54a7063bae8a17e987;p=github%2Ffretlink%2Fpurs-loader.git diff --git a/src/PursLoader/Options.purs b/src/PursLoader/Options.purs index 132096c..0c1453e 100644 --- a/src/PursLoader/Options.purs +++ b/src/PursLoader/Options.purs @@ -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"