Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

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

  1. readWordArray# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Word# #)

    ihaskell IHaskellPrelude

    Read a word-sized unsigned integer; offset in machine words. Warning: this can fail with an unchecked exception.

  2. readWordOffAddr# :: Addr# -> Int# -> State# d -> (# State# d, Word# #)

    ihaskell IHaskellPrelude

    Read a word-sized unsigned integer; offset in machine words. On some platforms, the access may fail for an insufficiently aligned Addr#. Warning: this can fail with an unchecked exception.

  3. readEither :: Read a => String -> Either Text a

    incipit-base Incipit.String.Conversion

    Version of readEither that returns Text in case of the parse error.

    >>> readEither @Int "123"
    Right 123
    
    >>> readEither @Int "aa"
    Left "Prelude.read: no parse"
    

  4. readMaybe :: Read a => String -> Maybe a

    incipit-base Incipit.String.Reexport

    Parse a string using the Read instance. Succeeds if there is exactly one valid result.

    >>> readMaybe "123" :: Maybe Int
    Just 123
    
    >>> readMaybe "hello" :: Maybe Int
    Nothing
    

  5. reads :: Read a => ReadS a

    incipit-base Incipit.String.Reexport

    equivalent to readsPrec with a precedence of 0.

  6. readline :: String -> IO String

    isocline System.Console.Isocline

    readline prompt: Read (multi-line) input from the user with rich editing abilities. Takes the prompt text as an argument. The full prompt is the combination of the given prompt and the prompt marker ("> " by default) . See also readlineEx, readlineMaybe, enableMultiline, and setPromptMarker.

  7. readlineEx :: String -> Maybe (CompletionEnv -> String -> IO ()) -> Maybe (String -> Fmt) -> IO String

    isocline System.Console.Isocline

    readlineEx prompt mbCompleter mbHighlighter: as readline but uses the given mbCompleter function to complete words on tab (instead of the default completer). and the given mbHighlighter function to highlight the input (instead of the default highlighter). See also readline and readlineExMaybe.

  8. readlineExMaybe :: String -> Maybe (CompletionEnv -> String -> IO ()) -> Maybe (String -> Fmt) -> IO (Maybe String)

    isocline System.Console.Isocline

    As readlineEx but returns Nothing on end-of-file or other errors (ctrl-C/ctrl-D). See also readlineMaybe.

  9. readlineMaybe :: String -> IO (Maybe String)

    isocline System.Console.Isocline

    As readline but returns Nothing on end-of-file or other errors (ctrl-C/ctrl-D).

  10. readlinePrim :: String -> Maybe (CompletionEnv -> String -> IO ()) -> Maybe (HighlightEnv -> String -> IO ()) -> IO String

    isocline System.Console.Isocline

    readlinePrim prompt mbCompleter mbHighlighter: as readline but uses the given mbCompleter function to complete words on tab (instead of the default completer). and the given mbHighlighter function to highlight the input (instead of the default highlighter). See also readlineEx and readlinePrimMaybe.

Page 270 of many | Previous | Next