Re: [Haskell-cafe] [web-devel] http-enumerator: users?

2012-04-20 Thread Michael Litchard
If no one else wants to be responsible for maintaining, I vote for deprecation. On Thu, Apr 19, 2012 at 2:33 AM, Michael Snoyman mich...@snoyman.com wrote: Hi all, I'm wondering if there are still active users out there of http-enumerator. Four months ago I released http-conduit, and since

Re: [Haskell-cafe] bindings for libvirt

2012-01-23 Thread Michael Litchard
Ilya, Yes please. Examining your code would go a long way toward helping me with this project. On Mon, Jan 23, 2012 at 9:26 PM, Ilya Portnov port...@iportnov.ru wrote: On 16 янв, 03:27, Michael Litchard mich...@schmong.org wrote: Due to the direction things are going at work, I have

[Haskell-cafe] bindings for libvirt

2012-01-15 Thread Michael Litchard
Due to the direction things are going at work, I have become interested in Haskell bindings for libvirt. Noticed that this hasn't been done yet. I was wondering if this was due to lack of motivation, or if there were some difficult hurdles with libvirt that make the project cost-prohibitive. If

Re: [Haskell-cafe] bindings for libvirt

2012-01-15 Thread Michael Litchard
That's encouraging! On Sun, Jan 15, 2012 at 1:41 PM, Erik de Castro Lopo mle...@mega-nerd.com wrote: Michael Litchard wrote: Due to the direction things are going at work, I have become interested in Haskell bindings for libvirt. Noticed that this hasn't been done yet. Interesting! I

[Haskell-cafe] What happens if you get hit by a bus?

2011-12-16 Thread Michael Litchard
I'm learning what it means to be a professional Haskell programmer, and contemplating taking on side jobs. The path of least resistance seems to be web applications, as that is what I do at work. I've been investigating what some web developers have to say about their trade. One article addresses

Re: [Haskell-cafe] What happens if you get hit by a bus?

2011-12-16 Thread Michael Litchard
Yes! I could cite the large and growing set of libraries on hackage as evidence. On Fri, Dec 16, 2011 at 7:40 AM, Colin Adams colinpaulad...@gmail.com wrote: I would think there were plenty of Haskell programmers ready to jump in as replacements. On 16 December 2011 15:37, Michael Litchard

Re: [Haskell-cafe] Hackage down!

2011-12-01 Thread Michael Litchard
Does anyone know of a hackage mirror? It now occurs to me I should have a local mirror, it's that essential. On Thu, Dec 1, 2011 at 9:24 AM, Malcolm Wallace malcolm.wall...@me.com wrote: And, amusingly,  http://downforeveryoneorjustme.com/ is also down, having exceeded its Google App Engine

[Haskell-cafe] What is the etiquette for posting to multiple forums?

2011-10-21 Thread Michael Litchard
I know it's bad form to post the same question to multiple mailing lists. But what about say, the beginner's mailing list and stackoverflow.com? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] pattern matching instead of prelude.head

2011-09-15 Thread Michael Litchard
Someone commented on StackOverflow that pattern matching the first element of a list was preferable to head. This makes sense intuitively. Could someone articulate the reason why this is true? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] *GROUP HUG*

2011-06-02 Thread Michael Litchard
I disagree. I'm by no means proficient in Haskell. And, I never bothered learning PHP. I will when I need to. PHP programmers are a dime a dozen. It's been my experience that Haskell is a tool one may use to distinguish oneself from the hoi-poloi. This is important when you live in an area where

Re: [Haskell-cafe] *GROUP HUG*

2011-06-02 Thread Michael Litchard
Haskell.  I basically never use it at work, but I did in my old job. Dave On Thu, Jun 2, 2011 at 2:23 PM, Michael Litchard mich...@schmong.org wrote: I disagree. I'm by no means proficient in Haskell. And, I never bothered learning PHP. I will when I need to. PHP programmers are a dime a dozen

Re: [Haskell-cafe] *GROUP HUG*

2011-05-23 Thread Michael Litchard
The community plays a large part of why I am using Haskell professionally. The Haskell ecosystem is first-rate all by itself, but I would have been dead in the water months ago without the community. On Mon, May 23, 2011 at 10:10 PM, Gregory Crosswhite gcr...@phys.washington.edu wrote: Hey

