I am an absolute beginner. Going through LYAH using emacs.
My current Set up:
- Ubuntu 12.04 LTS (Use Experience - beginner)
- GNU Emacs 23 (Use Experience - beginner)
- able to work in haskell major mode
Finding difficult to follow instructions (to bring haskell libraries) at Point 2 described here.
Also need guidance to enable Scion IDE.
Problem:
.hs code
data Maybe a = Nothing | Just a
While running the code, I get following error:
Please ignore typo error, Originally posted:
*Main> just "Haha"
interactive>:339:1: Not in scope: `just'
This is the real error (added after Tikhon Jelvis' comment):
*Main> Just "Haha"
interactive>:341:1:
Ambiguous occurrence `Just'
It could refer to either `Main.Just',
defined at /home/optimight/baby.hs:89:26
or `Prelude.Just',
imported from `Prelude' at /home/optimight/baby.hs:1:1
(and originally defined in `Data.Maybe')