I just decided to get adventurous and learn some Haskell. I am following along from http://learnyouahaskell.com/. I downloaded the whole Haskell Platform from http://www.haskell.org/platform/mac.html for 64bit Mac Architecture, I already had gcc/command line tools installed, and am not running Mavericks yet.
GHCI runs great, but when I wrote the simple doubleMe
exercise, and followed learnyouahaskell's directions to save and run the script, GHCI outputs the following error:Prelude> :1 baby
unknown command ':1'
use :? for help.
I'm wondering if this command is deprecated or if I'm reading the documentation from LearnYouAHaskell wrong.
Any help is appreciated. Thanks.
Thanks to @icktoofay for the syntax help and answering my question. Here is the original source that caused the confusion:
And here is why numeral 1
and the lowercase letter l
was confusing in iTerm:
GHCi understands :load
or its abbreviation :l
, not a colon followed by the numeral one.
A lowercase L and the digit 1 do look very similar, so I can understand your confusion.
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