Re: [Haskell-cafe] ANN: Webwire 0.1.0, netwire 1.2.5

2011-09-16 Thread Daniel Patterson
I'm also excited to see examples. Even simple ones! Based on my understanding of FRP (which may have little bearing on what webwire actually does, just what I hope it does), what makes it really different is that it is relatively stateless itself - that's kind of the point, that you model your

Re: [Haskell-cafe] GHCI Feature Request: Last Successful Compilation State Saved

2011-08-30 Thread Daniel Patterson
Chris, this is amazing! One question - do you have support for tramping in and running ghci remotely (or would that be easy to add)? I primarily develop inside virtual-machines, so while the source code lives where emacs lives, all the libraries are installed inside the virtual-machine (and the

Re: [Haskell-cafe] GHCI Feature Request: Last Successful Compilation State Saved

2011-08-30 Thread Daniel Patterson
On Aug 30, 2011, at 1:15 PM, Christopher Done wrote: 1) You put all your source files on the server, too and then run the GHCi process under tramp and access the files via tramp. 2) Sounds like you'd prefer to keep your files local, which, I suppose means you want to send code to the server

Re: [Haskell-cafe] GHCI Feature Request: Last Successful Compilation State Saved

2011-08-27 Thread Daniel Patterson
That doesn't look very promising :( On Aug 27, 2011, at 5:31 PM, Daniel Fischer wrote: On Saturday 27 August 2011, 23:10:17, David Virebayre wrote: 2011/8/27 aditya siram aditya.si...@gmail.com: Hi all, I would like for the GHCI interpreter to save its environment before reloading a file

Re: [Haskell-cafe] Invitation to connect on LinkedIn

2011-08-14 Thread Daniel Patterson
lol. I don't know Andrew Smith. How about y'all? On Aug 14, 2011, at 12:32 PM, Andrew Smith B.Sc(Hons),MBA wrote: LinkedIn I'd like to add you to my professional network on LinkedIn. - Andrew Andrew Smith B.Sc(Hons),MBA Founder and CEO at VTRL - Value Technology Research Ltd

Re: [Haskell-cafe] Haskell syntax highlighting in a public blog

2011-08-08 Thread Daniel Patterson
On Aug 8, 2011, at 10:26 PM, Ivan Lazar Miljenovic wrote: On 9 August 2011 12:04, Arlen Cuss cel...@sairyx.org wrote: 9/08/2011 11:54 AM, Oscar Picasso kirjutas: Hi, Is there a public blog that that allow syntax highlighting of Haskell code? Are you talking about a plugin for a blog

Re: [Haskell-cafe] Make Show instance

2011-07-21 Thread Daniel Patterson
The documentation for the Show typeclass has this very example: http://hackage.haskell.org/packages/archive/base/latest/doc/html/Prelude.html#t:Show The summary? you need to define either showPrec or show, the latter of which is simpler, it is just a - String. So: instance Show (Tree Int Int)

Re: [Haskell-cafe] How to determine minimal dependency of package

2011-07-15 Thread Daniel Patterson
Based on the package versioning policy [1], A.B is a major version, so if you know that it works with 1.2, then it is reasonably safe to specify the range = 1.2 1.3, as no major api breaking changes should occur within the 1.2 range (ie, 1.2.1 to 1.2.2, etc) 1.

Re: [Haskell-cafe] Paid work available in functional web programming

2011-07-13 Thread Daniel Patterson
I also think it would be really good to have some documentation that explains the type system and how to do neat things with it in terms that a reasonably competent haskell / ML programmer could understand. I played around with Ur/Web about a year ago and was able to make a simple

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-08 Thread Daniel Patterson
Forgot to cc the list On Jul 8, 2011, at 11:20 AM, Daniel Patterson wrote: On Jul 8, 2011, at 3:51 AM, Heinrich Apfelmus wrote: Jason Dagit wrote: Heinrich Apfelmus wrote: Do you know any *small GUI programs* that you would *like* to see *implemented with Functional Reactive Programming

Re: [Haskell-cafe] Help

2011-06-27 Thread Daniel Patterson
] - [a] *** Does not match : [String] - Int I'm still breaking down somewhere ... 2011/6/25 Daniel Patterson lists.hask...@dbp.mm.st: what haskell compiler are you using? And what does the include line do? That does not look like a GHC error message (the only compiler I'm familiar

[Haskell-cafe] Fwd: Data.Time

2011-06-27 Thread Daniel Patterson
sent from wrong account - message follows: I've found most of the time library to be quite useful, but the parsing to be worthless (I've tried to get someone to prove me wrong already, and would be happy if someone could on this thread!). Specifically, the formatTime function, if it ever

Re: [Haskell-cafe] Help

