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.
-
colonnade Colonnade Isomorphic to the natural numbers. Only the promoted version of this type is used.
-
colonnade Colonnade.Encode Isomorphic to the natural numbers. Only the promoted version of this type is used.
module Combinatorics.
PaperStripGame Number of possible games as described in http://projecteuler.net/problem=306.
module Combinatorics.
Partitions No documentation available.
-
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.
-
config-value Config Error messages that can occur during parsing annotated with a file position.
ParseError :: Position -> String -> ParseErrorconfig-value Config No documentation available.
-
config-value Config A position in a text file
Position :: Int -> Int -> Int -> Positionconfig-value Config No documentation available.
-
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 rDeserialising 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 functionquery :: (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