4 ms·
That's cool, but could you tell me how to use it? When I try ghc -B hello.hs I get an error Missing file: ./settings . If I then touch settings pla
by 1f60c 6y ago
That's cool, but could you tell me how to use it?
When I try
ghc -B hello.hs
I get an error
Missing file: ./settings
.
If I then
touch settings platformConstants
the error changes to
Can't parse "./settings"
.
What am I supposed to put in this settings file? I'm but a Haskell noob, and this is the first time I've heard of it.
EDIT:
I found it! The correct command is
ghc hello.hs +RTS -B
.
I can't seem to get it to beep on macOS, though.
- chrisseaton 6y agoIt just prints \a - it's up to your Terminal what it does with that. Does print "\a" work in your terminal?
- 1f60c 6y agoYes, it does, but my terminal's "silent bell" feature had been enabled. I disabled it, and it worked, though only while compiling, and not during runtime, strangely enough.