module B9 (configure, b9_version, module X) where
import Control.Applicative as X
import Control.Monad as X
import Control.Monad.IO.Class as X
import Data.Monoid as X
import Data.List as X
import Data.Maybe as X
import Text.Show.Pretty as X (ppShow)
import System.Exit as X (exitWith, ExitCode(..))
import System.FilePath as X
(takeDirectory, takeFileName, replaceExtension, (</>), (<.>))
import Text.Printf as X (printf)
import Data.Version as X
import B9.Builder as X
import Control.Applicative
import Control.Monad
import Control.Monad.IO.Class
import Data.Monoid
import Data.List
import Data.Maybe
import Text.Show.Pretty (ppShow)
import System.Exit ( exitWith
, ExitCode (..) )
import System.FilePath ( takeDirectory
, takeFileName
, replaceExtension
, (</>)
, (<.>) )
import Text.Printf ( printf )
import Paths_b9 (version)
import Data.Version
import B9.Builder
import qualified B9.LibVirtLXC as LibVirtLXC
configure :: MonadIO m => Maybe SystemPath -> B9Config -> m ConfigParser
configure b9ConfigPath existingConfig = do
writeInitialB9Config b9ConfigPath existingConfig LibVirtLXC.setDefaultConfig
readB9Config b9ConfigPath
b9_version :: Version
b9_version = version