GHCi.TH
Safe Haskell | None |
---|---|
Language | Haskell2010 |
Description
Running TH splices
startTH :: IO (RemoteRef (IORef QState)) Source
The implementation of the StartTH
message: create a new IORef QState, and return a RemoteRef to it.
runModFinalizerRefs :: Pipe -> RemoteRef (IORef QState) -> [RemoteRef (Q ())] -> IO () Source
Runs the mod finalizers.
The references must be created on the caller process.
Arguments
:: Pipe | |
-> RemoteRef (IORef QState) | The TH state, created by |
-> HValueRef | The splice to run |
-> THResultType | What kind of splice it is |
-> Maybe Loc | The source location |
-> IO ByteString | Returns an (encoded) result that depends on the THResultType |
The implementation of the RunTH
message
data GHCiQException Source
The exception thrown by "fail" in the GHCiQ monad
Constructors
GHCiQException QState String |
Instances
Show GHCiQException | |
Defined in GHCi.TH MethodsshowsPrec :: Int -> GHCiQException -> ShowS Source show :: GHCiQException -> String Source showList :: [GHCiQException] -> ShowS Source | |
Exception GHCiQException | |
Defined in GHCi.TH MethodstoException :: GHCiQException -> SomeException Source fromException :: SomeException -> Maybe GHCiQException Source |
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/ghci-8.10.2/GHCi-TH.html