| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
HIE.Bios.Types
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 BIOSVerbosity Source #
data CradleOpts Source #
Constructors
| CradleOpts | |
Fields
| |
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.
Constructors
| Cradle | |
Fields
| |
type LoggingFunction = String -> IO () Source #
data CradleAction Source #
Constructors
| CradleAction | |
Fields
| |
Instances
| Show CradleAction Source # | |
Defined in HIE.Bios.Types Methods 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.
Constructors
| 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 Methods fmap :: (a -> b) -> CradleLoadResult a -> CradleLoadResult b # (<$) :: a -> CradleLoadResult b -> CradleLoadResult a # | |
data CradleError Source #
Constructors
| CradleError ExitCode [String] |
Instances
| Show CradleError Source # | |
Defined in HIE.Bios.Types Methods showsPrec :: Int -> CradleError -> ShowS # show :: CradleError -> String # showList :: [CradleError] -> ShowS # | |
| Exception CradleError Source # | |
Defined in HIE.Bios.Types Methods toException :: CradleError -> SomeException # fromException :: SomeException -> Maybe CradleError # displayException :: CradleError -> String # | |
data ComponentOptions Source #
Option information for GHC
Constructors
| ComponentOptions | |
Fields
| |
Instances
| Eq ComponentOptions Source # | |
Defined in HIE.Bios.Types Methods (==) :: ComponentOptions -> ComponentOptions -> Bool # (/=) :: ComponentOptions -> ComponentOptions -> Bool # | |
| Show ComponentOptions Source # | |
Defined in HIE.Bios.Types Methods showsPrec :: Int -> ComponentOptions -> ShowS # show :: ComponentOptions -> String # showList :: [ComponentOptions] -> ShowS # | |