Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
primitive-unlifted Data.Primitive.Unlifted.SmallArray No documentation available.
-
primitive-unlifted Data.Primitive.Unlifted.SmallArray.Primops No documentation available.
readSmallUnliftedArray :: PrimUnlifted a => SmallMutableUnliftedArray s a -> Int -> ST s aprimitive-unlifted Data.Primitive.Unlifted.SmallArray.ST No documentation available.
readEnum :: MessageEnum a => String -> Maybe aproto-lens Data.ProtoLens.Message Convert the given String to an enum value. Returns Nothing if no corresponding value was defined in the .proto file.
readMessage :: Message msg => Text -> Either String msgproto-lens Data.ProtoLens.TextFormat Parse a Message from the human-readable protocol buffer text format.
readMessageOrDie :: Message msg => Text -> msgproto-lens Data.ProtoLens.TextFormat Parse a Message from the human-readable protocol buffer text format. Throws an error if the parse was not successful.
readMessageWithRegistry :: Message msg => Registry -> Text -> Either String msgproto-lens Data.ProtoLens.TextFormat Parse a Message from a human-readable protocol buffer text format, using the given Registry to decode Any fields
readEither :: (Read a, StringConv String e, StringConv e String) => e -> Either e aprotolude Protolude Parse a string using the Read instance. Succeeds if there is exactly one valid result. A Left value indicates a parse error.
>>> readEither "123" :: Either Text Int Right 123
>>> readEither "hello" :: Either Text Int Left "Prelude.read: no parse"
readFile :: FilePath -> IO Textprotolude Protolude The readFile function reads a file and returns the contents of the file as a string. The entire file is read strictly, as with getContents. Beware that this function (similarly to readFile) is locale-dependent. Unexpected system locale may cause your application to read corrupted data or throw runtime exceptions about "invalid argument (invalid byte sequence)" or "invalid argument (invalid character)". This is also slow, because GHC first converts an entire input to UTF-32, which is afterwards converted to UTF-8. If your data is UTF-8, using decodeUtf8 . readFile is a much faster and safer alternative.
readMaybe :: (Read b, StringConv a String) => a -> Maybe bprotolude Protolude Parse a string using the Read instance. Succeeds if there is exactly one valid result.
>>> readMaybe ("123" :: Text) :: Maybe Int Just 123>>> readMaybe ("hello" :: Text) :: Maybe Int Nothing