[Haskell-cafe] request for example code referenced in All About Monads

2011-05-11 Thread Michael Litchard
The html version of All About Monads has dissapeared, so I am making due with the pdf version. As a consequence I don't have access to the example code files referenced. I know someone out there has them. Could you make them available please? ___

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-25 Thread Michael Litchard
. On Tue, Apr 19, 2011 at 4:45 PM, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Wednesday 20 April 2011 01:22:20, Michael Litchard wrote: So what else can I try? $ cabal install -v3 monad-control That should give some hints at which point exactly things fail

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-25 Thread Michael Litchard
the building phase. The exception was: ExitFailure 1 How do I clear up this ambiguity? On Mon, Apr 25, 2011 at 1:24 PM, Michael Litchard mich...@schmong.org wrote: I started mindlessly pasting in the output, and the following lept out at me: , package authenticate-0.8.2.2

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-25 Thread Michael Litchard
So it appears this is a bug with JSONb-1.0.2. There's a new version out. IS the answer to use that, or to patch this version? On Mon, Apr 25, 2011 at 1:48 PM, Michael Litchard mich...@schmong.org wrote: Following the install trail I run into this problem mlitchard@apotheosis:~$ cab install

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-25 Thread Michael Litchard
I think something that yesod uses, uses JSONb. Also, I think I have borked my haskell environment to the point where it may be best to zap it and start over. On Mon, Apr 25, 2011 at 3:05 PM, Rogan Creswick cresw...@gmail.com wrote: On Mon, Apr 25, 2011 at 2:44 PM, Michael Litchard mich

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-25 Thread Michael Litchard
Oh yeah, this began while trying to install by hand authenticate-0.8.2.2 On Mon, Apr 25, 2011 at 3:10 PM, Michael Litchard mich...@schmong.org wrote: I think something that yesod uses, uses JSONb. Also, I think I have borked my haskell  environment to the point where it may be best to zap

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-25 Thread Michael Litchard
In case this ever gets googled ... I'm pretty sure this problem had to do with my environment. I removed $HOME/.cabal and $HOME/.ghc, and upgraded to the latest stable haskell platform. yesod 0.8 has installed fine. I'm not sure what the exact problem was however.

[Haskell-cafe] errors while installing yesod 0.8

2011-04-19 Thread Michael Litchard
Trying to install yesod 0.8 breaks when it's time to install monad-control. Google wasn't very helpful, nor was the error message I received mlitchard@apotheosis:~/monad-control$ cabal install Resolving dependencies... Configuring monad-control-0.2.0.1... cabal: Error: some packages failed to

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-19 Thread Michael Litchard
be the problem it seems like a simple enough fix. On Tue, Apr 19, 2011 at 2:41 PM, Michael Snoyman mich...@snoyman.com wrote: I haven't seen this error. What version of GHC are you using, and what OS? Michael On Wed, Apr 20, 2011 at 12:18 AM, Michael Litchard mich...@schmong.org wrote: Trying

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-19 Thread Michael Litchard
it did not install in the $HOME/.cabal/ path. How do make sure it does that? I think if I can get it to install in the right place this will work out. On Tue, Apr 19, 2011 at 2:52 PM, Rogan Creswick cresw...@gmail.com wrote: On Tue, Apr 19, 2011 at 2:18 PM, Michael Litchard mich...@schmong.org wrote

Re: [Haskell-cafe] errors while installing yesod 0.8

2011-04-19 Thread Michael Litchard
install yesod. This is the original error I received. So what else can I try? On Tue, Apr 19, 2011 at 3:30 PM, Rogan Creswick cresw...@gmail.com wrote: On Tue, Apr 19, 2011 at 3:10 PM, Michael Litchard mich...@schmong.org wrote: New information, may be helpful. I manually installed hamlet 0.8

[Haskell-cafe] working off a Yesod example file, need help lifting values from one monad into another. (and probably other things too).

2011-03-28 Thread Michael Litchard
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101

Re: [Haskell-cafe] working off a Yesod example file, need help lifting values from one monad into another. (and probably other things too).

2011-03-28 Thread Michael Litchard
, Michael Litchard mich...@schmong.org wrote: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

Re: [Haskell-cafe] windows network programming

