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.
readUnliftedMutVar :: PrimUnlifted a => UnliftedMutVar s a -> ST s aprimitive-unlifted Data.Primitive.Unlifted.MutVar.ST No documentation available.
-
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.
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 Nothingreader :: MonadReader r m => (r -> a) -> m aprotolude Protolude Retrieves a function of the current environment.
-
protolude Protolude equivalent to readsPrec with a precedence of 0.
readXml :: XmlContent a => String -> Either String aHaXml Text.XML.HaXml.XmlContent Read a fully-typed XML document from a string.