Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data BIOSVerbosity
- data CradleOpts = CradleOpts {}
- defaultCradleOpts :: CradleOpts
- data Cradle = Cradle {}
- type LoggingFunction = String -> IO ()
- data CradleAction = CradleAction {}
- data CradleLoadResult r
- data CradleError = CradleError ExitCode [String]
- data ComponentOptions = ComponentOptions {}
Documentation
data CradleOpts Source #
CradleOpts | |
|
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 CradleAction Source #
CradleAction | |
|
Instances
Show CradleAction Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> CradleAction -> ShowS # show :: CradleAction -> String # showList :: [CradleAction] -> 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
Functor CradleLoadResult Source # | |
Defined in HIE.Bios.Types fmap :: (a -> b) -> CradleLoadResult a -> CradleLoadResult b # (<$) :: a -> CradleLoadResult b -> CradleLoadResult a # |
data CradleError Source #
Instances
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 # | |
Show ComponentOptions Source # | |
Defined in HIE.Bios.Types showsPrec :: Int -> ComponentOptions -> ShowS # show :: ComponentOptions -> String # showList :: [ComponentOptions] -> ShowS # |