Re: [Haskell-cafe] Problem with mailman at projects.haskell.org

2013-05-13 Thread Tim Docker
Thanks - I can confirm all is working again. I believe than, within some time window. some messages may have been dropped. Tim On 14/05/13 07:06, Yitzchak Gale wrote: The mailman daemon process on the server apparently exited for some reason. I restarted it, and now mail traffic seems

[Haskell-cafe] Problem with mailman at projects.haskell.org

2013-05-12 Thread Tim Docker
be distributed or archived. I've not had a response from mail...@projects.haskell.org. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Looking for portable Haskell or Haskell like language

2013-04-28 Thread Tim Docker
now I have an extra step to build build GHC 7.4.2 atop of 7.0.3. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] MVar which can not be null ?

2013-03-18 Thread Tim Docker
the necessary IO action from the STM action, and then run it once the STM transaction has completed successfully. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Open-source projects for beginning Haskell students?

2013-03-12 Thread Tim Docker
the diagrams library currently have adequate text support. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Trouble installing and using Chart/cairo on windows 7

2013-03-03 Thread Tim Docker
and linux, and provides good access to fonts and font metrics. Any suggestions? Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Type classes, collections, sum types, closures, and a massive headache

2013-01-30 Thread Tim Docker
of functions approach is the one that I normally take when I am building a system that needs new types added without requiring global changes. I know that existentials and GADTs are possible solutions, but I've not needed the extra complexity here. Cheers, Tim

Re: [Haskell-cafe] Suggestiong for inter-thread communication

2013-01-27 Thread Tim Docker
Hi Eric, In a previous project, I chose vty over ncurses: - you can write your own event loop, and hence handle different event sources. - more liberal license (BSD3 versus GPL) Tim On 26/01/13 19:24, Erik de Castro Lopo wrote: Hi all, I am in the process of writing a Haskell

Re: [Haskell-cafe] ANN: cabal-install-1.16.0 (and Cabal-1.16.0.1)

2012-10-04 Thread Tim Docker
Does this new release included the sandbox functions discussed in this blog post: http://blog.johantibell.com/2012/08/you-can-soon-play-in-cabal-sandbox.html ? Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] Over general types are too easy to make.

2012-09-02 Thread Tim Docker
would better illustrate your problem? Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Over general types are too easy to make.

2012-09-02 Thread Tim Docker
) - processBar bar (UFrog frog) - processFrog frog But I think from your original mail, you find this ugly in some way? Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] System.Win32.Registry... Help?

2012-07-21 Thread Tim Matthews
On Sun, Jul 22, 2012 at 5:43 PM, Tim Matthews tim.matthe...@gmail.comwrote: On Sun, Jul 22, 2012 at 5:11 PM, Anonymous Void bitsofch...@gmail.comwrote: but I have no idea what to put into some of the arguments for regSetValueEx or regCreateKeyEx, Those are just plain bindings to windows

Re: [Haskell-cafe] ghc-7.4 on CentOS-5.8 ?

2012-06-27 Thread Tim Docker
. Tim On 27/06/2012, at 5:33 PM, Johannes Waldmann wrote: Dear all, I need a recent ghc on a not-so-recent (?) CentOS. The ghc binary package (7.2 or 7.4) does not work because of a mismatch in the libc version. ghc-7.0 is working but when I use it to compile 7.4, it breaks with some

Re: [Haskell-cafe] [Haskell] ANNOUNCE: notcpp-0.0.1

2012-04-14 Thread Tim Matthews
With the C pre processor you can write different code for windows and non windows? Can your package achieve the same? The name alone makes it sound like an alternative to using CPP. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Google Summer of Code - Lock-free data structures

2012-03-29 Thread Tim Harris (RESEARCH)
for the fast paths in data structures, while keeping the full STM available as a fall-back for expressing the cases that cannot be implemented using short transactions. --Tim -Original Message- From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf

Re: [Haskell-cafe] MIDI-controlled application

