Copyright | (c) Sebastian Witte |
---|---|
License | Apache-2.0 |
Maintainer | [email protected] |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Neovim.BuildTool
Description
Synopsis
- data BuildTool
- data CabalType
- newtype Directory = Directory {}
- partialM :: Monad m => (a -> m Bool) -> a -> m (Maybe a)
- mkDirectory :: MonadIO io => FilePath -> io (Maybe Directory)
- newtype File = File {}
- mkFile :: MonadIO io => Maybe Directory -> FilePath -> io (Maybe File)
- thisAndParentDirectories :: Directory -> [Directory]
- determineProjectSettings :: MonadIO io => [Directory -> io (Maybe BuildTool)] -> [Directory] -> io (Maybe (BuildTool, Directory))
- defaultProjectIdentifiers :: MonadIO io => [Directory -> io (Maybe BuildTool)]
- guessProjectSettings :: MonadIO io => [Directory] -> io (Maybe (BuildTool, Directory))
- maybeStack :: MonadIO io => Directory -> io (Maybe BuildTool)
- maybeCabalSandbox :: MonadIO io => Directory -> io (Maybe BuildTool)
- maybeCabal :: MonadIO io => Directory -> io (Maybe BuildTool)
Documentation
Instances
Instances
FromJSON CabalType Source # | |||||
Defined in Neovim.BuildTool | |||||
ToJSON CabalType Source # | |||||
Enum CabalType Source # | |||||
Defined in Neovim.BuildTool Methods succ :: CabalType -> CabalType # pred :: CabalType -> CabalType # fromEnum :: CabalType -> Int # enumFrom :: CabalType -> [CabalType] # enumFromThen :: CabalType -> CabalType -> [CabalType] # enumFromTo :: CabalType -> CabalType -> [CabalType] # enumFromThenTo :: CabalType -> CabalType -> CabalType -> [CabalType] # | |||||
Generic CabalType Source # | |||||
Defined in Neovim.BuildTool Associated Types
| |||||
Read CabalType Source # | |||||
Show CabalType Source # | |||||
Eq CabalType Source # | |||||
Ord CabalType Source # | |||||
type Rep CabalType Source # | |||||
Defined in Neovim.BuildTool type Rep CabalType = D1 ('MetaData "CabalType" "Neovim.BuildTool" "nvim-hs-contrib-2.0.0.2-8egR1MMWYvyE9ef8rpmQN7" 'False) (C1 ('MetaCons "Plain" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Sandbox" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NewBuild" 'PrefixI 'False) (U1 :: Type -> Type))) |
Constructors
Directory | |
Fields |
Instances
Show Directory Source # | |
Eq Directory Source # | |
Ord Directory Source # | |
thisAndParentDirectories :: Directory -> [Directory] Source #
Calculate the list of all parent directories for the given directory. This function also returns the initially specified directory.
determineProjectSettings :: MonadIO io => [Directory -> io (Maybe BuildTool)] -> [Directory] -> io (Maybe (BuildTool, Directory)) Source #
Given a list of build tool identifier functions, apply these to all the
given directories and return the value of the first function that returns a
BuildTool
value or Nothing
if no function ever returns a BuildTool
.
The identifier functions and directories are tried in the order as supplied
to this function.
defaultProjectIdentifiers :: MonadIO io => [Directory -> io (Maybe BuildTool)] Source #
This list contains some build tool identifier functions for usual setups.
guessProjectSettings :: MonadIO io => [Directory] -> io (Maybe (BuildTool, Directory)) Source #
Same as determineProjectSettings
defaultProjetIdentifiers
.