2011-01-20 Thread Michael Litchard
Schweinsberg m...@n-sch.de wrote: Am 02.11.2010 19:57, schrieb Michael Litchard: got any urls with examples? Sure, see this short server-client-ping-pong application. By the way, I noticed that you don't need withSocketsDo on windows 7, but I guess it's there for a reason for older windows

Re: [Haskell-cafe] windows network programming

2011-01-20 Thread Michael Litchard
- connectTo localhost (PortNumber 8000) hSetBuffering handle LineBuffering hPutStrLn handle ping incoming - hGetLine handle putStrLn ( ++ incoming) On Thu, Jan 20, 2011 at 6:17 PM, Michael Litchard mich...@schmong.orgwrote: I tried this as an example and got the following error

[Haskell-cafe] Question concerning Network.Curl.Opts

2011-01-14 Thread Michael Litchard
I'm having trouble passing header strings properly, and I'd like some advice on how to proceed. Below is a capture of what is being sent, versus what I am trying to send. I won't include all code, only what I think is necessary. If I have omitted something important, please let me know. How could

[Haskell-cafe] questions about network.curl/ web client programming

2011-01-13 Thread Michael Litchard
I'm learning both haskell and web programming as I go here, this question entails both. I'm writing a screen scraping program, and I'm at the point where I need to send certain data in the header. My question is, is that what method_HEADER is for? If so, could I see an example? If not, how does

[Haskell-cafe] ghci seg faulting, have no idea why.

2011-01-12 Thread Michael Litchard
this just started happening, don't know why. Could anyone offer suggestions, troubleshooting methods? ghci GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ...

Re: [Haskell-cafe] ghci seg faulting, have no idea why.

2011-01-12 Thread Michael Litchard
are you using? On Jan 12, 2011 8:08 PM, Michael Litchard mich...@schmong.org wrote: this just started happening, don't know why. Could anyone offer suggestions, troubleshooting methods? ghci GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking

Re: [Haskell-cafe] ghci seg faulting, have no idea why.

2011-01-12 Thread Michael Litchard
Oh, and the distro would be Debian (whatever the latest stable is) On Wed, Jan 12, 2011 at 7:10 PM, Michael Litchard mich...@schmong.orgwrote: Linux kether 2.6.26-2-xen-amd64 #1 SMP Thu Sep 16 16:32:15 UTC 2010 x86_64 GNU/Linux This was working fine for quite awhile, then broke. Also, I

Re: [Haskell-cafe] ghci seg faulting, have no idea why.

