Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. identifyForm :: forall (m :: Type -> Type) a . Monad m => Text -> (Markup -> MForm m (FormResult a, WidgetFor (HandlerSite m) ())) -> Markup -> MForm m (FormResult a, WidgetFor (HandlerSite m) ())

    yesod-form Yesod.Form.Functions

    Creates a hidden field on the form that identifies it. This identification is then used to distinguish between missing and wrong form data when a single handler contains more than one form. For instance, if you have the following code on your handler:

    ((fooRes, fooWidget), fooEnctype) <- runFormPost fooForm
    ((barRes, barWidget), barEnctype) <- runFormPost barForm
    
    Then replace it with
    ((fooRes, fooWidget), fooEnctype) <- runFormPost $ identifyForm "foo" fooForm
    ((barRes, barWidget), barEnctype) <- runFormPost $ identifyForm "bar" barForm
    
    Note that it's your responsibility to ensure that the identification strings are unique (using the same one twice on a single handler will not generate any errors). This allows you to create a variable number of forms and still have them work even if their number or order change between the HTML generation and the form submission.

  2. identA :: HasAttributes c => Lens' c BufferId

    yi-core Yi.Buffer.Misc

    No documentation available.

  3. identString :: FBuffer -> Text

    yi-core Yi.Buffer.Misc

    Gets the buffer's identifier string, emphasising the MemBuffer:

    >>> let memBuf = newB (BufferRef 0) (MemBuffer "foo/bar/hello") ""
    
    >>> identString memBuf
    "*foo/bar/hello*"
    
    >>> let fileBuf = newB (BufferRef 0) (FileBuffer "foo/bar/hello") ""
    
    >>> identString fileBuf
    "foo/bar/hello"
    

  4. identA :: HasAttributes c => Lens' c BufferId

    yi-core Yi.Config.Simple

    No documentation available.

  5. identString :: FBuffer -> Text

    yi-core Yi.Config.Simple

    Gets the buffer's identifier string, emphasising the MemBuffer:

    >>> let memBuf = newB (BufferRef 0) (MemBuffer "foo/bar/hello") ""
    
    >>> identString memBuf
    "*foo/bar/hello*"
    
    >>> let fileBuf = newB (BufferRef 0) (FileBuffer "foo/bar/hello") ""
    
    >>> identString fileBuf
    "foo/bar/hello"
    

  6. idAutomaton :: (Ord a, Eq a) => P a a

    yi-core Yi.Interact

    No documentation available.

  7. idAutomaton :: (Ord a, Eq a) => P a a

    yi-core Yi.Keymap.Keys

    No documentation available.

  8. ident :: Attributes -> !BufferId

    yi-core Yi.Types

    No documentation available.

  9. idValName :: Name

    deriving-compat Data.Deriving.Internal

    No documentation available.

  10. identDataName :: Name

    deriving-compat Data.Deriving.Internal

    No documentation available.

Page 283 of many | Previous | Next