on master help sign in
Fix obelisk-executable-config-lookup on iOS
commit86126fb872d1dd7ee73bb07a6c56222e159bd49f authorRyan Trinkle <ryan.trinkle@gmail.com> dateSat 25 May 2019, 16:29 (7 years ago) parentc4e22c9
1 file changed+2−1
lib/executable-config/lookup/src-ios/Obelisk/ExecutableConfig/Lookup.hs+2−1
lib/executable-config/lookup/src-ios/Obelisk/ExecutableConfig/Lookup.hs+2−1
@@ -6,10 +6,11 @@ import Data.Text (Text)
66import qualified Data.Text as T
77import qualified Data.Text.Encoding as T
88import Language.Javascript.JSaddle.WKWebView
9+import System.FilePath.Posix
910
1011import Obelisk.ExecutableConfig.Internal.ConfigDirectory
1112
1213getConfigs :: IO (Map Text Text)
1314getConfigs = mainBundleResourcePath >>= \case
1415 Nothing -> error "Could not get bundle resource path."
15− Just p -> getConfigsFromDirectory (T.unpack (T.decodeUtf8 p)) "config"
16+ Just p -> getConfigsFromDirectory $ T.unpack (T.decodeUtf8 p) </> "config"