2011-12-28 Thread Tim Baumgartner
example from reactive-banana. It's a great introduction to FRP for me. The declarative style is very appealing. I will try how it fits with my ideas. Some of my code (thaugh probably obsolete): http://hpaste.org/55795 Regards Tim ___ Haskell-Cafe

Re: [Haskell-cafe] MIDI-controlled application

2011-12-27 Thread Tim Baumgartner
Hi Stephen, 2011/12/27 Stephen Tetley stephen.tet...@gmail.com Hi Tim More problematic is that FRP models hybrid (continuous and discrete) systems. For me at least, MIDI seems essentially discrete - a stream of control events. In MIDI files control events are twinned with a time stamp so

[Haskell-cafe] MIDI-controlled application

2011-12-27 Thread Tim Baumgartner
. Now my questions: I have read about Yampa, but I have not mastered it yet. E.g. I don't understand switches. Could my triggers be realized with Yampa's events and switches? Would you recommend any other approach? Is there something similar somewhere? Regards Tim

Re: [Haskell-cafe] Drawing charts over a lot of data

2011-11-28 Thread Tim Docker
.html Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Interpreter with Cont

2011-11-21 Thread Tim Baumgartner
sometimes called the mother of all monads. Regards Tim 2011/11/21 David Menendez d...@zednenem.com On Sat, Nov 19, 2011 at 3:29 PM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Sat, Nov 19, 2011 at 6:08 PM, Tim Baumgartner baumgartner@googlemail.com wrote: I have not yet gained

Re: [Haskell-cafe] Interpreter with Cont

2011-11-21 Thread Tim Baumgartner
Hi Heinrich, I read your article about the operational monad and found it really very enlightening. So I'm curious to work through the material you linked below. Thanks! Regards Tim 2011/11/21 Heinrich Apfelmus apfel...@quantentunnel.de Tim Baumgartner wrote: Thanks a lot! Althaugh I have

Re: [Haskell-cafe] Interpreter with Cont

2011-11-21 Thread Tim Baumgartner
originally wanted to know. I guess I struggled with the definition of output. Oh, there's so much more to learn... Thanks, Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Interpreter with Cont

2011-11-19 Thread Tim Baumgartner
this? Are there easy research papers about Haskell programming? Or should I try the Monad.Reader? I'm looking for topics that either can be used directly in many situations or that show some functional principles that boost my creativity and functional thinking. Regards, Tim 2011/11/19 Felipe Almeida Lessa felipe.le

[Haskell-cafe] stack overflow pain

2011-09-21 Thread Tim Docker
solve this in the code. Thanks for any pointers. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] stack overflow pain

2011-09-21 Thread Tim Docker
On 21/09/11 02:39, Heinrich Apfelmus wrote: Tim Docker wrote: I'm getting a stack overflow exception in code like this: -- applyAction :: A - IO [B] vs - fmap concat $ mapM applyAction sas return vs I don't get it if I change the code

Re: [Haskell-cafe] mapM is supralinear?

2011-09-21 Thread Tim Docker
to problems I am currently having with mapM over large lists (see the thread stack overflow pain). Can you explain what you mean by mapM_ tends to require more pipeline composition? In what way is it leveraging the language strengths? Thanks, Tim

[Haskell-cafe] Deriving instances with GADTs

2011-08-04 Thread Tim Cowlishaw
, Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Deriving instances with GADTs

2011-08-04 Thread Tim Cowlishaw
Jeuring. Generic Programming for Indexed Datatypes. Color pdf: http://dreixel.net/research/pdf/gpid.pdf Greyscale pdf: http://dreixel.net/research/pdf/gpid_nocolor.pdf Oh, brilliant, thank you! I'll take a look now. Thanks, Tim ___ Haskell-Cafe

Re: [Haskell-cafe] Idiomatic ways to make all instances of a certain class also instances of another?

