Removes GHCup.Types.Prompts module and stuffs it into GHCup.Types
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
|
||||
module GHCup.Prompts
|
||||
( module GHCup.Types.Prompts,
|
||||
( PromptQuestion,
|
||||
PromptResponse (..),
|
||||
getUserPromptResponse,
|
||||
)
|
||||
where
|
||||
@@ -11,7 +12,6 @@ import Control.Monad.Reader
|
||||
import qualified Data.Text.IO as TIO
|
||||
import GHCup.Prelude.Logger
|
||||
import GHCup.Types.Optics
|
||||
import GHCup.Types.Prompts
|
||||
|
||||
putPrompt :: (HasLog env, MonadReader env m, MonadIO m)
|
||||
=> PromptQuestion
|
||||
|
||||
@@ -654,10 +654,7 @@ isSafeDir (IsolateDirResolved _) = False
|
||||
isSafeDir (GHCupDir _) = True
|
||||
isSafeDir (GHCupBinDir _) = False
|
||||
|
||||
type PromptQuestion = Text
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
data PromptResponse = PromptYes | PromptNo
|
||||
deriving (Show, Eq)
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
module GHCup.Types.Prompts where
|
||||
|
||||
import Data.Text (Text)
|
||||
|
||||
type PromptQuestion = Text
|
||||
|
||||
data PromptResponse = PromptYes | PromptNo
|
||||
deriving (Show, Eq)
|
||||
Reference in New Issue
Block a user