Removes GHCup.Types.Prompts module and stuffs it into GHCup.Types

This commit is contained in:
Arjun Kathuria
2022-07-10 09:44:23 +05:30
parent 9ceb66ef21
commit 0acccae523
4 changed files with 5 additions and 17 deletions

View File

@@ -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

View File

@@ -654,10 +654,7 @@ isSafeDir (IsolateDirResolved _) = False
isSafeDir (GHCupDir _) = True
isSafeDir (GHCupBinDir _) = False
type PromptQuestion = Text
data PromptResponse = PromptYes | PromptNo
deriving (Show, Eq)

View File

@@ -1,8 +0,0 @@
module GHCup.Types.Prompts where
import Data.Text (Text)
type PromptQuestion = Text
data PromptResponse = PromptYes | PromptNo
deriving (Show, Eq)