2011-07-27 Thread Tim Cowlishaw
encapsulates all the different types of order. Thank you! Tim Thank you ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] XCode Dependency for HP on Mac

2011-07-27 Thread Tim Cowlishaw
Platform and any other tools they need preinstalled. It means a bit of extra preparation, but it'll allow you to get to the interesting bit of the class more quickly and with less frustration on the part of both yourself and your students. Hope this helps. Chers, Tim

[Haskell-cafe] Idiomatic ways to make all instances of a certain class also instances of another?

2011-07-26 Thread Tim Cowlishaw
this, or should I not be doing this at all, and, if the latter, what would be the best means of achieving a similar result (i.e. a typeclass that implements all the functionality of one or more others, optionally with some additional specialism)? Many thanks, Tim

Re: [Haskell-cafe] Idiomatic ways to make all instances of a certain class also instances of another?

2011-07-26 Thread Tim Cowlishaw
similar. Many thanks, Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Cloud Haskell

2011-07-23 Thread Tim Cowlishaw
), but haven't yet implemented the part of the project that'll use it. I'd also be interested in anyone else's experiences with it as it seems like a fairly young project, and will try and write up some of my own once I've got a bit further with it! Thanks, Tim

[Haskell-cafe] haskell platform question

2011-06-07 Thread Tim Docker
? I imagine wanting to build the platform against bleeding edge ghc would be a pretty common desire. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] haskell platform question

2011-06-07 Thread Tim Docker
On 07/06/11 14:03, Brandon Allbery wrote: On Tue, Jun 7, 2011 at 07:34, Tim Dockert...@dockerz.net wrote: do others go about testing their code with many hackage dependencies against a new ghc? I would have expected that the first thing to do would be get the We don't, for the most part

Re: [Haskell-cafe] ANN: Leksah 0.10.0

2011-04-22 Thread Tim Sears
the types and then derive my program for me. :) I will be happy to fill out a few bug reports. Many Thanks Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Debugging with gdb?

2011-04-13 Thread Tim Chevalier
of debuggers that are more tailored to the process of debugging a functional program. Cheers, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt an intelligent person fights for lost causes,realizing that others are merely effects -- E.E. Cummings

Re: [Haskell-cafe] IO and Cont as monads

2011-04-13 Thread Tim Chevalier
my question is: Is there anyone who knows how to prove that IO and Cont are monads with satisfing following properties: IO doesn't obey the monad laws, due to the presence of seq in Haskell. Sad but true... Cheers, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt

[Haskell-cafe] ANNOUNCE: hplaylist-0.1

2011-04-09 Thread Tim Chevalier
, hplaylist allows me to type: $ hplaylist Songs about cheese which automatically copies the named playlist, and all music files included in the playlist, to my device. Download at: http://hackage.haskell.org/package/hplaylist-0.1 or https://github.com/catamorphism/hplaylist Cheers, Tim -- Tim

[Haskell-cafe] Introducing monad-embed

2011-02-12 Thread Tim Maxwell
to re-post it in haskell-cafe as well. Tim Maxwell ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Proving correctness

2011-02-12 Thread Tim Chevalier
are a rich enough language to let you express your intent in data and not just in code. That helps you help the compiler help you. Cheers, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt an intelligent person fights for lost causes,realizing that others are merely

Re: [Haskell-cafe] ($) not as transparent as it seems

2011-02-03 Thread Tim Chevalier
-simpl) for each variation? Cheers, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt an intelligent person fights for lost causes,realizing that others are merely effects -- E.E. Cummings ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] hsmagick on OSX 10.6

2011-02-03 Thread Tim Chevalier
is taking over maintainership of the library, so you may want to cc him on any emails. In general it's not too safe to assume that any particular library maintainer reads haskell-cafe regularly :-) Cheers, Tim (hsmagick maintainer) -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never

Re: [Haskell-cafe] ($) not as transparent as it seems

