I started Haskell today.
I finished installing from https://www.haskell.org/platform/, and saved the sample code as file.hs.
If you type ghci file.hs on the GHCi screen,
[1 of 1] Compiling Main (file.hs, interpreted)
Ok, modules loaded: Main.
*Main >
where should be printed
Variable not in scope:ghci::t0->b0->c
Variable not in scope: file
Variable not in scope: hs::a->b0
I got an error and couldn't proceed.
I searched online, but I don't know.
Please give me some advice.
haskell
I probably typed ghci file.hs
directly while waiting for the program to be entered after starting GHCi.
The correct answer is
Specify the filename as an option to launch GHCi in the shell.
$ghci file.hs
Specify the filename as an option to launch GHCi on the shell.
$ghci file.hs
or
After starting GHCi, set to :load file.hs
.
Prelude>:load file.hs
After starting GHCi, set to :load file.hs
.
Prelude>:load file.hs
That's fine.
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
612 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.