Surendra Singhi wrote:
I downloaded the haskell mode from that site and I was trying to
configure it, but during the process I ran into this error
Debugger entered--Lisp error: (void-function charsetp)
I got over this error by commenting out the code dealing with japanese
font and calling charsetp
Surendra Singhi wrote:
But now I have run into another trouble this time it is
Debugger entered--Lisp error: (void-function switch-to-haskell)
Do I need to set some inferior haskell buffer variable?
Or why am I getting this error?
I have Hugs98 installed as well as configured on my path.
The soluti
Hi all. I'm experimenting with haskell and its type system.
I've done a function which scans a list, and returns "Just a"
value if the element is found, or Nothing.
get :: a -> Maybe a
and implemented
getAorB :: Maybe a -> Maybe a -> a
getAorB a b = ...
a function which returns "Just (get a)" o
The problem with your approach is that getAorB does not halt if the
list does not contain the first element. For example:
> getAorB 6 5 [5,5..]
While you may not care about a contrived example like this, it does
imply that your function scans the list once, searching for the first
element, and