2011-02-03 Thread Tim Chevalier
arguments IIRC. (You can confirm this for yourself if you also want to read the demand analyzer output.) If ($) were getting inlined, the code would look the same coming into demand analysis in both cases, so you wouldn't see a difference. So I'm guessing you're compiling with -O0. Cheers, Tim

Re: [Haskell-cafe] Haskell for children? Any experience?

2011-01-31 Thread Tim Chevalier
to be programming in or what languages are practical. Sounds like a joy! Also, if you haven't, check out the book _Mindstorms_ by Seymour Papert -- the particular programming paradigm he advocates is different, but there should be some good fundamental ideas to inspire you. Cheers, Tim -- Tim Chevalier

Re: [Haskell-cafe] ANN: extcore 1.0

2011-01-18 Thread Tim Chevalier
On Sun, Jan 16, 2011 at 9:32 AM, Permjacov Evgeniy permea...@gmail.com wrote: On 01/13/2011 10:45 PM, Tim Chevalier wrote: Hello, I've recently released version 1.0 of extcore, a library for processing code in GHC's text-based External Core format. extcore includes a parser, prettyprinter

[Haskell-cafe] Building Haskell Platform on PowerPC?

2011-01-18 Thread Tim Chevalier
for a colleague who didn't have any version of GHC installed on his machine, and I just couldn't find a simpler way than installing two other versions of GHC first. Just curious if anyone has done it. I realize PPC is unsupported. Cheers, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error

Re: [Haskell-cafe] ANN: extcore 1.0

2011-01-15 Thread Tim Chevalier
On Thu, Jan 13, 2011 at 11:45 AM, Tim Chevalier catamorph...@gmail.com wrote: Hello, I've recently released version 1.0 of extcore, a library for processing code in GHC's text-based External Core format. extcore includes a parser, prettyprinter, typechecker, and interpreter for External Core

[Haskell-cafe] ANN: extcore 1.0

2011-01-13 Thread Tim Chevalier
. Please direct replies to glasgow-haskell-us...@haskell.org, with me CCed. Please make sure not to reply to hask...@haskell.org. Cheers, Tim Chevalier -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt an intelligent person fights for lost causes,realizing that others

Re: [Haskell-cafe] MonadRandom-computation that does not terminate

2011-01-12 Thread Tim Baumgartner
2011/1/12 Neil Brown nc...@kent.ac.uk On 11/01/11 23:19, Tim Baumgartner wrote: Hi, I'm having difficulties with this function I wrote: iterateR :: (MonadRandom m) = (a - m a) - a - m [a] iterateR g s = do s' - g s return (s:) `ap` iterateR g s' I'm running the computation

[Haskell-cafe] MonadRandom-computation that does not terminate

2011-01-11 Thread Tim Baumgartner
not terminate. Reproducible. Any clues what I'm doing wrong here? Thanks in advance, Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANN: Chart v0.14

2010-10-27 Thread Tim Docker
: http://dockerz.net/software/chart.html Thanks to Malcolm Wallace, Eugene Kirpichov, and Matt Brown for their contributions to this release. Tim Docker -- New features in v0.14 - * Plot Type: AreaSpots4D

[Haskell-cafe] HDF5

2010-10-26 Thread Tim Sears
Does anybody know of any utilities in haskell for reading and writing HDF5 files? Other number crunchy formats? Thanks.--Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-20 Thread Tim Matthews
I just want to throw out 2 extreme case solutions to think about while this problem doesn't really seem to be heading anywhere: 1) Drop the skills options in favor of the simple text box already in use. This would of course would have a big impact on attempting to search for haskellers. 2) A

[Haskell-cafe] Re: Return value of a (windows) process

