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.

  1. readSmallUnliftedArray :: (PrimMonad m, PrimUnlifted a) => SmallMutableUnliftedArray (PrimState m) a -> Int -> m a

    primitive-unlifted Data.Primitive.Unlifted.SmallArray

    No documentation available.

  2. readSmallUnliftedArray# :: forall s (a :: UnliftedType) . SmallMutableUnliftedArray# s a -> Int# -> State# s -> (# State# s, a #)

    primitive-unlifted Data.Primitive.Unlifted.SmallArray.Primops

    No documentation available.

  3. readSmallUnliftedArray :: PrimUnlifted a => SmallMutableUnliftedArray s a -> Int -> ST s a

    primitive-unlifted Data.Primitive.Unlifted.SmallArray.ST

    No documentation available.

  4. readEnum :: MessageEnum a => String -> Maybe a

    proto-lens Data.ProtoLens.Message

    Convert the given String to an enum value. Returns Nothing if no corresponding value was defined in the .proto file.

  5. readMessage :: Message msg => Text -> Either String msg

    proto-lens Data.ProtoLens.TextFormat

    Parse a Message from the human-readable protocol buffer text format.

  6. readMessageOrDie :: Message msg => Text -> msg

    proto-lens Data.ProtoLens.TextFormat

    Parse a Message from the human-readable protocol buffer text format. Throws an error if the parse was not successful.

  7. readMessageWithRegistry :: Message msg => Registry -> Text -> Either String msg

    proto-lens Data.ProtoLens.TextFormat

    Parse a Message from a human-readable protocol buffer text format, using the given Registry to decode Any fields

  8. readEither :: (Read a, StringConv String e, StringConv e String) => e -> Either e a

    protolude 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"
    

  9. readFile :: FilePath -> IO Text

    protolude 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.

  10. readMaybe :: (Read b, StringConv a String) => a -> Maybe b

    protolude 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
    

Page 200 of many | Previous | Next