stack-1.4.0: The Haskell Tool Stack

Safe Haskell | None
Language | Haskell2010

Stack.Setup.Installed

Synopsis

- getCompilerVersion :: (MonadLogger m, MonadCatch m, MonadBaseControl IO m, MonadIO m) => EnvOverride -> WhichCompiler -> m CompilerVersion
- markInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> Tool -> m ()
- unmarkInstalled :: (MonadIO m, MonadCatch m) => Path Abs Dir -> Tool -> m ()
- listInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> m [Tool]
- data Tool
  - = Tool PackageIdentifier
  - | ToolGhcjs CompilerVersion
- toolString :: Tool -> String
- toolNameString :: Tool -> String
- parseToolText :: Text -> Maybe Tool
- data ExtraDirs = ExtraDirs {
  - edBins :: ![Path Abs Dir]
  - edInclude :: ![Path Abs Dir]
  - edLib :: ![Path Abs Dir]
  }
- extraDirs :: (StackM env m, HasConfig env) => Tool -> m ExtraDirs
- installDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir)
- tempInstallDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir)

# Documentation

getCompilerVersion :: (MonadLogger m, MonadCatch m, MonadBaseControl IO m, MonadIO m) => EnvOverride -> WhichCompiler -> m CompilerVersion #

markInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> Tool -> m () #

unmarkInstalled :: (MonadIO m, MonadCatch m) => Path Abs Dir -> Tool -> m () #

listInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> m [Tool] #

data Tool #

Constructors

Tool PackageIdentifier | e.g. ghc-7.8.4, msys2-20150512
ToolGhcjs CompilerVersion | e.g. ghcjs-0.1.0_ghc-7.10.2

toolString :: Tool -> String #

toolNameString :: Tool -> String #

parseToolText :: Text -> Maybe Tool #

data ExtraDirs #

Constructors

ExtraDirs |
Fields edBins :: ![Path Abs Dir] edInclude :: ![Path Abs Dir] edLib :: ![Path Abs Dir]

Instances

Show ExtraDirs # |
Methods showsPrec :: Int -> ExtraDirs -> ShowS # show :: ExtraDirs -> String # showList :: [ExtraDirs] -> ShowS #
Generic ExtraDirs # |
Associated Types type Rep ExtraDirs :: * -> * # Methods from :: ExtraDirs -> Rep ExtraDirs x # to :: Rep ExtraDirs x -> ExtraDirs #
Monoid ExtraDirs # |
Methods mempty :: ExtraDirs # mappend :: ExtraDirs -> ExtraDirs -> ExtraDirs # mconcat :: [ExtraDirs] -> ExtraDirs #
type Rep ExtraDirs # |
type Rep ExtraDirs = D1 (MetaData "ExtraDirs" "Stack.Setup.Installed" "stack-1.4.0-5VbagGyw9hyAgBJq8WQvrq" False) (C1 (MetaCons "ExtraDirs" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "edBins") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Path Abs Dir])) ((:*:) (S1 (MetaSel (Just Symbol "edInclude") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Path Abs Dir])) (S1 (MetaSel (Just Symbol "edLib") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Path Abs Dir])))))

extraDirs :: (StackM env m, HasConfig env) => Tool -> m ExtraDirs #

Binary directories for the given installed package

installDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir) #

tempInstallDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir) #