Is there a way to view a list of Prelude functions (such as Data.Char
) from the Haskell console, instead of visiting Hoogle?
From GHCi you can use
:browse Data.Char
to see the types and values exported by a given module.
E.g.
Prelude> :browse Data.Char
digitToInt :: Char -> Int
generalCategory :: Char -> GeneralCategory
isLetter :: Char -> Bool
isMark :: Char -> Bool
isNumber :: Char -> Bool
isPunctuation :: Char -> Bool
isSeparator :: Char -> Bool
isSymbol :: Char -> Bool
data Char = GHC.Types.C# GHC.Prim.Char#
chr :: Int -> Char
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With