Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

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

  1. data Pillar

    colonnade Colonnade

    Isomorphic to the natural numbers. Only the promoted version of this type is used.

  2. data Pillar

    colonnade Colonnade.Encode

    Isomorphic to the natural numbers. Only the promoted version of this type is used.

  3. module Combinatorics.PaperStripGame

    Number of possible games as described in http://projecteuler.net/problem=306.

  4. module Combinatorics.Partitions

    No documentation available.

  5. module Data.Conduit.Parser

    This module introduces ConduitParser, a wrapper around Sink that behaves like a parser. You probably want to import the Text.Parser.Combinators module together with this module.

  6. data ParseError

    config-value Config

    Error messages that can occur during parsing annotated with a file position.

  7. ParseError :: Position -> String -> ParseError

    config-value Config

    No documentation available.

  8. data Position

    config-value Config

    A position in a text file

  9. Position :: Int -> Int -> Int -> Position

    config-value Config

    No documentation available.

  10. module Database.CQL.Protocol

    The CQL native protocol is a binary frame-based protocol where each frame has a Header, a Length and a body. The protocol distinguishes Requests and Responses. Some usage examples: Constructing and Serialising a Request

    let q = QueryString "select peer from system.peers where data_center = ? and rack = ?"
    p = QueryParams One False ("uk-1", "r-0") Nothing Nothing Nothing
    r = RqQuery (Query q p :: Query R (Text, Text) (Identity IP))
    i = mkStreamId 0
    in pack V3 noCompression False i r
    
    Deserialising a Response
    -- assuming bh contains the raw header byte string and bb the raw
    -- body byte string.
    case header V3 bh of
    Left  e -> ...
    Right h -> unpack noCompression h bb
    
    A generic query processing function
    query :: (Tuple a, Tuple b) => Version -> Socket -> QueryString k a b -> QueryParams a -> IO (Response k a b)
    query v s q p = do
    let i = mkStreamId 0
    sendToServer s (pack v noCompression False i (RqQuery (Query q p)))
    b <- recv (if v == V3 then 9 else 8) s
    h <- either (throwIO . MyException) return (header v b)
    when (headerType h == RqHeader) $
    throwIO UnexpectedRequestHeader
    let len = lengthRepr (bodyLength h)
    x <- recv (fromIntegral len) s
    case unpack noCompression h x of
    Left e              -> throwIO $ AnotherException e
    Right (RsError _ e) -> throwIO e
    Right response      -> return response
    

Page 815 of many | Previous | Next