@@ -139,8 +139,8 @@ instance Monoid Config where
139 , vtime = vtime c1 <|> vtime c0
139 , vtime = vtime c1 <|> vtime c0
140 , debugLog = debugLog c1 <|> debugLog c0
140 , debugLog = debugLog c1 <|> debugLog c0
141 , inputMap = inputMap c0 <> inputMap c1
141 , inputMap = inputMap c0 <> inputMap c1
142− , inputFd = inputFd c1 <|> inputFd c1
142+ , inputFd = inputFd c1 <|> inputFd c0
143− , outputFd = outputFd c1 <|> outputFd c1
143+ , outputFd = outputFd c1 <|> outputFd c0
144 , termName = termName c1 <|> termName c0
144 , termName = termName c1 <|> termName c0
@@ -151,8 +151,8 @@ userConfig :: IO Config
151userConfig = do
151userConfig = do
152 configFile <- (mappend <$> getAppUserDataDirectory "vty" <*> pure "/config") >>= parseConfigFile
152 configFile <- (mappend <$> getAppUserDataDirectory "vty" <*> pure "/config") >>= parseConfigFile
153 overrideConfig <- maybe (return def) parseConfigFile =<< getEnv "VTY_CONFIG_FILE"
153 overrideConfig <- maybe (return def) parseConfigFile =<< getEnv "VTY_CONFIG_FILE"
154− base <- (<> configFile <> overrideConfig) <$> standardIOConfig
154+ let base = configFile <> overrideConfig
155− (mappend base) <$> overrideEnvConfig
155+ mappend base <$> overrideEnvConfig
157overrideEnvConfig :: IO Config
157overrideEnvConfig :: IO Config
158overrideEnvConfig = do
158overrideEnvConfig = do