2011-01-12 Thread Michael Litchard
ghc-pkg check seems fine On Wed, Jan 12, 2011 at 7:47 PM, Paulo Tanimoto ptanim...@gmail.com wrote: Nothing wrong from: $ ghc-pkg check ? On Wed, Jan 12, 2011 at 9:11 PM, Michael Litchard mich...@schmong.org wrote: Oh, and the distro would be Debian (whatever the latest stable

Re: [Haskell-cafe] ghci seg faulting, have no idea why.

2011-01-12 Thread Michael Litchard
-previous.html?sid=93c638d029aac6ffe40df2c6b86684ce which led me here http://trac.haskell.org/haskeline/ticket/105 Thank you intarwebs, and haskell-cafe! tl;dr try changing your TERM environment variable to xterm. On Wed, Jan 12, 2011 at 8:18 PM, Michael Litchard mich...@schmong.orgwrote: ghc-pkg

[Haskell-cafe] ghci 6.12.3 segfaults for reasons unknown to me.

2011-01-10 Thread Michael Litchard
mlitch...@kether:~/projects/perf/autoperf/session_creator/newtry2/strings$ ghci -v GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help Glasgow Haskell Compiler, Version 6.12.3, for Haskell 98, stage 2 booted by GHC version 6.8.2 ghci was working a few weeks ago. I may have hidden a

[Haskell-cafe] Re: borked windows environment, want to start over

2010-11-18 Thread Michael Litchard
On Tue, Nov 16, 2010 at 4:39 PM, Michael Litchard mich...@schmong.org wrote: I think I may have borked things good using cygwin. I want to remove it and do a clean install of haskell platform w/out cygwin. What do I need to do to make sure all configuration files have been removed? Hmm, I

[Haskell-cafe] borked windows environment, want to start over

2010-11-16 Thread Michael Litchard
I think I may have borked things good using cygwin. I want to remove it and do a clean install of haskell platform w/out cygwin. What do I need to do to make sure all configuration files have been removed? ___ Haskell-Cafe mailing list

[Haskell-cafe] RegEx versus (Parsec, TagSoup, others...)

2010-11-12 Thread Michael Litchard
I've been working on a project that requires me to do screen scraping. When I first started this, I worked off of other people's examples. Not one used regex. By luck I found someone at work to help me along this project. His clues and hints don't use regex either. I was at a point where I had to

Re: [Haskell-cafe] windows network programming

2010-11-02 Thread Michael Litchard
got any urls with examples? On Tue, Nov 2, 2010 at 12:17 AM, Nils Schweinsberg m...@n-sch.de wrote: Am 02.11.2010 01:20, schrieb Paulo Tanimoto: http://hackage.haskell.org/package/network You just have to remember that you need to call withSocketsDo on windows before doing anything with the

[Haskell-cafe] trying to use Tag Soup - fromAttrib

2010-11-02 Thread Michael Litchard
I have the following TagOpen [TagOpen a [(href,/launchWebForward.do?resourceId=4policy=0returnTo=%2FshowWebForwards.do)]] I would like to get the attribute resourceId=4 from that. My understanding is that fromAttrib is the right thing to use. But I'm having difficulty understanding the type

Re: [Haskell-cafe] trying to use Tag Soup - fromAttrib

2010-11-02 Thread Michael Litchard
(with the constraints in parenthesis to the left) and one str of type Tag, giving back a str. Then I look at the above code sample and can't match the two up. On Tue, Nov 2, 2010 at 2:23 PM, Daniel Fischer daniel.is.fisc...@web.de wrote: On Tuesday 02 November 2010 22:17:48, Michael Litchard

Re: [Haskell-cafe] trying to use Tag Soup - fromAttrib

2010-11-02 Thread Michael Litchard
Ah thank you. I can go ahead and figure out how to parse that string. Using a regex is tempting but I have a feeling I can get something more maintainable if I use another approach. On Tue, Nov 2, 2010 at 2:52 PM, Daniel Schoepe daniel.scho...@googlemail.com wrote: Excerpts from Michael

[Haskell-cafe] problems installing latest parsec

2010-11-02 Thread Michael Litchard
Here's what cabal says I have installed * parsec Synopsis: Monadic parser combinators Latest version available: 3.1.0 Latest version installed: 2.1.0.1 Homepage: http://www.cs.uu.nl/~daan/parsec.html License: BSD3 but here is what happens when I try to upgrade cabal

Re: [Haskell-cafe] problems installing latest parsec

2010-11-02 Thread Michael Litchard
thanks, it seems to be fine now. On Tue, Nov 2, 2010 at 5:04 PM, Daniel Fischer daniel.is.fisc...@web.de wrote: On Wednesday 03 November 2010 00:46:13, Michael Litchard wrote: Here's what cabal says I have installed * parsec     Synopsis: Monadic parser combinators     Latest version

[Haskell-cafe] windows network programming

2010-11-01 Thread Michael Litchard
I took a quick look on hackage for an interface to windows networking function calls, and didn't find anything that worked. I may have overlooked something. What's the state of windows network programming? Any recommendations for a good package? ___

[Haskell-cafe] tried to use the example given in the source of network.browser

2010-10-22 Thread Michael Litchard
This is what is in HTTPbis/Network/Browser.hs do rsp - Network.Browser.browse $ do setAllowRedirects True -- handle HTTP redirects request $ getRequest http://google.com/; fmap (take 100) (getResponseBody rsp) And how I changed it slightly to test

[Haskell-cafe] playing around with network.curl - redub

2010-10-21 Thread Michael Litchard
My current problem is how to pass around the cookie jar. I need to gather cookies, while establishing a session. Could someone provide an example? I've messed about with CurlCookieFile and CurlCookieJar, to no avail. I'll provide my failed attempt if needed. I'm using https, if it makes a

[Haskell-cafe] suspected problem with network.curl version 1.3.5

2010-10-21 Thread Michael Litchard
Here's my code, I'm pretty sure I am doing this right. The problem seems to be with method_POST. I tried to duplicate manually, but I'm not sure I used command line curl correctly. Take a look at the output below. import Network.Curl import System (getArgs) import Text.Regex.Posix -- |

[Haskell-cafe] playing around with network.curl

2010-10-20 Thread Michael Litchard
I'm using this tutorial as a guide http://flygdynamikern.blogspot.com/2009/03/extended-sessions-with-haskell-curl.html github has changed since this was posted, but I have managed a successful login. Now I am faced with dealing with a re-direct. I found this constructor CurlFollowLocation Bool

Re: [Haskell-cafe] playing around with network.curl

2010-10-20 Thread Michael Litchard
else head l (_,_,_,xs) = body =~ github\\.token (.+) :: (String, String, String,[String]) On Wed, Oct 20, 2010 at 4:33 PM, Paulo Tanimoto ptanim...@gmail.com wrote: Hi Michael, On Wed, Oct 20, 2010 at 6:19 PM, Michael Litchard mich...@schmong.org wrote: I'm using

[Haskell-cafe] help me evangelize haskell.

2010-09-04 Thread Michael Litchard
I'll be starting a new job soon as systems tool guy. The shop is a perl shop as far as internal automation tasks go. But I am fortunate to not be working with bigots. If they see a better way, they'll take to it. So please give me your best arguments in favor of using haskell for task automation

Re: [Haskell-cafe] help me evangelize haskell.

2010-09-04 Thread Michael Litchard
, or a string instead of an int). One day, however, it WILL fail. Haskell finds these types of bugs upfront, and not when your pager goes off at 3am... Cheers, G --Original Message-- From: Michael Litchard Sender: haskell-cafe-boun...@haskell.org To: haskell-cafe@haskell.org Subject

