Hi Patrick
I think the problem is because PCRE uses c++, and doing a quick web
search shows that _impure_ptr link errors are a recurrent problem for
the PCRE binding with GHC. Funnily enough 6.10.3 worked fine - I
posted to the list a month or two ago with instructions how to do it,
but 6.12.1
[Please excuse me if I seem to be a bit frustrated. I am. I have
tried to transcribe a live Haskell platform installation session, but
I don't remember details of my past attempts to get cabal working. If
you have any questions: shoot.]
Hi
I've been trying to install GHC and some libraries on
2009/12/27 Stephen Tetley stephen.tet...@gmail.com:
I'll try next with MinGW to see if that works...
Aye, it builds fine under MinGW.
I built and installed PCRE (c c++ library) from the source
(./configure, make, make install), though I think there is a package
available on the msys / MinGW
Hi All,
I recently came across the paper titled Monadic Parser Combinators - After
going through it a few times, I think I am beginning to understand monads.
However, the parser developed in the paper does not generate an AST - I feel,
I'd grasp the whole thing a lot better if I could go over a
Hi Kashyap
Algebraic data types in Haskell and other modern functional languages
are so convenient for describing syntax trees that you don't have need
for a 'tree builder' vis-a-vis Java Tree Builder or JJTree that you
might use in Java.
The original Parsec distribution has parsers and ASTs for
On Sun, Dec 27, 2009 at 9:06 AM, Thomas Hühn x...@arcor.de wrote:
Has anyone who is *not* a Haskell/ghc/cabal expert been able to
install Haskell satisfactorily on Windows 7?
It worked fine for me, but then I didn't try to do anything fancy. The
data-dir and prefix you mention is where
Stephen Tetley wrote:
2009/12/27 Stephen Tetley stephen.tet...@gmail.com:
I'll try next with MinGW to see if that works...
Aye, it builds fine under MinGW.
Thanks for your help, I'll get a MinGW setup together.
Cheers, Patrick.
___
This isn't quite what you're asking for, but by using the applicative
interface to parsers, you need do little more than spell out what your AST
looks like:
import Control.Applicative
import Control.Applicative.Infix
data Equation = String :=: Expression
data Expression = EApp fun arg | EInt Int
Hi Thomas
I suspect the problem you are having is specifically with Pandoc.
Pandoc has a couple of dependencies on C libraries: network and zlib
are two - they are part of the Haskell platform so they would be
working in the first place (I have a mostly vanilla install of Haskell
platform on
I've seen the terms lazy evaluation and lazy function. Is this just lazy
language or are both these terms valid?
Michael
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Fri, Dec 25, 2009 at 11:56 AM, Serguey Zefirov sergu...@gmail.comwrote:
A pair of problems:
1) How to write a parser that could be restarted? Like, it will be
represented by a function that returns something along the lines
data ParseStepResult input result =
Success (Maybe (input -
On Fri, Dec 25, 2009 at 8:31 PM, Felipe Lessa felipe.le...@gmail.comwrote:
However you're right in a sense, you can't use this scheme to
serialize any functions taking functions, like
something :: (a - Parser a) - a - Parser a
because
data MyParser = FunSomething (a - MyParser) a
Lazy evaluation is an evaluation strategy that gives non-strict semantics.
A lazy function I'm not sure how to define. It may be lazy language meaning
a function which is non-strict in one of it's arguments.
Bob
On Sun, Dec 27, 2009 at 1:16 PM, michael rice nowg...@yahoo.com wrote:
I've seen
On Sunday 27. December 2009 14.16.15 michael rice wrote:
I've seen the terms lazy evaluation and lazy function. Is this just
lazy language or are both these terms valid?
In some languages, like Oz, one can have lazy functions even though the
default is evaluation strategy is an eager one. In
On Sun, Dec 27, 2009 at 08:20:53AM -0500, Edward Kmett wrote:
On Fri, Dec 25, 2009 at 8:31 PM, Felipe Lessa felipe.le...@gmail.comwrote:
However you're right in a sense, you can't use this scheme to
serialize any functions taking functions, like
something :: (a - Parser a) - a - Parser
On Sun, Dec 27, 2009 at 8:59 AM, Felipe Lessa felipe.le...@gmail.comwrote:
Hmmm... but, assuming a preprocessor, you probably would be able
to transform this code:
[snip]
The only part missing here is being able to run only a small part
of the arrow's computation and then return
On Sun, Dec 27, 2009 at 09:34:54AM -0500, Edward Kmett wrote:
On Sun, Dec 27, 2009 at 8:59 AM, Felipe Lessa felipe.le...@gmail.comwrote:
Is my example contrived? Am I missing something? :)
Assuming a sufficiently smart preprocessor you can do anything you'd like,
but the result isn't an
On Sun, 2009-12-27 at 02:18 -0800, CK Kashyap wrote:
Hi All,
I recently came across the paper titled Monadic Parser Combinators - After
going through it a few times, I think I am beginning to understand monads.
However, the parser developed in the paper does not generate an AST - I feel,
On Sun, 2009-12-27 at 10:06 +0100, Thomas Hühn wrote:
The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
binary-0.5.0.2
digest-0.0.0.8
template-0.1.1.1
utf8-string-0.3.6
zip-archive-0.1.1.4
haddock-2.4.2
C:\Windows\system32cabal install SDL
Resolving dependencies...
[1 of 1] Compiling Main (
C:\Users\LIERYA~1\AppData\Local\Temp\SDL-0.5.93108\SDL-0.5.9\Setup.lhs,
On Dec 16, 8:21 pm, Scott A. Waterman tswater...@gmail.com wrote:
Can anyone involved give a quick overview (or pointers to one)?
It would be good to hear what directions people are taking, and why,
and where it's going.
Personally, I'd love to know the current thinking on a variety of
On Sun, Dec 27, 2009 at 5:51 AM, DPX-Infinity dpx.infin...@gmail.com wrote:
Hello.
I'm writing a library - some kind a wrapper around SDL library, an engine.
For example, I have a module Graphics.UI.SDL.XEngine.State and
functions modifyState and setColor in it. These functions are using
Hi
Duncan Coutts duncan.cou...@googlemail.com writes:
Except for haddock, none of these packages come with the Haskell
Platform. These are packages that you must have installed previously. So
ghc-pkg check is quite right to report them.
Okay, right.
Okay, reinstalling them all (with --user
Hi
Stephen Tetley stephen.tet...@gmail.com writes:
I suspect the problem you are having is specifically with Pandoc.
Pandoc has a couple of dependencies on C libraries: network and zlib
are two - they are part of the Haskell platform so they would be
network gave me a hard time without the
Hi,
is there a connection between HList and Data Types a la Carte?
Are both approaches pursuing the same goal? Or is it more like trying to
compare apples and pears?
Günther
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Sebastian Sylvan sebastian.syl...@gmail.com writes:
Also, if a library fails to build because of your ghc version, you
can install a specific version of that library instead. E.g. for
haddock you see that the failing version was 2.4.2 but if you leave
out the version number cabal will fetch
On 27/12/2009 17:42, Duncan Coutts wrote:
Okay, the same with --user succeeds. Yay!
Right, global installs require admin permissions.
Historically Windows users did have admin permissions so the Windows
folks advised us that global should be the default. Obviously that's not
such a good
Hi
A little progress report:
Installing packages as administrator works fine.
But now I have changed cabal's config file, so that prefix and datadir
point to a user-writable directory, and that works as well.
So for starting out, I guess I'm happy with my installation so far
(although I
2009/12/27 Thomas Hühn x...@arcor.de:
network gave me a hard time without the Haskell Platform as well.
Hi Thomas
Network installed for me without a hitch via MinGW for 6.12.1 (via the
old skool process of runhaskell Setup.hs ...). MinGW becomes all but
essential once you start installing
On 27/12/2009 19:26, Thomas Hühn wrote:
Hi
Duncan Couttsduncan.cou...@googlemail.com writes:
Except for haddock, none of these packages come with the Haskell
Platform. These are packages that you must have installed previously. So
ghc-pkg check is quite right to report them.
Okay, right.
Hi
Stephen Tetley stephen.tet...@gmail.com writes:
Network installed for me without a hitch via MinGW for 6.12.1 (via the
old skool process of runhaskell Setup.hs ...). MinGW becomes all but
essential once you start installing libraries that are bindings to C
libraries - unfortunately it can
Lee Houghton gm...@asztal.net writes:
The most likely cause is that your user-install: True line is
indented. Indentation is significant in the config file because it
indicates layout for nested sections: remove any leading spaces on
that line and that should do the trick.
Damn, I made sure
2009/12/27 Lie Ryan lie.1...@gmail.com:
[SNIP...] (i.e. can I use
the resultant SDL-binding outside Cygwin?)
Hi
The short answers is yes - once you have the Haskell binding
installed will need only the .exe of your (Haskell) application
compiled by GHC and the SDL.dll [1].
The long answer
2009/12/27 Thomas Hühn x...@arcor.de:
Okay, then I'll do that. I suppose the mingw that GHC ships is an
abridged one, so that setting some environment variables does not
suffice?
Hi Thomas
GHC ships with the compiler (gcc), the binutils (linker, ar etc.) and
not much else.
Hackage and Google turn up nothing¹, so I am asking here; has anyone written
a v4l library for Haskell?
I have been reading the v4l documentation² and I am ready to implement a
Haskell interface for webcams, but it would be a waste of effort if
someone's already got one knocking about. I could
On Sun, Dec 27, 2009 at 2:17 PM, Christopher Done
chrisd...@googlemail.com wrote:
Hackage and Google turn up nothing¹, so I am asking here; has anyone written
a v4l library for Haskell?
I have been reading the v4l documentation² and I am ready to implement a
Haskell interface for webcams, but
John Millikin wrote:
CPython, the primary implementation of the Python language, has a C
API for embedding Python into applications and writing extension
modules[1]. The cpython[2] package is a binding to this API.
This is a nice thing to have.
How does this package compare to the classic
On Sun, 2009-12-27 at 14:28 -0800, Rogan Creswick wrote:
On Sun, Dec 27, 2009 at 2:17 PM, Christopher Done
chrisd...@googlemail.com wrote:
Hackage and Google turn up nothing¹, so I am asking here; has anyone
written
a v4l library for Haskell?
I have been reading the v4l documentation²
Mark Lentczner wrote:
I have been thinking about the location of installed Haskell package
files on Mac OS X.
Thanks, we've really needed that for a while now.
The choice of location affects:
GHC other Haskell implementations
Haskell Platform
Cabal cabal-install
(sorry for spam; forgot to reply-all)
MissingPy appears to be a set of data types which implement MissingH
classes using the Python library. It has only a minimal binding to
libpython, enough to implement its class instances but not enough for
general-purpose use of libpython.
I wrote this
Hi All,
What's the best way to get the year/month/day/hour/min/sec of the
current time ? I've become mired in confusion with Time, Data.Time,
DateTime and I think there is even an old-time.
Might be a couple of calendar libraries in there, not quite sure...
Thanks,
Brian
'time' is the generally accepted package which exports the Data.Time you
mentioned. 'DateTime' looks to use 'time' to provide an aledgedly simpler
API. 'old-time' should go away eventually and thus you should not use it for
new projects.
You likely want 'getCurrentTime' [1].
Thomas
[1]
I finally compiled and installed GHC 6.12 on my Linux system and it seems to be
failing to find a lot of things. Notably these
import Control.Monad
import Control.Monad.State
import Control.Monad.Trans
import Control.Parallel
Worked fine under 6.10. Any clues?
Gregory Propf gregorypr...@yahoo.com writes:
I finally compiled and installed GHC 6.12 on my Linux system and it seems to
be failing to find a lot of things. Notably these
import Control.Monad
import Control.Monad.State
import Control.Monad.Trans
import Control.Parallel
A lot of these
44 matches
Mail list logo