2011-06-27 Thread Daniel Patterson
Daniel Patterson lists.hask...@dbp.mm.st: so think about the high level design for a second, and let that guide the types. then the types should guide the code. p, which I assume is the top level evaluation, is supposed to take a list of strings, and produce a list of integers (the result

Re: [Haskell-cafe] Help

2011-06-24 Thread Daniel Patterson
What have you tried to do in order to make it work for the list, and what error results? What is confusing about the error message? More generally, how could you transform an operation on a single string into one that does the same thing to a list of strings? You've probably talked about higher

Re: [Haskell-cafe] Help

2011-06-24 Thread Daniel Patterson
[] = [] parse (x:xs) = eval (x:xs) The error from the compiler: ERROR file:.\list.hs:3 - Syntax error in declaration (unexpected `;', possibly due to bad layout) On Fri, Jun 24, 2011 at 11:20 PM, Daniel Patterson lists.hask...@dbp.mm.st wrote: What have you tried to do in order to make

Re: [Haskell-cafe] toSql and fromSql, for Algebraic Data Type

2011-06-24 Thread Daniel Patterson
(forgot to CC the list) On Jun 24, 2011, at 8:27 PM, Daniel Patterson wrote: It looks, from looking at the provided instances (not from having done it myself), that you need to define safeConvert functions to and from your value. Here is a partial list of conversions to and from String

Re: [Haskell-cafe] Simple CSV parser?

2011-06-16 Thread Daniel Patterson
Do any of the ones on hackage work for you? http://hackage.haskell.org/package/csv-0.1.2 http://hackage.haskell.org/package/bytestring-csv http://hackage.haskell.org/package/csv-enumerator (note: hackage supports search via google it works reasonably well) On Jun 16, 2011, at 5:21 PM,

Re: [Haskell-cafe] Simple CSV parser?

2011-06-16 Thread Daniel Patterson
That was my (lazy) fault. I saw the name and (faultily) assumed that it provided functionality on top of another CSV parser. On Jun 16, 2011, at 5:33 PM, Henning Thielemann wrote: On Thu, 16 Jun 2011, Daniel Patterson wrote: Do any of the ones on hackage work for you? http

Re: [Haskell-cafe] Please help : Data.Time.Format parseTime

2011-06-15 Thread Daniel Patterson
As a more general response, be careful with parsing dates, because as far as I can tell, it is easy to print times (with formatTime) that cannot be parsed (with parseTime). Specifically, if you strip the padding (of zeros or spaces) there is no way to parse it back in. So parseTime . formatTime

Re: [Haskell-cafe] Simple string tokenizer?

2011-06-15 Thread Daniel Patterson
Would this work? http://hackage.haskell.org/packages/archive/split/0.1.4/doc/html/Data-List-Split.html On Jun 15, 2011, at 12:21 PM, Dmitri O.Kondratiev wrote: Sorry if this question was asked billions of times already, but I can not find a simple string tokenizer. All I need is to split a

Re: [Haskell-cafe] Class and Instance

2011-06-11 Thread Daniel Patterson
The problem is that [] alone is not a concrete type - that is what the error is saying, that [] needs to be applied to another type to yield a concrete type. IE, you need a list of something, not just the idea of a list. That something can be polymorphic, so the following works (note the [a]):

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread Daniel Patterson
(I originally sent this reply from the wrong address, see below) On Jun 9, 2011, at 11:03 AM, Daniel Patterson wrote: Also if you are doing this for web, I haven't used it personally (yet), but http://www.mathjax.org/ looks really good... would allow you to actually just write it in LaTeX

Re: [Haskell-cafe] *GROUP HUG*

2011-05-24 Thread Daniel Patterson
On May 24, 2011, at 4:46 AM, Ketil Malde wrote: Replying with a pointer to 'catMaybes' resulted in (most likely) the author going off to finish/improve his program, and some more interesting discussion on alternative ways to do this. What's more, the thread added many other possible

Re: [Haskell-cafe] The Lisp Curse

2011-05-19 Thread Daniel Patterson
Correct my ignorance as I'm rather new around here, but I'm not sure if I actually think this happens that much. Different approaches are often put forth, which does mean that there are incompatible libraries that fill the same space for a while, but it seems that once it becomes clear what

Re: [Haskell-cafe] Server hosting

2011-05-07 Thread Daniel Patterson
I've had good experiences with prgmr VPSes; I currently have a 1024MB VPS that I'm paying $16 a month for (the month by month rate is $20, but I'm paying for it yearly). You can also grab a 256MB VPS for $8 month by month or $6.40 yearly, if that'd be enough. In the last year I think there was

Re: [Haskell-cafe] test driving cabal install... cabal install and normal install (runghc Setup) don't mix... two package.conf files...

2008-05-29 Thread Daniel Patterson
I think you need to install HAppS-Data etc globally... I'm not sure why locally installed (ie, only your user) packages wouldn't be picked up by runghc Setup.hs'ing, but if they are install system wide it should definitely work. I think it is cabal --global install foo On Thu, 29 May 2008

[Haskell-cafe] ANN: HSmugMug 0.1 - a haskell wrapper to the photo site smugmug's api

2008-05-27 Thread Daniel Patterson
Released May 27th, 2008. I've been working for a little while on a haskell wrapper to the photo hosting site Smugmug's api. As of now, the library is pretty simple - it is 'read-only' - ie, you can't use it to upload to or create galleries, but I still think it is potentially useful to