Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. package flow

    Write more understandable Haskell. Flow provides operators for writing more understandable Haskell.

  2. package flush-queue

    Concurrent bouded blocking queues optimized for flushing. Both IO and STM implementations. Please see the README on GitHub at https://github.com/fpco/flush-queue#readme

  3. package fmlist

    FoldMap lists FoldMap lists are lists represented by their foldMap function. FoldMap lists have O(1) cons, snoc and append, just like DLists, but other operations might have favorable performance characteristics as well. These wild claims are still completely unverified though.

  4. package fn

    A functional web framework. A Haskell web framework where you write plain old functions. Provided you have stack installed, you can run this example like a shell script (it'll listen on port 3000):

    #!/usr/bin/env stack
    -- stack --resolver lts-5.5 --install-ghc runghc --package fn --package warp
    {-# LANGUAGE OverloadedStrings #-}
    import Data.Monoid ((<>))
    import Data.Text (Text)
    import Network.Wai (Response)
    import Network.Wai.Handler.Warp (run)
    import Web.Fn
    
    data Ctxt = Ctxt { _req :: FnRequest }
    instance RequestContext Ctxt where
    getRequest = _req
    setRequest c r = c { _req = r }
    
    initializer :: IO Ctxt
    initializer = return (Ctxt defaultFnRequest)
    
    main :: IO ()
    main = do ctxt <- initializer
    run 3000 $ toWAI ctxt site
    
    site :: Ctxt -> IO Response
    site ctxt = route ctxt [ end                        ==> indexH
    , path "echo" // param "msg" ==> echoH
    , path "echo" // segment     ==> echoH
    ]
    `fallthrough` notFoundText "Page not found."
    
    indexH :: Ctxt -> IO (Maybe Response)
    indexH _ = okText "Try visiting /echo?msg=hello or /echo/hello"
    
    echoH :: Ctxt -> Text -> IO (Maybe Response)
    echoH _ msg = okText $ "Echoing '" <> msg <> "'."
    
    Fn lets you write web code that just looks like normal Haskell code.
    • An application has some "context", which must contain a Request, but can contain other data as well, like database connection pools, etc. This context will be passed to each of your handlers, updated with the current HTTP Request.
    • Routes are declared to capture parameters and/or segments of the url, and then routed to handler functions that have the appropriate number and type of arguments. These functions return IO (Maybe Response), where Nothing indicates to Fn that you want it to keep looking for matching routes.
    • All handlers just use plain old IO, which means it is easy to call them from GHCi, forkIO, etc.
    • All of this is a small wrapper around the WAI interface, so you have the flexilibility to do anything you need to do with HTTP.
    The name comes from the fact that Fn emphasizes functions (over monads), where all necessary data is passed via function arguments, and control flow is mediated by return values.

  5. package focuslist

    Lists with a focused element Please see README.md.

  6. package fold-debounce-conduit

    Regulate input traffic from conduit Source with Control.FoldDebounce Regulate input traffic from conduit Source with Control.FoldDebounce. See Data.Conduit.FoldDebounce

  7. package force-layout

    Simple force-directed layout Simulation engine for doing simple force-based layout, e.g. for trees or graphs. See the diagrams-contrib package for usage examples.

  8. package forma

    Parse and validate forms in JSON format Parse and validate forms in JSON format.

  9. package format-numbers

    Various number formatting functions Various number formatting functions

  10. package free-alacarte

    Free monads based on intuitions from the Data types à la Carte. Free monads based on intuitions from the Data types à la Carte paper. Combine functors and make embedded DSLs in Haskell.

Page 186 of many | Previous | Next