Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unknown command ':1' haskell [closed]

Tags:

haskell

ghci

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:

Screenshot from learnyouahaskell

And here is why numeral 1 and the lowercase letter l was confusing in iTerm:

Screenshot from iTerm

like image 227
sammalaska Avatar asked Feb 09 '14 07:02

sammalaska


1 Answers

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.

like image 177
icktoofay Avatar answered Oct 10 '22 16:10

icktoofay