{-# LANGUAGE CPP #-}
module Graphics.Vty.CrossPlatform.Testing
( mkDefaultOutput
)
where
import Graphics.Vty (Output)
import Graphics.Vty.Config (defaultConfig)
#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
import Graphics.Vty.Platform.Windows.Output (buildOutput)
import Graphics.Vty.Platform.Windows.Settings (defaultSettings)
#else
import Graphics.Vty.Platform.Unix.Output (buildOutput)
import Graphics.Vty.Platform.Unix.Settings (defaultSettings)
#endif
mkDefaultOutput :: IO Output
mkDefaultOutput :: IO Output
mkDefaultOutput = IO UnixSettings
defaultSettings forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= VtyUserConfig -> UnixSettings -> IO Output
buildOutput VtyUserConfig
defaultConfig