[Haskell-cafe] Warning: Module `Prelude' is deprecated:

2010-08-26 Thread Michael Litchard
So lately when I use cabal to install something get Text/CSV.hs:1:0: Warning: Module `Prelude' is deprecated: You are using the old package `base' version 3.x. Future GHC versions will not support base version 3.x. You should update your code to

Re: [Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-20 Thread Michael Litchard
:05 PM, Michael Litchard mich...@schmong.org wrote: I'd like the community to give me feedback on the difficulty level of implementing an awk interpreter. What language features would be required? Specifically I'm hoping that TH is not necessary because I'm nowhere near that skill level

[Haskell-cafe] feasability of implementing an awk interpreter.

2010-08-19 Thread Michael Litchard
I'd like the community to give me feedback on the difficulty level of implementing an awk interpreter. What language features would be required? Specifically I'm hoping that TH is not necessary because I'm nowhere near that skill level. An outline of a possible approach would be appreciated. I

[Haskell-cafe] unusual behavior from cabal

2010-07-16 Thread Michael Litchard
Not sure what the correct list is for this observation. I was trying to install gitit, and here is what happened. mich...@michael:~/haskell/blog-example$ cabal install gitit Resolving dependencies... cabal: dependencies conflict: happstack-server-0.5.1 requires time ==1.1.4 however time-1.1.4 was

[Haskell-cafe] offtopic - installing archlinux as a domU

2010-06-23 Thread Michael Litchard
supportive haskell environment than my current OS. Could someone point me to some updated documentation on this process? Much thanks. Michael Litchard ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

[Haskell-cafe] astronomy projects in haskell

2009-04-22 Thread Michael Litchard
I remember reading some website, that dons (probably) posted once. I'd like to find them again for a report I'm doing. So, if you know of any astronomy websites that talk about projects using haskell, please let me know. thanks Michael Litchard

[Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-10 Thread Michael Litchard
. Michael Litchard On Tue, Feb 10, 2009 at 6:26 AM, Malcolm Wallace malcolm.wall...@cs.york.ac.uk wrote: Gentle Haskellers, The Google Summer of Code will be running again this year. Once again, haskell.org has the opportunity to bid to become a mentoring organisation. (Although, as always

[Haskell-cafe] Graham-Scan Algorithm exercise from Chapter 3 Real World Haskell

2009-01-19 Thread Michael Litchard
any help/hints Michael Litchard *It seems the wikipedia page on the graham scan algorithm is wrong concerning the following part of the algorithm. ...instead, it suffices to calculate the tangent of this angle, which can be done with simple arithmetic. Someone from #haskell said that it's