packages feed

stack-3.7.1: src/Stack/Types/StackYamlLoc.hs

{-# LANGUAGE NoImplicitPrelude #-}

{-|
Module      : Stack.Types.StackYamlLoc
License     : BSD-3-Clause
-}

module Stack.Types.StackYamlLoc
  ( StackYamlLoc (..)
  ) where

import           Stack.Prelude

-- | Location for the project's stack.yaml file.
data StackYamlLoc
  = SYLDefault
    -- ^ Use the standard parent-directory-checking logic
  | SYLOverride !(Path Abs File)
    -- ^ Use a specific stack.yaml file provided
  | SYLNoProject ![RawPackageLocationImmutable]
    -- ^ Do not load up a project, just user configuration. Include
    -- the given extra dependencies with the snapshot.
  | SYLGlobalProject
    -- ^ Do not look for a project configuration, and use the implicit global.
  deriving Show