detectYxConfig :: ProjectRoot -> IO (Maybe FilePath)
detectYxConfig root =
    detect . List.map doesConfigExist $ NonEmpty.toList yxConfigs
  where
    doesConfigExist cfg = doesFileExist (root </> cfg) ~~> cfg

-- }}} Project Configuration File ---------------------------------------------

-- {{{ Tooling Detection ------------------------------------------------------
detectYxConfig :: ProjectRoot -> IO (Maybe FilePath)
detectYxConfig root =
    detect . List.map doesConfigExist $ NonEmpty.toList yxConfigs
  where
    doesConfigExist cfg = doesFileExist (root </> cfg) ~~> cfg

-- }}} Project Configuration File ---------------------------------------------

-- {{{ Tooling Detection ------------------------------------------------------
detectYxConfig root =
    detect . List.map doesConfigExist $ NonEmpty.toList yxConfigs
  where
    doesConfigExist cfg = doesFileExist (root </> cfg) ~~> cfg

-- }}} Project Configuration File ---------------------------------------------

-- {{{ Tooling Detection ------------------------------------------------------