Re[4]: [Haskell-cafe] newbie type signature question

2006-06-13 Thread Bulat Ziganshin
Hello Brian, Tuesday, June 13, 2006, 1:11:37 AM, you wrote: data UTF8Stream h = (ByteStream h) = UTF8Stream h instance TextStream (UTF8Stream h) ... addUTF8Encoding :: h - (UTF8Stream h) and so on. currently i should add type constraint to each and every class and function i declared.

[Haskell-cafe] Re: Cabal and linking with static libs (.a files)

2006-06-13 Thread Simon Marlow
Ketil Malde wrote: Now you see it, now you don't. :-/ * .a files in /local/lib/foo-0.0/ghc-/ -- check * .a files named libfoo.a -- check * -lfoo on the command line -- check Using strace shows that the .a file is indeed being read by ghc, but I still get

[Haskell-cafe] Re: Learning C after Haskell

2006-06-13 Thread Chad Scherrer
Thanks for all the replies - this has helped a lot! ChadOn 6/12/06, Chad Scherrer [EMAIL PROTECTED] wrote: Ok, so I'm doing things somewhat backward. I've been using Haskell for a while now, whenever I get a chance to. But in order to become more involved in high-performance computing projects at

[Haskell-cafe] elementsinlist

2006-06-13 Thread Jenny678
Hallo I search a code for elements_in_List([1,2],[1,2]). True elements_in_List([1,8],[1,2,3,4,8]). True elements_in_List([2,1],[1,2]). True elements_in_List([1,1],[1]). False I have a code elements_in_List :: Eq a = [a] - [a] - Bool elements_in_List [] _ = True elements_in_List _ [] =

[Haskell-cafe] Bug in WinHugs?

2006-06-13 Thread Lyle Kopnicky
Hi folks, I just installed the May 2006 release of Hugs. When I use the command-line version, the '$$' symbol to reference the last expression works fine. It does not work in WinHugs, but yields 'ERROR - Syntax error in expression (unexpected symbol $$)'. I typed ':set' to verify the '-r$$'

Re: [Haskell-cafe] elementsinlist

2006-06-13 Thread Bryan Burgers
On 6/13/06, Jenny678 [EMAIL PROTECTED] wrote: Hallo I search a code for elements_in_List([1,2],[1,2]). True elements_in_List([1,8],[1,2,3,4,8]). True elements_in_List([2,1],[1,2]). True elements_in_List([1,1],[1]). False I have a code elements_in_List :: Eq a = [a] - [a] - Bool

Re: [Haskell-cafe] elementsinlist

2006-06-13 Thread Sebastian Sylvan
On 6/14/06, Jenny678 [EMAIL PROTECTED] wrote: Hallo I search a code for elements_in_List([1,2],[1,2]). True elements_in_List([1,8],[1,2,3,4,8]). True elements_in_List([2,1],[1,2]). True elements_in_List([1,1],[1]). False I have a code elements_in_List :: Eq a = [a] - [a] - Bool

Re: [Haskell-cafe] Bug in WinHugs?

2006-06-13 Thread Neil Mitchell
Hi Lyle, I just installed the May 2006 release of Hugs. When I use the command-line version, the '$$' symbol to reference the last expression works fine. It does not work in WinHugs, but yields 'ERROR - Syntax error in expression (unexpected symbol $$)'. I typed ':set' to verify the '-r$$'