Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data BIOSVerbosity
- data Cradle a = Cradle {}
- data ActionName a
- data Log
- data CradleAction a = CradleAction {
- actionName :: ActionName a
- runCradle :: LogAction IO (WithSeverity Log) -> FilePath -> IO (CradleLoadResult ComponentOptions)
- runGhcCmd :: LogAction IO (WithSeverity Log) -> [String] -> IO (CradleLoadResult String)
- data CradleLoadResult r
- cradleLoadResult :: c -> (CradleError -> c) -> (r -> c) -> CradleLoadResult r -> c
- newtype CradleLoadResultT m a = CradleLoadResultT {
- runCradleResultT :: m (CradleLoadResult a)
- modCradleError :: Monad m => CradleLoadResultT m a -> (CradleError -> m CradleError) -> CradleLoadResultT m a
- throwCE :: Monad m => CradleError -> CradleLoadResultT m a
- data CradleError = CradleError {}
- data ComponentOptions = ComponentOptions {}
Documentation
The environment of a single Cradle
.
A Cradle
is a unit for the respective build-system.
It contains the root directory of the Cradle
, the name of
the Cradle
(for debugging purposes), and knows how to set up
a GHC session that is able to compile files that are part of this Cradle
.
A Cradle
may be a single unit in the "cabal-install" context, or
the whole package, comparable to how "stack" works.
Cradle | |
|
data ActionName a Source #
Instances
Functor ActionName Source # | |
Defined in HIE.Bios.Types fmap :: (a -> b) -> ActionName a -> ActionName b # (<$) :: a -> ActionName b -> ActionName a # | |
Show a => Show (ActionName a) Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> ActionName a -> ShowS # show :: ActionName a -> String # showList :: [ActionName a] -> ShowS # | |
Eq a => Eq (ActionName a) Source # | |
Defined in HIE.Bios.Types (==) :: ActionName a -> ActionName a -> Bool # (/=) :: ActionName a -> ActionName a -> Bool # | |
Ord a => Ord (ActionName a) Source # | |
Defined in HIE.Bios.Types compare :: ActionName a -> ActionName a -> Ordering # (<) :: ActionName a -> ActionName a -> Bool # (<=) :: ActionName a -> ActionName a -> Bool # (>) :: ActionName a -> ActionName a -> Bool # (>=) :: ActionName a -> ActionName a -> Bool # max :: ActionName a -> ActionName a -> ActionName a # min :: ActionName a -> ActionName a -> ActionName a # |
data CradleAction a Source #
CradleAction | |
|
Instances
Functor CradleAction Source # | |
Defined in HIE.Bios.Types fmap :: (a -> b) -> CradleAction a -> CradleAction b # (<$) :: a -> CradleAction b -> CradleAction a # | |
Show a => Show (CradleAction a) Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> CradleAction a -> ShowS # show :: CradleAction a -> String # showList :: [CradleAction a] -> ShowS # |
data CradleLoadResult r Source #
Result of an attempt to set up a GHC session for a Cradle
.
This is the go-to error handling mechanism. When possible, this
should be preferred over throwing exceptions.
CradleSuccess r | The cradle succeeded and returned these options. |
CradleFail CradleError | We tried to load the cradle and it failed. |
CradleNone | No attempt was made to load the cradle. |
Instances
cradleLoadResult :: c -> (CradleError -> c) -> (r -> c) -> CradleLoadResult r -> c Source #
newtype CradleLoadResultT m a Source #
Instances
modCradleError :: Monad m => CradleLoadResultT m a -> (CradleError -> m CradleError) -> CradleLoadResultT m a Source #
throwCE :: Monad m => CradleError -> CradleLoadResultT m a Source #
data CradleError Source #
CradleError | |
|
Instances
Exception CradleError Source # | |
Defined in HIE.Bios.Types | |
Show CradleError Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> CradleError -> ShowS # show :: CradleError -> String # showList :: [CradleError] -> ShowS # | |
Eq CradleError Source # | |
Defined in HIE.Bios.Types (==) :: CradleError -> CradleError -> Bool # (/=) :: CradleError -> CradleError -> Bool # |
data ComponentOptions Source #
Option information for GHC
ComponentOptions | |
|
Instances
Show ComponentOptions Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> ComponentOptions -> ShowS # show :: ComponentOptions -> String # showList :: [ComponentOptions] -> ShowS # | |
Eq ComponentOptions Source # | |
Defined in HIE.Bios.Types (==) :: ComponentOptions -> ComponentOptions -> Bool # (/=) :: ComponentOptions -> ComponentOptions -> Bool # | |
Ord ComponentOptions Source # | |
Defined in HIE.Bios.Types compare :: ComponentOptions -> ComponentOptions -> Ordering # (<) :: ComponentOptions -> ComponentOptions -> Bool # (<=) :: ComponentOptions -> ComponentOptions -> Bool # (>) :: ComponentOptions -> ComponentOptions -> Bool # (>=) :: ComponentOptions -> ComponentOptions -> Bool # max :: ComponentOptions -> ComponentOptions -> ComponentOptions # min :: ComponentOptions -> ComponentOptions -> ComponentOptions # |