Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
performRequest :: Request -> WaiSession st (Response ByteString)sydtest-wai Test.Syd.Wai Perform a bare Request. You can use this to make a request to an application other than the one under test. This function does not set the host and port of the request like request does, but it does share a CookieJar.
performRequest :: Request -> WaiSession st (Response ByteString)sydtest-wai Test.Syd.Wai.Request Perform a bare Request. You can use this to make a request to an application other than the one under test. This function does not set the host and port of the request like request does, but it does share a CookieJar.
-
Cross-platform support for Vty This package provides a generic interface for multiple Vty platforms in one package so you don't have to conditionally depend on them in your cabal file.
module Graphics.Vty.
CrossPlatform This module exposes a simple API to initialize Vty in a platform-independent way. This module only provides mkVty for initializing the terminal. The rest of the Vty API is accessed through the vty package's API. If you need access to platform-specific settings, it might be best to depend on and use the platform-specific packages directly instead of using this package.
focusedFormInputAttr :: AttrNamebrick Brick.Forms The attribute for form input fields that have the focus. Note that this attribute only affects fields that do not already use their own attributes when rendering, such as editor- and list-based fields. Those need to be styled by setting the appropriate attributes; see the documentation for field constructors to find out which attributes need to be configured.
handleFormEvent :: Eq n => BrickEvent n e -> EventM n (Form s e n) ()brick Brick.Forms Dispatch an event to the currently focused form field. This handles the following events in this order:
- On Tab keypresses, this changes the focus to the next field in the form.
- On Shift-Tab keypresses, this changes the focus to the previous field in the form.
- On mouse button presses (regardless of button or modifier), the focus is changed to the clicked form field and the event is forwarded to the event handler for the clicked form field.
- On Left or Up, if the currently-focused field is part of a collection (e.g. radio buttons), the previous entry in the collection is focused.
- On Right or Down, if the currently-focused field is part of a collection (e.g. radio buttons), the next entry in the collection is focused.
- All other events are forwarded to the currently focused form field.
invalidFormInputAttr :: AttrNamebrick Brick.Forms The attribute for form input fields with invalid values. Note that this attribute will affect any field considered invalid and will take priority over any attributes that the field uses to render itself.
newForm :: [s -> FormFieldState s e n] -> s -> Form s e nbrick Brick.Forms Create a new form with the specified input fields and an initial form state. The fields are initialized from the state using their state lenses and the first form input is focused initially.
renderForm :: Eq n => Form s e n -> Widget nbrick Brick.Forms Render a form. For each form field, each input for the field is rendered using the implementation provided by its FormField. The inputs are then concatenated with the field's concatenation function (see setFieldConcat) and are then augmented using the form field's rendering augmentation function (see @@=). Fields with invalid inputs (either due to built-in validator failure or due to external validation failure via setFieldValid) will be displayed using the invalidFormInputAttr attribute. Finally, all of the resulting field renderings are concatenated with the form's concatenation function (see setFormConcat). A visibility request is also issued for the currently-focused form field in case the form is rendered within a viewport.
renderFormFieldState :: Eq n => FocusRing n -> FormFieldState s e n -> Widget nbrick Brick.Forms Render a single form field collection. This is called internally by renderForm but is exposed in cases where a form field state needs to be rendered outside of a Form, so renderForm is probably what you want.