2010-10-20 Thread Tim
[] (ExitFailure 2,,Usage: javac options so... Hope this helps. - Tim [1] System.Process http://haskell.org/ghc/docs/6.12.2/html/libraries/process-1.0.1.2/System-Process.html On Oct 19, 10:12 pm, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, I have the following code (fragment) I use

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-10 Thread Tim Matthews
The gravatars don't need to be on the front page but just on viewing the profile. Why not just a big list possibly in random order then sortable/searchable in various ways such as location, particular skills, etc. This site could potentially become useless to anyone who's years experience is less

Re: [Haskell-cafe] Candlestick charts

2010-09-27 Thread Tim Docker
://hackage.haskell.org/package/Chart doesn't currently have support for candlestick charts, but adding support would be straightforward - a patch would be most welcome (hint, hint!). Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Unified Haskell login

2010-09-19 Thread Tim Matthews
On Fri, Sep 17, 2010 at 6:47 PM, Michael Snoyman mich...@snoyman.comwrote: * OpenID. Fixes the extra password problem, but doesn't give us any extra information about the user (email address, etc). I have my open id with verisign. https://pip.verisignlabs.com/ Verisign doesn't give me an

Re: [Haskell-cafe] Memoization/call-by-need

2010-09-15 Thread Tim Chevalier
performance worse. Cheers, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc * Often in error, never in doubt Both of them are to world religions what JavaScript is to programming languages. -- Juli Mallett, on Satanism and Wicca ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-08 Thread Tim Matthews
it would tell that something with solid foundations and theory could still appear, hip and pretty. What is important though is the code. This is absolutely great and success just keeps getting harder to avoid. Thanks a lot, Tim Matthews ___ Haskell

[Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-05 Thread Tim Matthews
-hamlet fit in well and if so, as it often best to keep styles separate, could a quasi quoted language live in in a separate haskell module and then at run time it recreates the separate css files on first launch? Thanks Tim Matthews ___ Haskell-Cafe

Re: [Haskell-cafe] Anyone here from New Zealand?

2010-08-01 Thread Tim Matthews
On Sun, Aug 1, 2010 at 9:18 PM, Alistair Bayley alist...@abayley.orgwrote: On 24 July 2010 09:58, Hamish Mackenzie hamish.k.macken...@googlemail.com wrote: On 24 Jul 2010, at 02:15, Tim Matthews wrote: Any of the haskellers here from NZ? I am in Wellington, Stephen is near Palmerston

Re: [Haskell-cafe] Chart package segfaults when rendering to window

2010-08-01 Thread Tim Docker
to notice questions that arise there. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Microsoft's Singularity Project and Haskell

2010-07-31 Thread Tim Matthews
SPJ http://research.microsoft.com/en-us/people/simonpj/default.aspx and probably many others are actually employed at Microsoft research centers. It looks like Microsoft just hasn't been able to find a suitable spot to push Haskell. Haskell influenced F# because they needed a functional language

[Haskell-cafe] Anyone here from New Zealand?

2010-07-23 Thread Tim Matthews
. Anything even remotely similar here in New Zealand? Thanks Tim Matthews ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] hs-dotnet with Mono?

2010-07-11 Thread Tim Matthews
On Sun, Jul 11, 2010 at 4:06 PM, Brandon S Allbery KF8NH allb...@ece.cmu.edu wrote: The whole point of the .net CLR is that the implementation (Windows COM, Mono, etc.) is hidden; you work with the CLR directly, *not* the implementation behind it. True. At least for CLR code that only deals

Re: [Haskell-cafe] hs-dotnet with Mono?

2010-07-10 Thread Tim Matthews
A native-managed bridge for the clr while being cross platform is quite possible but unfortunately the developers of hs-dotnet reference ole32 and oleaut32 as extra libraries. This means that the code relies on the com/ole/activex layer in windows which is what Microsoft's implementation of the

Re: [Haskell-cafe] hs-dotnet with Mono?

2010-07-10 Thread Tim Matthews
found this http://linux.lsdev.sil.org/wiki/index.php/Libcom that you could try as a drop in replacement. Best of luck if you try this approach. Thanks Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] State of the Hackage: Q1, Q2 2010

2010-07-01 Thread Tim Wawrzynczak
That sounds like an excellent idea! If you would like some help, let me know and I would be glad to :) Cheers, - Tim On Thu, Jul 1, 2010 at 11:50 AM, Don Stewart d...@galois.com wrote: I think we need to standardise the presentation of this data, and provide a lib to access it. I'll think

