Hoogle Search
Within Stackage Nightly 2025-09-30 (ghc-9.12.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
parseTest :: Show a => Parser a -> ByteString -> IO ()attoparsec Data.Attoparsec.ByteString.Char8 Run a parser and print its result to standard output.
parseTest :: Show a => Parser a -> ByteString -> IO ()attoparsec Data.Attoparsec.ByteString.Lazy Run a parser and print its result to standard output.
parseTest :: Show a => Parser a -> Text -> IO ()attoparsec Data.Attoparsec.Text Run a parser and print its result to standard output.
parseTest :: Show a => Parser a -> Text -> IO ()attoparsec Data.Attoparsec.Text.Lazy Run a parser and print its result to standard output.
parseT :: Monad m => ZeptoT m a -> ByteString -> m (Either String a)attoparsec Data.Attoparsec.Zepto Run a parser on top of the given base monad.
defaultSetByteArray# :: Prim a => MutableByteArray# s -> Int# -> Int# -> a -> State# s -> State# sprimitive Data.Primitive.Types An implementation of setByteArray# that calls writeByteArray# to set each element. This is helpful when writing a Prim instance for a multi-word data type for which there is no CPU-accelerated way to broadcast a value to contiguous memory. It is typically used alongside defaultSetOffAddr#. For example:
data Trip = Trip Int Int Int instance Prim Trip sizeOfType# _ = 3# *# sizeOfType# (proxy# :: Proxy# Int) alignmentOfType# _ = alignmentOfType# (proxy# :: Proxy# Int) indexByteArray# arr# i# = ... readByteArray# arr# i# = ... writeByteArray# arr# i# (Trip a b c) = \s0 -> case writeByteArray# arr# (3# *# i#) a s0 of s1 -> case writeByteArray# arr# ((3# *# i#) +# 1#) b s1 of s2 -> case writeByteArray# arr# ((3# *# i#) +# 2# ) c s2 of s3 -> s3 setByteArray# = defaultSetByteArray# indexOffAddr# addr# i# = ... readOffAddr# addr# i# = ... writeOffAddr# addr# i# (Trip a b c) = \s0 -> case writeOffAddr# addr# (3# *# i#) a s0 of s1 -> case writeOffAddr# addr# ((3# *# i#) +# 1#) b s1 of s2 -> case writeOffAddr# addr# ((3# *# i#) +# 2# ) c s2 of s3 -> s3 setOffAddr# = defaultSetOffAddr#
defaultSetOffAddr# :: Prim a => Addr# -> Int# -> Int# -> a -> State# s -> State# sprimitive Data.Primitive.Types An implementation of setOffAddr# that calls writeOffAddr# to set each element. The documentation of defaultSetByteArray# provides an example of how to use this.
-
resourcet Data.Acquire The way in which a release is called.
-
resourcet Data.Acquire.Internal The way in which a release is called.
getIntSetOf :: Get Int -> Get IntSetcereal Data.Serialize.Get Read as a list of ints.