I'm just starting to learn Haskell. The Prelude is described as a default module:
The Prelude: a standard module. The Prelude is imported by default into all Haskell modules
But this doesn't explain why various documentation has "Prelude" as a prefix in REPL:
Prelude>
I've installed the mingw version via Chocolatey and my REPL shows "ghci" as a prefix, not "Prelude":
GHCi, version 9.2.1: https://www.haskell.org/ghc/ :? for help
ghci>
The Prelude module is loaded though:
GHCi, version 9.2.1: https://www.haskell.org/ghc/ :? for help
ghci> :browse! Prelude
-- imported via Prelude
(!!) :: [a] -> Int -> a
($) :: (a -> b) -> a -> b
...
Why do prefixes differ and what does "Prelude" mean in the interactive compiler?