Re: [Haskell-cafe] State of the Hackage: Q1, Q2 2010

2010-06-30 Thread Tim Wawrzynczak
for you. It may not be the most elegant, but it only took a few minutes and it does the job. You'll find it attached :) Cheers, - Tim On Wed, Jun 30, 2010 at 5:08 PM, Don Stewart d...@galois.com wrote: Downloads and popular packages on Hackage for Q1 and Q2 this year. http

Re: [Haskell-cafe] Using the ContT monads for early exits of IO ?

2010-06-10 Thread Tim Wawrzynczak
then exit $ return () else ... -- do whatever else here... Cheers, - Tim 2010/6/10 Günther Schmidt gue.schm...@web.de Hi everyone, I'm about to write a rather lengthy piece of IO code. Depending on the results of some of the IO actions I'd like the computation to stop right there and then. Now

Re: [Haskell-cafe] Using the ContT monads for early exits of IO ?

2010-06-10 Thread Tim Wawrzynczak
Actually, on second thought, Lennart is probably right. Continuations are probably overkill for this situation. Since not wanting to continue is probably an 'erroneous condition,' you may as well use Error. Cheers, - Tim 2010/6/10 Lennart Augustsson lenn...@augustsson.net I would not use

Re: [Haskell-cafe] Re: Using the ContT monads for early exits of IO ?

2010-06-10 Thread Tim Wawrzynczak
, if there are going to be multiple 'lengthy computations' then perhaps MaybeT or EitherT would be better, b/c they allow the propagation of failure across multiple actions, instead of cascading off to the right of the screen w/ 'if's or 'case's. Cheers, - Tim On Thu, Jun 10, 2010 at 3:21 PM, Ben Millwood

Re: [Haskell-cafe] Good US Grad schools for functional languages?

2010-05-17 Thread Tim Chevalier
Jones, Tim Sheard, and Sergio Antoy, all names that should be familiar to anyone who knows the functional programming literature. We have faculty members who have served as program chairs and general chairs for ICFP; who have given invited talks at ICFP; who have co-organized the ICFP programming

[Haskell-cafe] class Arbitrary in quickcheck

2010-05-05 Thread Tim Docker
) (Nothing, Just _) Why is this the case? Thanks, Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] class Arbitrary in quickcheck

2010-05-05 Thread Tim Docker
for the example. My question was why, when I generate random values for (Maybe t, Maybe t) using the Arbitrary type class, do I always see two Nothing values or two Just values, and never one of each? Tim ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Re: class Arbitrary in quickcheck

2010-05-05 Thread Tim Docker
news is that quickcheck 2.1 behaves as I expected. I'm still curious as to the behaviour of the older version. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] HDBC-ODBC and SqlValues

2010-04-08 Thread Tim Docker
to convert the result back to an appropriate numerical type. But internally the numeric data has still been converted to an intermediate string representation. I'm wondering if this is intentional, and whether it matters. Tim ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] HDBC-ODBC and SqlValues

2010-04-08 Thread Tim Docker
John Goerzen wrote: Tim Docker wrote: Yes. I can use fromSql to convert the result back to an appropriate numerical type. But internally the numeric data has still been converted to an intermediate string representation. I'm wondering if this is intentional, and whether it matters. Yes

[Haskell-cafe] HDBC-ODBC and SqlValues

2010-04-07 Thread Tim Docker
a sign of an incomplete implementation of the ODBC driver? It would certainly seem possible for the ODBC driver to return more specific types. Tim ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell-cafe] Re: Using Get monad to efficiently parse byte-stuffeddata

