ghc-mod-5.6.0.0: Happy Haskell Programming

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhcMod.CabalHelper

Synopsis

- getComponents :: (Applicative m, IOish m, Gm m) => m [GmComponent GMCRaw ChEntrypoint]
- getGhcMergedPkgOptions :: (Applicative m, IOish m, Gm m) => m [GHCOption]
- getCabalPackageDbStack :: (IOish m, Gm m) => m [GhcPkgDb]
- prepareCabalHelper :: (IOish m, GmEnv m, GmOut m, GmLog m) => m ()
- withAutogen :: (IOish m, GmEnv m, GmOut m, GmLog m) => m a -> m a

# Documentation

getComponents :: (Applicative m, IOish m, Gm m) => m [GmComponent GMCRaw ChEntrypoint] #

Primary interface to cabal-helper and intended single entrypoint to constructing `GmComponent`s

The Component's `gmcHomeModuleGraph` will be empty and has to be resolved by `resolveGmComponents`.

getGhcMergedPkgOptions :: (Applicative m, IOish m, Gm m) => m [GHCOption] #

Only package related GHC options, sufficient for things that don't need to access home modules

getCabalPackageDbStack :: (IOish m, Gm m) => m [GhcPkgDb] #

prepareCabalHelper :: (IOish m, GmEnv m, GmOut m, GmLog m) => m () #

withAutogen :: (IOish m, GmEnv m, GmOut m, GmLog m) => m a -> m a #