Re: [Haskell-cafe] Rigid type variable error

2009-06-27 Thread Jason Dagit
On Fri, Jun 26, 2009 at 8:48 PM, Darryn djr...@aapt.net.au wrote: From: Darryn djr...@aapt.net.au To: beginn...@haskell.org Subject: Rigid type variables match error Date:

[Haskell-cafe] Trivial pivoting for the DSP lu decomposition

2009-06-27 Thread Fernan Bolando
Hi all I created the beginnings of a simple circuit simulator using haskell. It can be downloaded from. http://plan9.bell-labs.com/sources/contrib/fernan/escomma.tar.bz2 It uses a modified version of the haskell DSP library matrix. I extended it with a simple pivoting Its not very haskelly, but

[Haskell-cafe] A Reader Monad Tutorial

2009-06-27 Thread Henry Laxen
Dear Group, If any of you are struggling with understanding monads, I've tried to put together a pretty through explanation of what is behind the Reader monad. If you're interested, have a look at: http://www.maztravel.com/haskell/readerMonad.html Enjoy. Henry Laxen

[Haskell-cafe] F# mailing list?

2009-06-27 Thread GüŸnther Schmidt
Hi guys, is there a mailing list for haskellers that defected to F#? Not that I was I going to, just asking, absolutely hypothetically. Uhm. Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] F# mailing list?

2009-06-27 Thread Anton Tayanovskyy
Hi Günther, I would be interested in one too. I'm a Haskeller currently working for an F# shop. There's hubFS but I would absolutely prefer a mailing list. --A On Sat, Jun 27, 2009 at 8:31 PM, GüŸnther Schmidtgue.schm...@web.de wrote: Hi guys, is there a mailing list for haskellers that

[Haskell-cafe] Re: F# mailing list?

2009-06-27 Thread GüŸnther Schmidt
Hi Anton, cool I'll keep you in the loop. Would you mind talking about more about what you do in the F# Shop? I must admit I only came to haskell itself only 2 years ago, created 2 apps in it and have no clue for instance on how F# standing in the market is. Günther Anton Tayanovskyy

Re: [Haskell-cafe] Re: Could FFI support pass-by-value of structs?

2009-06-27 Thread Henning Thielemann
Maurí­cio schrieb: It's not usual, but it is allowed to have values of structs passed between functions directly instead of using pointers: (...) Would it be possible to allow that in Haskell FFI (...) There are a couple problems with this. First, the storage layout for a given C struct

[Haskell-cafe] ANNOUNCE: Cal3D animation library

2009-06-27 Thread Gregory D. Weber
The Cal3D for Haskell project provides a partial binding to the C++ Cal3D animation library. The project homepage is http://haskell.org/haskellwiki/Cal3d_animation There are three packages available on hackage: * cal3d-0.1 is a Haskell binding to the Cal3D library itself. *

[Haskell-cafe] Network.CGI -- practical web programming example.

2009-06-27 Thread Edward Ing
I am somewhat new to haskell. It is amazing that I can actually write a CGI program using Network.CGI without really being comfortable with the Haskell type system. Especially when it involves monad transformations. So I decided that I better understand this. I looked at the Practical Web

Re: [Haskell-cafe] Network.CGI -- practical web programming example.

2009-06-27 Thread Luke Palmer
Your code examples are: On Sat, Jun 27, 2009 at 6:07 PM, Edward Ing edward@gmail.com wrote: saveFile n = do cont - (liftM fromJust) $ getInputFPS file let f = uploadDir ++ / ++ basename n liftIO $ BS.writeFile f cont return $ paragraph (Saved as +++

Re: [Haskell-cafe] Network.CGI -- practical web programming example.

2009-06-27 Thread Brandon S. Allbery KF8NH
On Jun 27, 2009, at 20:07 , Edward Ing wrote: saveFile n = do cont - (liftM fromJust) $ getInputFPS file let f = uploadDir ++ / ++ basename n liftIO $ BS.writeFile f cont return $ paragraph (Saved as +++ anchor ! [href f] f +++ .) saveFile n = do cont

[Haskell-cafe] bizarre syntax error

2009-06-27 Thread Geoffrey Irving
I ran into a unfortunate syntax error just now. I figured I'd share it because it's the weirdest message I've ever gotten out of ghc. The broken code is case t of TyApply tv types - do (tvl, cases) - lookupDatatype prog tv let tenv = Map.fromList (zip tvl types) --

Re: [Haskell-cafe] bizarre syntax error

2009-06-27 Thread Brandon S. Allbery KF8NH
On Jun 27, 2009, at 20:37 , Geoffrey Irving wrote: The last statement in a 'do' construct must be an expression Right, the where terminates the entire expression, you can't use it in the middle like that. I'm pretty sure that's mandatory per the standard, and nobody really wants to

[Haskell-cafe] test-framework success

2009-06-27 Thread Simon Michael
Max - I was thinking about how to drive my new shell tests with your framework. I have: data ShellTest = ShellTest { filename ∷ String ,command ∷ String ,stdin∷ Maybe String ,stdoutExpected ∷ Maybe String ,stderrExpected ∷ Maybe String

[Haskell-cafe] Re: test-framework success

2009-06-27 Thread Simon Michael
PS - not cabalised, not even committed, but here's my shell test runner for folks to play with: http://joyful.com/repos/hledger/tools/shelltest2.hs http://joyful.com/repos/hledger/tests/ - test examples ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Rigid type variable error

2009-06-27 Thread Darryn
Thanks for the help previously received, but I still cannot seem to get on top of this. The types for the constructor K will not resolve and I'm at a loss to work out what to do with it. If anyone can offer a further explanation and help I would be very grateful. My code (File Test5.hs):