2010-03-24 Thread Tim Attwood
Going through the data using getWord8 is a no-go. It is just too slow. My solution so far has been to get the underlying bytestring and work with that, but obviously defeats the purpose of using the Get monad. What might be a better solution? hGetArray with IOUArrays goes perty fast.

Re: [Haskell-cafe] Lazy language on JVM/CLR

2010-02-09 Thread Tim Wawrzynczak
Perhaps this is similar to what you're looking for. http://openquark.org/Open_Quark/Welcome.html It's a pure, lazy language for the JVM. I haven't used it myself, but I would imagine that it would have a Java FFI. Cheers, - Tim On Mon, Feb 8, 2010 at 6:42 PM, Tony Morris tonymor...@gmail.com

Re: [Haskell-cafe] Lazy language on JVM/CLR

2010-02-09 Thread Tim Wawrzynczak
Eidhof ch...@eidhof.nl wrote: I don't think it's pure. I would definitely use a pure language on the JVM, but IIRC Open Quark / Cal is an impure language. For example, from the library documentation: printLine :: String - (). -chris On 9 feb 2010, at 15:31, Tim Wawrzynczak wrote: Perhaps

[Haskell-cafe] Re: Trapping getChar before echo

2010-02-01 Thread Tim Attwood
Last time I tried something like this [on Windows], it didn't seem to work. I wanted to trap arrow keys and so forth, but they seem to be being used for input history. (I.e., pressing the up-arrow produces previously-entered lines of text, and none of this appears to be reaching the Haskell

Re: [Haskell-cafe] Parsers for Text Adventures

2010-01-17 Thread Tim Wawrzynczak
Hi Mark, I recently ported Conrad Barski's 'Casting SPELs in Lisp' to Haskell (a text adventure game). I had some of these problems as well, and you can find my code on Hackage (the package is called Advgame). Some things in there might be of some help. Cheers, - Tim On Sun, Jan 17, 2010

Re: [Haskell-cafe] ANNOUNCE: Functional Programming Bibliography

2010-01-14 Thread Tim Wawrzynczak
At a quick glance, +5 Awesome. Cheers - Tim On Thu, Jan 14, 2010 at 3:03 PM, James Russell j.russ...@alum.mit.eduwrote: I am pleased to announce the Functional Programming Bibliography at http://www.catamorphism.net/ The functional programming bibliography was created in the hope

Re: [Haskell-cafe] ANNOUNCE: Functional Programming Bibliography

2010-01-14 Thread Tim Wawrzynczak
Oh also, I noticed that you say it's powered by Haskell. Would you mind sharing some of your architectural details as they relate to Haskell with us? On Thu, Jan 14, 2010 at 3:11 PM, Tim Wawrzynczak inforichl...@gmail.comwrote: At a quick glance, +5 Awesome. Cheers - Tim On Thu, Jan

[Haskell-cafe] consulting and contracting

2009-12-11 Thread Tim Newsham
and tools? Mostly related to academia? Spread out around several areas? Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] GHC core packages: same core?

2009-10-31 Thread Tim Chevalier
file a bug report or post to the glasgow-haskell-users list with me CCed. Cheers, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc * Often in error, never in doubt The higher you climb, the more you show your ass. -- Alexander Pope ___ Haskell-Cafe mailing

[Haskell-cafe] ANN: Advgame 0.1.1

2009-10-31 Thread Tim Wawrzynczak
. It works very similarly to his final program, except it can be run in a loop, instead of one function at a time. It's available at http://hackage.haskell.org/package/Advgame-0.1.1 if anyone is interested. Cheers, - Tim ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] AND/OR Perceptron

2009-10-29 Thread Tim Wawrzynczak
the fold over the allInputs list. Cheers, - Tim On Thu, Oct 29, 2009 at 2:27 PM, Hector Guilarte hector...@gmail.comwrote: Hi cafe, I'm trying to implement a Perceptron in Haskell and I found one in: http://jpmoresmau.blogspot.com/2007/05/perceptron-in-haskell.html (Thanks JP Moresmau

