Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. readUnliftedMutVar :: PrimUnlifted a => UnliftedMutVar s a -> ST s a

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

    No documentation available.

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

    primitive-unlifted Data.Primitive.Unlifted.SmallArray

    No documentation available.

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

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

    No documentation available.

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

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

    No documentation available.

  5. 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"
    

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

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

  8. reader :: MonadReader r m => (r -> a) -> m a

    protolude Protolude

    Retrieves a function of the current environment.

  9. reads :: Read a => ReadS a

    protolude Protolude

    equivalent to readsPrec with a precedence of 0.

  10. readXml :: XmlContent a => String -> Either String a

    HaXml Text.XML.HaXml.XmlContent

    Read a fully-typed XML document from a string.

Page 199 of many | Previous | Next