haskell-tools-daemon-0.8.0.0: Background process for Haskell-tools refactor that editors can connect to.

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Refactor.Daemon.PackageDB

Synopsis

Documentation

data PackageDB Source #

Instances

Show PackageDB Source # 
Generic PackageDB Source # 

Associated Types

type Rep PackageDB :: * -> * #

FromJSON PackageDB Source # 
type Rep PackageDB Source # 
type Rep PackageDB = D1 (MetaData "PackageDB" "Language.Haskell.Tools.Refactor.Daemon.PackageDB" "haskell-tools-daemon-0.8.0.0-FgZR5jIznyRC1yrUZLUtRi" False) ((:+:) ((:+:) (C1 (MetaCons "AutoDB" PrefixI False) U1) (C1 (MetaCons "DefaultDB" PrefixI False) U1)) ((:+:) (C1 (MetaCons "CabalSandboxDB" PrefixI False) U1) ((:+:) (C1 (MetaCons "StackDB" PrefixI False) U1) (C1 (MetaCons "ExplicitDB" PrefixI True) (S1 (MetaSel (Just Symbol "packageDBPath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath))))))

detectAutogen :: FilePath -> PackageDB -> IO (Maybe FilePath) Source #

Gets the (probable) location of autogen folder depending on which type of build we are using.

choose :: Alternative f => [f a] -> f a Source #