Re: [Haskell-cafe] why cannot i get the value of a IORef variable ?

2009-10-22 Thread Tim Wawrzynczak
! Be careful when using any function that starts with the word 'unsafe'! You may kill a kitten! And I guess this says something about using 'unsafe' functions... http://upload.wikimedia.org/wikipedia/en/1/11/God-kills-kitten.jpg (NSFW)... Cheers and sorry all, Tim On Thu, Oct 22, 2009 at 1:59 PM

Re: [Haskell-cafe] Simple but interesting (for me) problem

2009-10-21 Thread Tim Wawrzynczak
which is local to the next function (effectively creating a closure over it). Cheers, - Tim On Wed, Oct 21, 2009 at 12:34 PM, michael rice nowg...@yahoo.com wrote: There's a thread on the plt-scheme list about creating a function of NO arguments named NEXT that just returns the number of times

Re: [Haskell-cafe] Simple but interesting (for me) problem

2009-10-21 Thread Tim Wawrzynczak
Here's an example in the IO monad: import Data.IORef import System.IO.Unsafe counter = unsafePerformIO $ newIORef 0 next = do modifyIORef counter (+1) readIORef counter Naturally, this uses unsafePerformIO, which as you know, is not kosher... Cheers, - Tim On Wed, Oct 21, 2009 at 1:00

Re: [Haskell-cafe] Simple but interesting (for me) problem

2009-10-21 Thread Tim Wawrzynczak
will print [1,2,3] which is the result of calling 'foo' 3 times. But technically then, mkNext is just an IO action which returns an IO action ;) and not a function which will return the next value each time it is called, hence the need to extract the value from mkNext, then use it... Cheers, Tim

Re: [Haskell-cafe] Is there a null statement that does nothing?

2009-10-21 Thread Tim Wawrzynczak
constraint, there are the functions 'when' and 'unless.' They allow conditional evaluation of expressions in a monadic context. For example, main = do line - getLine when (line == hello) putStrLn Hello back! Cheers, - Tim On Wed, Oct 21, 2009 at 7:43 PM, michael rice nowg...@yahoo.com wrote

Re: [Haskell-cafe] Can this be done?

2009-10-01 Thread Tim Wawrzynczak
I was poking around once trying to find something like that and stumbled across this: http://wiki.cs.pdx.edu/forge/riviera.html Cheers, Tim On Wed, Feb 11, 2009 at 8:22 AM, Cristiano Paris cristiano.pa...@gmail.comwrote: I wonder whether this can be done in Haskell (see muleherd's comment

[Haskell-cafe] Re: Strange console IO behavior (at least on Windows)

2009-08-22 Thread Tim Attwood
Yeah, it's broken in windows. Here's the workaround courtesy of Alistar Bayley. (ticket 2189) {-# LANGUAGE ForeignFunctionInterface #-} import Data.Char import Control.Monad (liftM, forever) import Foreign.C.Types getHiddenChar = liftM (chr.fromEnum) c_getch foreign import ccall unsafe

Re: [Haskell-cafe] Planning for a website

2009-08-18 Thread Tim Wawrzynczak
I'd also give a read to this website: http://jekor.com/article/is-haskell-a-good-choice-for-web-applications Interesting read about a guy who actually used Haskell to create his website from the ground up. On Tue, Aug 18, 2009 at 9:56 AM, Colin Paul Adams co...@colina.demon.co.ukwrote: Jake

Re: [Haskell-cafe] Cont, ContT and IO()

2009-07-03 Thread Tim Wawrzynczak
Well, continuations come from Scheme, and by and large, they are usually used in languages like Scheme (i.e. PLT web server), or Smalltalk (Seaside web server), but they can be very useful in e.g. cases like yours for making a convenient way to make a local exit. I did this in one toy game

  1   2   3   4   5   >