Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Uuid'SwapIntoLnTable = Uuid 'SwapIntoLnTable
- type Money'Lsp'OnChain'Gain = Money 'Lsp 'OnChain 'Gain
- type Money'Usr'OnChain'Fund = Money 'Usr 'OnChain 'Fund
- data App = forall m.Env m => App {}
- data AppMessage
- = MsgNothing {
- | MsgProxy { }
- | MsgUtcTime { }
- | MsgL {
- | MsgS {
- | MsgP {
- | MsgIso3166v1 {
- | MsgCopy {
- | MsgContinue {
- | MsgAmount {
- | MsgSatoshi { }
- | MsgStatus {
- | MsgExpiresAt {
- | MsgInsertedAt {
- | MsgUpdatedAt {
- | MsgChannelPrivacy {
- | MsgBlock {
- | MsgTxId {
- | MsgVout {
- | MsgInputFailure {
- | MsgSwapWaitingFundChain {
- | MsgSwapWaitingPeer {
- | MsgSwapWaitingChan {
- | MsgSwapSucceeded {
- | MsgSwapExpired {
- | MsgSwapUtxoUnspent {
- | MsgSwapUtxoUnspentDust {
- | MsgSwapUtxoUnspentChanReserve {
- | MsgSwapUtxoSpentChanSwapped {
- | MsgSwapUtxoSpentRefund {
- | MsgSwapUtxoOrphan {
- | MsgLnChanStatusPendingOpen {
- | MsgLnChanStatusOpened {
- | MsgLnChanStatusActive {
- | MsgLnChanStatusFullyResolved {
- | MsgLnChanStatusInactive {
- | MsgLnChanStatusPendingClose {
- | MsgLnChanStatusClosed {
- | MsgChanPrivate {
- | MsgChanPublic {
- | MsgHomeRTitle {
- | MsgOpenChanRTitle {
- | MsgSwapIntoLnCreateRTitle {
- | MsgSwapIntoLnSelectRTitle { }
- | MsgAboutRTitle {
- | MsgHomeRLinkShort {
- | MsgOpenChanRLinkShort {
- | MsgSwapIntoLnCreateRLinkShort {
- | MsgSwapIntoLnSelectRLinkShort { }
- | MsgAboutRLinkShort {
- | MsgHomeRLinkLong {
- | MsgOpenChanRLinkLong {
- | MsgSwapIntoLnCreateRLinkLong {
- | MsgSwapIntoLnSelectRLinkLong { }
- | MsgAboutRLinkLong {
- | MsgHomeBigHeader {
- | MsgHomeSmallHeader {
- | MsgOpenChanInstruction {
- | MsgSwapIntoLnFailureRefundOnChainAddressIsNotValid {
- | MsgSwapIntoLnFailureRefundOnChainAddressIsNotSegwit {
- | MsgSwapIntoLnHeaderInfo {
- | MsgSwapIntoLnHeaderUtxos {
- | MsgSwapIntoLnHeaderChans {
- | MsgSwapIntoLnTotalOnChainReceived {
- | MsgSwapIntoLnTotalOnChainReserved {
- | MsgSwapIntoLnTotalOnChainSwapped {
- | MsgSwapIntoLnTotalOnChainRefunded {
- | MsgSwapIntoLnTotalOnChainDust {
- | MsgSwapIntoLnFeeLsp {
- | MsgSwapIntoLnChanCapUser {
- | MsgSwapIntoLnChanCapLsp {
- | MsgSwapIntoLnChanCapTotal {
- | MsgSwapIntoLnUuid {
- | MsgSwapIntoLnUserId {
- | MsgSwapIntoLnFundInvoice {
- | MsgSwapIntoLnFundAddress {
- | MsgSwapIntoLnRefundAddress {
- | MsgSwapIntoLnInfoShort {
- | MsgSwapIntoLnWaitingFundChainShort {
- | MsgSwapIntoLnFundedShort {
- | MsgSwapIntoLnWaitingChanShort {
- | MsgSwapIntoLnSucceededShort {
- | MsgSwapIntoLnExpiredShort {
- | MsgSwapIntoLnInfoLong {
- | MsgSwapIntoLnWaitingFundChainLong { }
- | MsgSwapIntoLnFundedLong {
- | MsgSwapIntoLnWaitingChanLong {
- | MsgSwapIntoLnSucceededLong {
- | MsgSwapIntoLnExpiredLong {
- | MsgDisclaimerTos0 {
- | MsgDisclaimerTos1 {
- | MsgDisclaimerCommitmentFee {
- | MsgAboutGen0 {
- | MsgAboutGen1 {
- | MsgAboutGen2 {
- | MsgAboutGen3 {
- | MsgAboutGen4 {
- | MsgAboutGen5 {
- | MsgAboutGen6 {
- | MsgAboutGen7 {
- | MsgAboutGen8 {
- | MsgAboutGen9 {
- | MsgAboutGen10 {
- | MsgAboutGen11 {
- | MsgAboutGen12 {
- | MsgAboutMathGen0 {
- | MsgAboutMathGen1 {
- | MsgAboutMathGen2 {
- | MsgAboutMathGen3 {
- | MsgAboutMathGen4 {
- | MsgAboutMathGen5 {
- | MsgAboutMathGen6 {
- | MsgAboutMathGen7 {
- | MsgAboutMathGen8 {
- | MsgAboutMathGen9 {
- | MsgAboutMathMinMax0 {
- | MsgAboutMathMinMax1 {
- | MsgAboutMathMinMax2 {
- | MsgAboutMathMinMax3 { }
- | MsgAboutMathMinMax4 {
- | MsgAboutMathMinMax5 { }
- | MsgAboutMathMinMax6 {
- | MsgAboutMathMinMax7 { }
- | MsgAboutMathMinMax8 {
- | MsgAboutMathLspFee0 {
- | MsgAboutMathLspFee1 {
- | MsgAboutMathLspFee2 {
- | MsgAboutMathLspFee3 {
- | MsgAboutMathLspFee4 {
- | MsgAboutMathLspFee5 { }
- | MsgAboutMathLspFee6 {
- | MsgAboutMathLspFee7 {
- | MsgAboutMathLspFee8 {
- | MsgAboutMathLspFee9 { }
- | MsgAboutMathLspFee10 {
- | MsgAboutMathCommFee0 {
- | MsgAboutMathCommFee1 {
- | MsgAboutMathCommFee2 {
- | MsgAboutExamples {
- | MsgAboutExamplesUserOnChainFunding {
- | MsgAboutExamplesLspSwapFee {
- | MsgAboutExamplesUserOutgoingCap {
- | MsgAboutExamplesUserIncomingCap {
- | MsgAboutExamplesTotalChanCap {
- | MsgAboutSwap0 {
- | MsgAboutSwap1 {
- | MsgAboutSwap2 {
- | MsgAboutSwap3 {
- | MsgAboutSwap4 {
- | MsgAboutSwap5 {
- | MsgAboutSwap6 {
- | MsgAboutSwap7 {
- | MsgAboutSwap8 {
- | MsgAboutSwap9 {
- | MsgAboutSwap10 {
- | MsgAboutSwap11 {
- | MsgAboutSwap12 {
- | MsgAboutDisclaimer0 {
- | MsgAboutDisclaimer1 {
- = MsgNothing {
- data MenuItem = MenuItem {}
- data MenuTypes
- type Handler = HandlerFor App
- type Widget = WidgetFor App ()
- resourcesApp :: [ResourceTree String]
- type Form x = Html -> MForm (HandlerFor App) (FormResult x, Widget)
- type DB a = forall (m :: Type -> Type). MonadUnliftIO m => ReaderT SqlBackend m a
- isAuthenticated :: Handler AuthResult
- unsafeHandler :: App -> Handler a -> IO a
- data PanelConfig = PanelConfig {}
- newLayout :: Maybe PanelConfig -> Widget -> Handler Html
- panelLayout :: BootstrapColor -> AppMessage -> AppMessage -> Widget -> Handler Html
Documentation
type Uuid'SwapIntoLnTable = Uuid 'SwapIntoLnTable Source #
NOTE : this type aliases are there only because of poor support of advanced Haskell in yesodroutes and i18n files through Yesod TH.
!!! DO NOT USE DIRECTLY IN SOURCE CODE !!!
The foundation datatype for your application. This can be a good place to keep settings and values requiring initialization before your application starts running, such as database connections. Every handler will have access to the data present here.
forall m.Env m => App | |
|
Instances
data AppMessage Source #
Instances
RenderMessage App AppMessage Source # | |
Defined in BtcLsp.Yesod.Foundation renderMessage :: App -> [Lang] -> AppMessage -> Text # |
type Handler = HandlerFor App Source #
type Form x = Html -> MForm (HandlerFor App) (FormResult x, Widget) Source #
A convenient synonym for creating forms.
type DB a = forall (m :: Type -> Type). MonadUnliftIO m => ReaderT SqlBackend m a Source #
A convenient synonym for database access functions.
isAuthenticated :: Handler AuthResult Source #
Access function to determine if a user is logged in.
data PanelConfig Source #
panelLayout :: BootstrapColor -> AppMessage -> AppMessage -> Widget -> Handler Html Source #