Hello,
It looks like you are using GHC 6.10, which is now a pretty old
version of GHC. The latest version of the unix package on hackage
requires a more recent version of GHC. You could try to force an older
version of the unix library:
cabal install happstack-server --constraints 'unix
rom the Migrate class to migrate it to the latest type.
Does that make sense?
- jeremy
On Sun, Dec 19, 2010 at 10:58 AM, Dmitry V'yal wrote:
> On 17.12.2010 01:09, Jeremy Shaw wrote:
>>
>> Hello,
>>
>> You should use happstack-data for this (you do not need the
ttp://localhost:8000/Nomic/"; "" (nomicSite sh)
> ok $ toResponse html
> ]
>
>
> The red line doesn't compile. I don't know how to transform a
> RoutedNomicServer into a NomicSe
Hello,
The problem is that clients are not 'connected' to the web server. The
way it works (more or less) is:
1. client connects to server and sends a Request
2. server sends a Response
3. connection is terminated.
So, once the page has been loaded there is no connection between the
web
On Jan 16, 2011, at 9:26 PM, Tom Hawkins wrote:
I want to create a simple browser game using Haskell. It would be
nothing complicated: basic 2D graphics, limited sound, and minimal
network traffic.
What is the recommended medium? Flash or JavaScript+SVG?
I think your options are: flash or
On Jan 17, 2011, at 2:19 PM, Corentin Dupont wrote:
Indeed, I tried with ?
and it's unusable.
It make blink the page, ungrey the "stop" button for a second and
make the fields loose the focus
so it's impossible to type in.
I'll try with XMLHTTPRequest.
Right. Using the jQuery library sh
ackages.
>
>> cabal install digestive-functors-hsp
>
> cabal: Unknown build tool trhsx
>
> Whereas trhsx is in my PATH (under linux).
>
> You said I need the latest happstack from darcs, why?
>
> Cheers,
> Corentin
>
> On Sun, Jan 9, 2011 at 8:36 PM,
Web login password
> case mpn of
> Just pn -> do
> link <- showURL $ Noop pn
> seeOther link $ string "Redirecting..."
> Nothing -> seeOther ("/Login?status=fail" :: String) $ string
> "Redirecting..."
Hello,
The Chicago Haskell User Group will be meeting at the Pumping Station
One hackerspace this Thursday @ 8PM. This meeting coincides with a
regularly scheduled Haskell class at PS:One.
Among other things, we will discuss how to grow the local Chicago
Haskell user community, and a possible gro
quot;
> input ! type_ "submit" ! tabindex "3" ! accesskey "S" ! value "Enter
> Nomic!"
>
> And are decoded using a FromData:
>
> instance FromData LoginPass where
> fromData = do
> login <- look "login" `
On Wed, Jan 26, 2011 at 4:33 PM, Corentin Dupont
wrote:
> Now turning to digestive functors, I don't see where do goes the "A.action
> actionURL" part that was in traditionnal forms?
> It seems I need it for routing the result of the form.
I think you will find formHtml is returning you the stuf
Have you seen the PBKDF2 library?
http://hackage.haskell.org/package/PBKDF2
Does that look like a reasonable way to store passwords securely?
- jeremy
On Feb 5, 2011, at 8:12 PM, Peter Scott wrote:
The usual advice on how to store passwords securely is "use bcrypt",
but since there seem to
orthy of a Ph.D, and everything in between.
If you want to work, we can certainly find a way to use your talents!
There are also plenty of non-coding related tasks including
documentation, graphic design, user surveys, etc.
You are also encouraged to blog about your Happstack projects!
T
On Mar 11, 2011, at 4:39 PM, Victor Oliveira wrote:
Hi cafe,
There are a lot of http servers in hackage. I didn't have used none.
I would like to know if one of them is something closer of the nginx.
I need some light and fast. It don't need support all http, just the
basics is fine.
Sugges
Hello,
You might consider using safecopy, which explicitly supports the case
where the serialization format or the datastructure itself changes and
the data needs to be migrated to the new format?
http://acid-state.seize.it/safecopy
- jeremy
On Thu, Apr 28, 2011 at 10:00 AM, Evan Laforge wrote
Hello,
I am pleased to announce the release of two new libraries: boomerang
and web-routes-boomerang.
boomerang is a library for general purpose, invertible parsing and
pretty printing. It provides combinators which allow you to specify a
grammar once and automatically extract a parser and pretty
:)
I am only inclined to change it if there is a strong chance of people
wanting to use the boomerang name on hackage to refer to something
related to the harmony boomerang project..
- jeremy
On Thu, Jul 21, 2011 at 1:55 PM, Janis Voigtländer
wrote:
> Am 21.07.2011 20:45, schrieb Jeremy S
Awesome!
I believe MissingH includes some code that I contributed (or used to).
That can all be licensed BSD3.
- jeremy
On Wed, Aug 10, 2011 at 2:14 PM, John Goerzen wrote:
> Hello,
>
> I would like to announce new versions of the following:
>
> hslogger
> convertible
> HDBC
> HDBC-odbc
> HDBC-
When the robots take over, do you want them to be developed using a
sane language like Haskell or Agda? Or some dangerous untyped OO
language? I think the answer is obvious.
The question is, "How?". The robots will not be developed by us, but
by the children of today. So, we must reach thei
Hello,
I have just released a new library on hackage called ircbot. (Because
that is what Haskell really needs -- another irc bot library).
http://hackage.haskell.org/package/ircbot
A demo app is here:
http://patch-tag.com/r/stepcut/ircbot/snapshot/current/content/pretty/demo.hs
The demo i
If I have a list [a], and I want to make that persistence, then I have
to have some way to serialize values of type 'a'. If I then modify my
type, then the serialized structure will be out of sync with the new
version of the type -- so I will need some sort of migration feature.
safecopy addresses
On Tue, Nov 1, 2011 at 9:48 AM, Gary Klindt wrote:
> Hello all,
>
> I want to have a web application using one 'index.html' file with ajax
> requests and a happstack web server which response to server requests.
> For that purpose I need to use some javascript libraries in my directory
> tree. I t
I thought we already had a mascot?
http://www.haskell.org/pipermail/haskell/attachments/20090401/9fb8fa05/haskell-mascot.jpg
:p
- jeremy
On Tue, Nov 15, 2011 at 7:01 PM, heathmatlock wrote:
> I liked Go's mascot, and I figure it couldn't hurt to have our own. I spent
> the past hour making thi
I think the artwork is nice, but I am not sure that a lamb is an
appropriate mascot for Haskell.
A mascot is supposed to represent characteristics, emotions, or
desires that a particular group of people aspire to have, be like,
etc. To outsiders, it provides a quick way to see if it might be a
gro
Mirroring is a key feature of Hackage 2. But, Hackage 2 needs more
love before it can be released. More lovers would make it go faster
though!
- jeremy
On Thu, Dec 1, 2011 at 1:36 PM, Michael Litchard wrote:
> Does anyone know of a hackage mirror? It now occurs to me I should
> have a local mirr
At Fri, 23 Dec 2005 19:14:46 +,
Daniel Carrera wrote:
>
> Hi all,
>
> I'm taking a look at the "Computer Language Shootout Benchmarks".
>
> http://shootout.alioth.debian.org/
>
> It looks like Haskell doesn't do very well. It seems to be near the
> bottom of the pile in most tests. Is this
On Dec 26, 2005 08:55 PM, Donald Bruce Stewart <[EMAIL PROTECTED]>
wrote:
> pupeno:
> > It seems I have found a hole in Haskell... :(
> > Before I start to develop a library with functions such us those on
> > http://haskell.org/hawiki/BinaryIo (hGetWord8, hGetWord16le,
> > hGetWord16be,
> > etc)
On Dec 26, 2005 10:20 PM, Brian McQueen <[EMAIL PROTECTED]> wrote:
> How is this different from the (un)pickle process that has been
> discussed here recently?
There is one important difference in my mind. Most of the pickling code
is concerned with turning haskell data into a binary stream that
ions.hs 78
-| roundHint == RoundOneHalf && (lastIsEven d) = (Decimal s (coef + 1) exp)
+| roundHint == RoundOneHalf && (lastIsEven d) = (Decimal s (coef + 1) exp)
-- FIXME: this may be wrong, see pep327
Jeremy Shaw
At Fri, 10 Feb 2006 14:09:23 -0500,
Rob Tougher wrote:
>
> I'
At Thu, 11 May 2006 23:05:14 +0100,
Brian Hulley wrote:
> Of course the above could no doubt be improved but surely it is already far
> easier to understand and much more powerful than the idiosyncratic text
> based approach used in UNIX shells (including rc).
The idea of representing unix pip
At Wed, 17 May 2006 11:36:00 -0700,
Juan Carlos Arevalo Baeza wrote:
>Is there any known alternative that doesn't exhibit this behavior? It
> would have to somehow return errors inline or on a "side channel". I'll
> be toying with this sort of thing for a while.
You might try reading,
Poli
At Thu, 18 May 2006 02:37:56 -0700,
Juan Carlos Arevalo Baeza wrote:
>I'd be worried about the performance you can get from this
> breadth-first approach. I sort of like the fine-tuning control that the
> "try" approach gives in parsec. I'll finish the paper before giving this
> any more th
Hello,
You can do it -- but it may not be very useful in its current
form. The primary problem is, "What is the type of 'f'?"
> applyArgument f [arg] = f arg -- NOTE: I changed (arg) to [arg]
> applyArgument f (arg:args) = applyArgument (f arg) args
Looking at the second line, it seems that f i
Hello,
I really wanted to respond to the parent thread, but I deleted it
already, so this message will be a bit out of context.
For my own needs, I cabalized and debianized the Streams library. It
generates binary debs for ghc6 and hugs -- but I think the hugs
version is broken. In any case, it i
At Thu, 25 May 2006 13:42:11 +0400,
Bulat Ziganshin wrote:
>
> Hello Jeremy,
>
> Monday, May 22, 2006, 12:20:54 AM, you wrote:
>
> > For my own needs, I cabalized and debianized the Streams library. It
> > generates binary debs for ghc6 and hugs -- but I think the hugs
> > version is broken. In
At Tue, 27 Jun 2006 20:36:30 +0100,
Brian Hulley wrote:
> >>> What about words like 'hour' and 'honest'?
> > Don't forget "honor".
> So I'd say these two words are closely related, so the search is still on
> for another word with silent 'h' not related to time or integrity.
How about heir? Al
At Tue, 11 Jul 2006 19:28:13 +0400,
Bulat Ziganshin wrote:
>
> Hello Haskell,
>
> what is a best way to bring C constant (defined in header file) into
> the Haskell source?
If this ^^^ was your entire question, I would say, use hsc2hs.
http://haskell.org/ghc/docs/latest/html/users_guide/hs
At Wed, 12 Jul 2006 16:08:02 +0400,
Bulat Ziganshin wrote:
> I believe that it the simplest way for programmer. But is that the
> best way for users? i want to make building/installation as simple as
> possible using Cabal infrastructure. is it possible that some box will
> have Cabal, but not hsc
At Wed, 12 Jul 2006 10:57:54 -0700,
Chad Scherrer wrote:
>
> [1 ]
> [1.1 ]
> Hi,
>
> I'm interested in attending the Hackathon, but I don't have any previous
> experience working on compilers.
Perhaps we should start a list of pre-session recommended reading on
the wiki page? I would recommend
At Wed, 26 Jul 2006 23:07:36 +0200,
Udo Stenzel wrote:
> What does Emacs do with double separators? I'm at a loss thinking of
> anything they could denote, but it could be useful.
You mean like,
/path/to/somewhere//with/double/seperator
If so, it treats it as if you had typed in:
/with/double
At Sat, 29 Jul 2006 14:07:51 -0400,
Brian Sniffen wrote:
>
> I'm very excited by the ability to pass functions or IO actions
> between threads of the same program. But I don't see any language or
> library support for doing so between programs, or between sessions
> with the same program.
Ther
At Fri, 11 Aug 2006 21:39:24 +0400,
Ivan Tarasov wrote:
>
> [1 ]
> [1.1 ]
> Is there a console version of lambdabot? I compiled and installed it
> locally, but it seems to print out the IRC messages, not plain-text
> messages. Do I need to install a local IRC server or is it possible to
> switch
At Tue, 5 Sep 2006 03:03:51 + (UTC),
John Goerzen wrote:
>
> I have the below program, and I'm trying to run it on an input of about
> 90MB. It eats RAM like crazy, and I can't figure out why.
I have not looked in detail at your code -- but it could simply be the
fact that String requires go
At Mon, 04 Sep 2006 22:05:57 -0700,
Jeremy Shaw wrote:
>
> At Tue, 5 Sep 2006 03:03:51 + (UTC),
> John Goerzen wrote:
> >
> > I have the below program, and I'm trying to run it on an input of about
> > 90MB. It eats RAM like crazy, and I can't figure
At Wed, 13 Sep 2006 15:24:39 +0400,
Bulat Ziganshin wrote:
> because REAL code is somewhat larger than examples. try to rewrite the
> following:
>
> directory_blocks <- (`mapM` splitBy (opt_group_dir command)
> files_to_archive)
> ( \filesInOneDirectory -> do
> datablocks <- (`ma
;DisplayFile.lhs"
or, like this (same thing, different syntax)
displayFile3 :: IO ()
displayFile3 =
do c <- contents
putStrLn c
where
contents :: IO [Char]
contents = readFile "DisplayFile.lhs"
Jeremy Shaw
--
This message contains information wh
At 21 Oct 2004 16:48:57 +0200,
Peter Simons wrote:
>
> Hi,
>
> I know the stream processors as described in Hughes' paper
> about Arrows, but those are pure stream processors -- they
> don't allow for I/O, which I need to handle the Ptr.
Here is a some code I scraped off the net a while ago, thou
./setup register (? maybe not needed ?)
~ debianized
You should be able to build and install it like any other debian
package:
dpkg-buildpackage && debi
~ darcsized
darcs get http://www.n-heptane.com/nhlab/repos/NewBinary
I hope I am not stepping on anyone's toes or duplicating e
Hello,
This sounds vaguely like the encryption modulus problem dealt with in
this paper:
http://www.eecs.harvard.edu/~ccshan/prepose/prepose.pdf
"Function Pearl: Implicit Configurations -- or, Type Classes Reflect
the Values of Types".
Though, I have not thought about it too hard.
the point that I
could decode and play an mp3. Of course, all the actual decoding work
was being done in libmad, and haskell was just pulling the strings...
I can attempt to dig them up if that would suit your needs...
Jeremy Shaw.
--
This message contains information which may be confidential a
easy it is to get wrong:
http://www.underbit.com/resources/mpeg/audio/compliance/
The only *downside* of libmad I found is that it is GPL, not LGPL or
BSD. But, even then, they offer a commercial license, so...
I will attempt to get what I have online tomorrow...
Jeremy Shaw.
--
This message con
of the code too deeply ?
This paper may have some answers, though I don't if it addresses that
specific question:
Optimistic Evaluation: An adaptive evaluation strategy for non-strict programs
available at (among other places):
http://www.cl.cam.ac.uk/~rje33/icfp2003.pdf
Jeremy Shaw.
--
This me
s to explaining why
haskell has not yet succeeded (it even mentions haskell):
http://khason.biz/blog/2004/12/why-microsoft-can-blow-off-with-c.html
Jeremy Shaw.
--
This message contains information which may be confidential and privileged.
Unless you are the
addressee (or authorized to receive fo
At Fri, 03 Dec 2004 10:40:45 -0800,
Jeremy Shaw wrote:
>
> At Fri, 03 Dec 2004 10:56:24 -0500,
> Jason Bailey wrote:
> >
> >
> > Would anyone know of packages out there for Haskell that support mp3's
> > or ogg files?
>
> I have some haskell bindi
At Fri, 17 Dec 2004 10:48:34 -0600,
John Goerzen wrote:
> First, if someone were to make a working, useful package out of this, is
> it likely that it would become the "standard" (whatever that means) IO
> system in Haskell anytime in the near future? I ask because I don't
> want to put a lot of
ith a compiler extension
~ It could never be done
~ It could be done, but it would be a really horrible idea, and here's why
So don't hold back :)
Thanks!
Jeremy Shaw.
[1] I suppose by 'currently in scope' I mean all the instances that
type checker is considering when it
At Sun, 16 Jan 2005 12:09:43 +0100,
Lemmih wrote:
>
> On Sun, 16 Jan 2005 00:13:08 -0800, Jeremy Shaw
> <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Is it possible to write a function that would display all the instances
> > of a class currently in scop
ot;)
For what john asked, I usually do something like:
i <- textInputField (fieldVALUE "the default value")
Not sure if there is any advantage/disadvantage to that.
Jeremy Shaw.
--
This message contains information which may be confidential and privileged.
Unless you are the
a
I am making a wild guess because I do not have all the information in
front of me right now but would this work ?
... do x <- if cond
>then textInputField ...
>else return ()
note the addition of 'return' to the else clause ?
Jeremy Shaw.
On
e program starts, but no one
has figured out how to see that far into the future yet...
I hope this makes some sense (and I hope what I have said is reasonably
correct...)
Jeremy Shaw.
On May 02, 2005 09:38 PM, Daniel Carrera
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Again, I'
l for now, possibly
broken, and the source / binary package names it generates will be
changing soon. But the cabal stuff is reasonably up-to-date.)
Jeremy Shaw.
At Wed, 18 May 2005 12:05:02 +0400,
Bulat Ziganshin wrote:
>
> Hello Florian,
>
> Wednesday, May 18, 2005, 12:44:14 AM, y
Hello,
I have done all of those things in WASH. But, don't let that stop you
from writing something better :) I think some people started a project
to write a CGI interface based on a 'Category' -- where a 'Category'
is like an 'Arrow' without the 'pure/a
on't
have to rewrite everything later.
Thanks!
Jeremy Shaw.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
s
*only* inferred, then the user has to be very careful about ensuring
uniqueness if they want performance gains associated with it -- and
they have to do it without the help of the type-checker.
Having written a bit of clean code, I can say that it is very easy to
accidently un-uniquify things.
Jere
At Thu, 22 Dec 2005 11:26:51 +,
Joel Reymont wrote:
>
> Folks,
>
> I'm trying to monadify the pickler code. sequ below positively looks
> like >>= but you can't really join both pickle and unpickle into a
> single monad. I would like to keep the ops together, though, as this
> allows me
At Thu, 22 Dec 2005 21:08:15 +,
Joel Reymont wrote:
>
> Jeremy,
>
> This is a very nice library you've got but... It does not answer my
> question re: arrows and it still requires you to specify pickling and
> unpickling separately. I can have a single spec right now and would
> like to
hing for 'ocaml rectypes' on google groups turns up a number of
useful threads about the joys and dangers of allowing recursive types).
Jeremy Shaw.
At Wed, 3 Dec 2003 14:07:03 -0800,
Jeffrey A. Scofield <[EMAIL PROTECTED]> wrote:
>
> Greetings.
>
> Say I have the followin
preprocessor.
On the otherhand, there is nothing wrong with using a preprocessor,
and it can certainly save time. hsc2hs is included in the ghc source
tree, so that would probably be my first choice.
Jeremy Shaw.
At Thu, 15 Jan 2004 18:18:11 +0100,
Gour wrote:
>
> Hi!
>
> I'd like
cture, and function that writes the structure back
out.
I think, actually, that this could be done via template
haskell. (Maybe someone has even done this already...)
In any case, its just a daydream right now as I don't have time to
even think about designing something. :)
Jeremy Shaw.
At T
Hello,
I had very similar problems due to bugs in 6.2 that are fixed in cvs head. If you
build ghc out of cvs head that may fix your problem. If not, you can report the bug on
the [EMAIL PROTECTED] mailing list.
Jeremy Shaw.
On Feb 11, 2004 01:39 AM, Per Larsson <[EMAIL PROTECTED]>
putStrLn (show maybeChars)
NOTE: if you run this program under emacs it won't work quite right
because emacs will do line buffering, but the program excepts no
buffering.
I am not sure if there is a better way to do this or not. It seems
like a bit of a pain to have to keep using MaybeIO,
e desired, you could try
formatting the code like this instead:
main = runGraphics $
do w <- openWindow "Graphics" (300,300)
drawInWindow w (text(100,200) "Hello, world!")
k <- getKey w
closeWindow w
The type signature for $ is:
($) :
301 - 372 of 372 matches
Mail list logo