Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data BIOSVerbosity
- data Cradle a = Cradle {}
- type LoggingFunction = String -> IO ()
- data ActionName a
- data CradleAction a = CradleAction {
- actionName :: ActionName a
- runCradle :: LoggingFunction -> FilePath -> IO (CradleLoadResult ComponentOptions)
- runGhcCmd :: [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 | |
|
type LoggingFunction = String -> IO () Source #
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 # | |
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 # | |
Show a => Show (ActionName a) Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> ActionName a -> ShowS # show :: ActionName a -> String # showList :: [ActionName a] -> ShowS # |
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
Eq CradleError Source # | |
Defined in HIE.Bios.Types (==) :: CradleError -> CradleError -> Bool # (/=) :: CradleError -> CradleError -> Bool # | |
Show CradleError Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> CradleError -> ShowS # show :: CradleError -> String # showList :: [CradleError] -> ShowS # | |
Exception CradleError Source # | |
Defined in HIE.Bios.Types |
data ComponentOptions Source #
Option information for GHC
ComponentOptions | |
|
Instances
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 # | |
Show ComponentOptions Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> ComponentOptions -> ShowS # show :: ComponentOptions -> String # showList :: [ComponentOptions] -> ShowS # |