[Haskell] Re: lhs2TeX-friendly emacs mode?

2006-04-16 Thread Stefan Monnier
Is there a Haskell emacs mode that works well with lhs2TeX? Specifically (a) treating \begin{spec} ... \end{spec} like \begin{code}... \end{code}, and (b) coloring inline code (|expr|) and maybe inline verbatim (@expr@) as Haskell rather than LaTeX code. It'd be trivial to patch haskell-mode

[Haskell] Haskell Weekly News: April 17, 2006

2006-04-16 Thread Donald Bruce Stewart
Haskell Weekly News: April 17, 2006 Greetings, and thanks for reading issue 33 of HWN, a weekly newsletter covering developments in the Haskell community. Each Monday, new editions are posted to [1]the Haskell mailing list and to [2]The Haskell Sequence. [3]RSS is

[GHC] #746: ghc panic! with foreign import wrapper involving Bool

2006-04-16 Thread GHC
#746: ghc panic! with foreign import wrapper involving Bool +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: new Priority:

GHC 6.5 error? Illegal polymorphic or qualified type

2006-04-16 Thread Rene de Visser
Hello, I tried to compile HAppS using the latest GHC snapshot (in compiles fine with 6.41). I for example get the error /home/rene/repos/HAppS/src/HAppS/MACID/Var.hs:23:0: Illegal polymorphic or qualified type: forall state event. Ev state event

Re: GHC 6.5 error? Illegal polymorphic or qualified type

2006-04-16 Thread Einar Karttunen
Hello Here is a short example of the GHC 6.5 problem: type AnyE a = forall err. Either err a foo :: Monad m = AnyE (m t) foo = undefined Works with older versions of GHC 6.5, but newer versions fail with the: Illegal polymorphic or qualified type: forall err. Either err (m t) In the

Re: A modest proposal

2006-04-16 Thread Taral
On 4/15/06, John Goerzen [EMAIL PROTECTED] wrote: On the downside, this means that I couldn't just say: take 5 mylist I'd instead have to write: take (5::Int) mylist Wouldn't defaulting do this? -- Taral [EMAIL PROTECTED] You can't prove anything. -- Gödel's Incompetence Theorem

Re: A modest proposal

2006-04-16 Thread Cale Gibbard
On 16/04/06, Taral [EMAIL PROTECTED] wrote: On 4/15/06, John Goerzen [EMAIL PROTECTED] wrote: On the downside, this means that I couldn't just say: take 5 mylist I'd instead have to write: take (5::Int) mylist Wouldn't defaulting do this? Yeah, defaulting should make that 5 an

Re: [Haskell-cafe] The case of the missing module

2006-04-16 Thread Neil Mitchell
Hi, import Paths_haddock( getDataDir ) Haddock requires to be built with Cabal (which generates this module), and as far as I can remember, its a Cabal that isn't released anywhere. When I did some work on haddock I commented this out, and made getDataDir return an empty list and then made

[Haskell-cafe] Re: [Haskell] ANNOUNCE: An index-aware linear algebra library in Haskell

2006-04-16 Thread Alberto Ruiz
It is really counterintuitive! I will study carefully your library and the Implicit Configurations paper. Using static dimension checking we can write very solid code for matrix computations... However, I don't know how to write some definitions. For instance, this is ok: m = $(dAM [[1,2,3]])

Re: [Haskell-cafe] Code Review: Sudoku solver

2006-04-16 Thread Daniel Fischer
I have added 'solve method F', aka X-wing, swordfish... (www.sudokusolver.co.uk) to my solver, that reduced the number of puzzles needing guesses to 5306, so I suppose that's it. I haven't yet implemented it efficiently, so it was devastating for performance - and solving thirteen puzzles more

[Haskell-cafe] Re: [Haskell] ANNOUNCE: An index-aware linear algebra library in Haskell

2006-04-16 Thread Frederik Eaton
Hi Alberto, Those are good questions, I've added some examples which hopefully clarify the situation. Input and output of vectors is not a strong point of the library, but I don't think there is a good alternative to the way I do it. http://ofb.net/~frederik/futility/src/Vector/read-example.hs

RE: [Haskell-cafe] Re: coherence when overlapping?

2006-04-16 Thread Martin Sulzmann
Coherence may also arise because of an ambiguous type. Here's the classic example. class Read a where read :: String - a class Show a where show :: a - String f s = show (read s) f has type String-String, therefore we can pick some arbitrary Read/Show classes. If you want to know