[Haskell-cafe] Re: GSoC: Hackage 2.0

2010-04-09 Thread Duncan Coutts
On Wed, 2010-04-07 at 00:40 -0400, Matthew Gruen wrote: Hi Haskellers, I'm Matt Gruen (Gracenotes in #haskell), and the Hackage 2.0 SoC project at http://hackage.haskell.org/trac/summer-of-code/ticket/1587 really piqued my interest. It seems doable, in a summer, to make the new

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-08 Thread Duncan Coutts
On Wed, 2010-04-07 at 16:09 -0400, Thomas Tuegel wrote: On Wed, Apr 7, 2010 at 3:33 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: The importance of this is that it lets us develop improved testsuite interfaces in future. At the moment there are two test interfaces we want

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-07 Thread Duncan Coutts
On Tue, 2010-04-06 at 18:51 -0400, Thomas Tuegel wrote: Hello again! Based on the invaluable feedback I've received, I've made some revisions to the proposal I made a few days ago (at the end of this post, after my signature). I apologize for the length of my post, but I'd like once again

Re: [Haskell-cafe] libraries [was GUI haters]

2010-04-07 Thread Duncan Coutts
. The core system works everywhere, but many contributed libraries don't. GUIs are the big showstopper. It's really not that bad. I have customers using Haskell GUI applications on Windows (Gtk2Hs). We hardly had any problems at all. -- Duncan Coutts, Haskell Consultant Well-Typed LLP, http://www.well

Re: [Haskell-cafe] hackage build errors

2010-01-12 Thread Duncan Coutts
On Mon, 2010-01-11 at 19:59 -0500, Keith Sheppard wrote: so what should I make of these errors? Are they useful in some way or just a problem with the build environment? The latter. (If that's the case I think they should probably be removed since they're confusing for potential users) It

Re: [Haskell-cafe] short licensing question

2010-01-12 Thread Duncan Coutts
On Mon, 2010-01-11 at 09:30 -0800, Andrey Sisoyev wrote: Svein Ove Aas wrote: In this case, LGPL is a problem. It requires you to offer a way to re-link such binaries against new versions/implementations of the library, which in practice requires it to be either open source or

Re: [Haskell-cafe] short licensing question

2010-01-12 Thread Duncan Coutts
On Tue, 2010-01-12 at 10:24 +0100, minh thu wrote: In short, if I understand you correctly, you would just have to provide your code in unlinked form regardless of the existence of some tool to create another ABI-compatible version of the LGPL library. Right. The procedure I mentioned is

Re: [Haskell-cafe] Cabal bug?

2010-01-11 Thread Duncan Coutts
On Mon, 2010-01-11 at 13:33 +0100, Henk-Jan van Tuyl wrote: L.S., I had a strange response from Cabal: cabal upgrade hlint Resolving dependencies... cabal: cannot configure containers-0.3.0.0. It requires base =4.2 6 For the dependency on base =4.2 6 there are these

Re: [Haskell-cafe] Configuring cabal install readline on Snow Leopard with MacPorts

2009-12-29 Thread Duncan Coutts
On Tue, 2009-12-29 at 00:14 -0800, Judah Jacobson wrote: Downloaded the package and do configure manually: ./configure --with-readline-includes=/opt/local/include --with-readline-libraries=/opt/local/lib You should use: cabal install readline

Re: [Haskell-cafe] Installing Haskell on Windows 7

2009-12-27 Thread Duncan Coutts
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

Re: [Haskell-cafe] Cabal's License type: MIT commented out?

2009-12-24 Thread Duncan Coutts
On Wed, 2009-12-23 at 18:16 -0600, Tom Tobin wrote: I noticed on Hackage that packages that are MIT licensed show up as OtherLicense. I took a peek inside the Cabal code, and noticed that the License type has lines for MIT, but commented out [1]: ---- | The MIT license, similar to the

Re: [Haskell-cafe] Is it just me... or is cabal/hackage a little broken?

2009-12-23 Thread Duncan Coutts
On Wed, 2009-12-23 at 00:14 +0100, Bardur Arantsson wrote: Hi all, Sorry about the inflammatory title, but I just got this message from an uploaded package (hums): Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a

Re: [Haskell-cafe] install-dirs on Mac OS X

2009-12-22 Thread Duncan Coutts
On Mon, 2009-12-21 at 22:55 -0800, Mark Lentczner wrote: I have been thinking about the location of installed Haskell package files on Mac OS X. The choice of location affects: [..] Thoughts? I'd be happy to help by supplying patches for various tools to normalize all this on some agreed

Re: [Haskell-cafe] install-dirs on Mac OS X

2009-12-22 Thread Duncan Coutts
On Mon, 2009-12-21 at 22:55 -0800, Mark Lentczner wrote: I suggest that the default place for global installs on Mac OS X be: /Library/Haskell/ As I've mentioned I'm mostly an OSX ignoramus. One thing I think I've seen said before however is that things in /Library and ~/Library are

Re: [Haskell-cafe] Problem with cabal install zlib

2009-12-22 Thread Duncan Coutts
On Mon, 2009-12-21 at 23:08 +, Ozgur Akgun wrote: So what's the recommended thing to do now? Please file a ticket in the ghc trac with as much detail as is necessary for someone else to reproduce this. Given what we have at the moment I cannot see the cause of the problem. From what you've

Re: [Haskell-cafe] GHC 6.12 on OS X 10.5

2009-12-22 Thread Duncan Coutts
On Tue, 2009-12-22 at 07:39 -0800, Aaron Tomb wrote: Do we need some more flexible options to GHC, giving users more control on the ordering of libraries on the linker command line? I don't think there is any single ordering that will work. Different packages need libs from different

Re: [Haskell-cafe] Problem with cabal install zlib

2009-12-22 Thread Duncan Coutts
On Tue, 2009-12-22 at 21:48 +, Ozgur Akgun wrote: What about this part: -o dist/build/Codec/Compression/ Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc Isn't it passing multiple (two in this case) output parameters? Or am I missing sth? No, that's one -o flag and a single

Re: [Haskell-cafe] An old package and the new Cabal.

2009-12-21 Thread Duncan Coutts
On Sun, 2009-12-20 at 14:43 -0800, Jason Dusek wrote: The message I get is: Resolving dependencies... Found existing header file at c/data.h Configuring cedict-0.2.6... setup: Missing dependency on a foreign library: * Missing header file: c/data.h It takes like

Re: [Haskell-cafe] GHC 6.12 on OS X 10.5

2009-12-21 Thread Duncan Coutts
On Mon, 2009-12-21 at 10:32 +, Conor McBride wrote: QUESTION: Is the sensible upgrade path to build cabal-install 0.8 with your old GHC, before installing 6.12? Does this even work? Yes and yes. Anyhow, I've got 6.12 and I need cabal-install 0.8. Can I find it? Note that it is now on

Re: [Haskell-cafe] Problem with cabal install zlib

2009-12-20 Thread Duncan Coutts
On Sun, 2009-12-20 at 11:17 +0100, Sjoerd Visscher wrote: I have the same issue with zlib: /usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-lz

Re: [Haskell-cafe] Problem with cabal install zlib

2009-12-19 Thread Duncan Coutts
On Fri, 2009-12-18 at 23:01 +, Ozgur Akgun wrote: Hi, When I run cabal install zlib or cabal upgrade zlib I get the following error: Resolving dependencies... Configuring zlib-0.5.2.0... Preprocessing library zlib-0.5.2.0... Only one output file may be specified We'll need more

Re: [Haskell-cafe] Problem with cabal install zlib

2009-12-19 Thread Duncan Coutts
On Sat, 2009-12-19 at 09:39 +, Ozgur Akgun wrote: I guess the following part is the problematic part: (But I've no idea how to resolve it) [..] --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl *-o dist/build/Codec/Compression/Zlib/Stream.hs Codec/Compression/Zlib/Stream.hsc* Only

Re: [Haskell-cafe] Cabal

2009-12-18 Thread Duncan Coutts
On Thu, 2009-12-17 at 18:08 +, Nils Anders Danielsson wrote: I was hoping that I could make use of this feature now: $ cabal --version cabal-install version 0.7.5 using version 1.8.0.2 of the Cabal library However, when I try to use it I get the following error: So there's two

Re: [Haskell-cafe] changelogs for packages on Hackage

2009-12-16 Thread Duncan Coutts
On Wed, 2009-12-16 at 11:18 +0200, Valery V. Vorotyntsev wrote: It would be nice if Hackage displayed ``recent changes'' of a package. [severity: wishlist] You see, I am subscribed to the ``hackage - recent additions'' feed [http://hackage.haskell.org/packages/archive/recent.rss] and receive

Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-16 Thread Duncan Coutts
On Wed, 2009-12-16 at 14:12 +, Colin Paul Adams wrote: I don't think it's practical to edit all the .cabal packages as they come in to say: ghc-options: -F -pgmF hspp and cabal install does not recognize this line if I add to to my ~/.cabal/config file. Duncan, is there a way

Re: Re[2]: [Haskell-cafe] Re: How Can Haskell Be Saved?

2009-12-14 Thread Duncan Coutts
On Mon, 2009-12-14 at 21:02 +1100, Erik de Castro Lopo wrote: Bulat Ziganshin wrote: POSIX is a *subsystem*. you are using Win32 subsystem. There is also OS2 subsystem for execution of 16-bit OS/2 programs partial emulation of POSIX API in C compiler libraries has nothing common with

[Haskell-cafe] Re: What about adding a wiki for each haskell project?

2009-12-11 Thread Duncan Coutts
On Sat, 2009-12-12 at 01:00 +0100, Marc Weber wrote: hackage is success because: a) many (most) people do use it (by uploading packages) b) it is a comprehensive list of availible packages if not the most comprehensive one Duncan, can you write about your concerns briefly why some

[Haskell-cafe] Re: Are there standard idioms for lazy, pure error handling?

2009-12-09 Thread Duncan Coutts
On Mon, 2009-12-07 at 20:31 +0100, Henning Thielemann wrote: Somehow I missed this thread. I want to say that I have implemented a general way to add the information of an exception to the end of an arbitrary data structure.

Re: [Haskell-cafe] You are in a twisty maze of concurrency libraries, all different ...

2009-12-04 Thread Duncan Coutts
On Fri, 2009-12-04 at 22:51 +1100, Patrick Caldon wrote: I'm looking for the right concurrency library/semantics for what should be a reasonably simple problem. I have a little simulator: runWorldSim :: MTGen - SimState - IO SimState it takes about a second to run on a PC. It's

Re: [Haskell-cafe] Are there standard idioms for lazy, pure error handling?

2009-12-04 Thread Duncan Coutts
On Thu, 2009-12-03 at 19:49 -0500, wren ng thornton wrote: Duncan Coutts wrote: I've got an open mind on the suggestion to amalgamate the two ways the list could end. I'm not especially in favour of generalising for the sake of generalising, especially if it looses the connection

Re: [Haskell-cafe] Optimization with Strings ?

2009-12-04 Thread Duncan Coutts
On Thu, 2009-12-03 at 13:03 +0100, Emmanuel CHANTREAU wrote: Hello In my futur program, it use a lot of binary trees with strings (words) as leaf. There is just arround 1000 words and they will appear a lot of times. The program will possibly consume a lot of process and memory (it is a

Re: [Haskell-cafe] universal binary version of Haskell Platform?

2009-12-03 Thread Duncan Coutts
On Thu, 2009-12-03 at 14:05 +0900, Benjamin L.Russell wrote: Recently, in changing my work schedule to work mainly from home, I switched from mainly using a work Wintel machine running Windows XP Professional, Service Pack 3, to mainly using my home PowerPC G4 PowerBook Macintosh, currently

Re: [Haskell-cafe] instance Binary UTCTime (Was: Oprhan instances)

2009-12-03 Thread Duncan Coutts
On Wed, 2009-12-02 at 23:03 +0100, Joachim Breitner wrote: Would it be techically possible and feasible to write instance that do not actually cause a dependency on the package that defines the class resp. the data type? From a distributor point of view, I could live quite well with a setup

Re: [Haskell-cafe] Are there standard idioms for lazy, pure error handling?

2009-12-03 Thread Duncan Coutts
On Thu, 2009-12-03 at 12:34 +0100, Ketil Malde wrote: Duncan Coutts duncan.cou...@googlemail.com writes: [1] http://hackage.haskell.org/package/failable-list Nice. I agree this is needed (or rather, would be nice to standardise). Although I don't care for the cutesy naming

Re: [Haskell-cafe] Building network package on Windows

2009-12-02 Thread Duncan Coutts
not currently check stdcall vs ccall calling convention but it could fairly easily be extended to do so (since it parses those attributes). -- Duncan Coutts, Haskell Consultant Well-Typed LLP, http://www.well-typed.com/ ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Are there standard idioms for lazy, pure error handling?

2009-12-01 Thread Duncan Coutts
On Mon, 2009-11-30 at 20:10 -0800, John Millikin wrote: On Mon, Nov 30, 2009 at 03:02, Duncan Coutts duncan.cou...@googlemail.com wrote: data ListThenError e a = Cons a (ListThenError e a) | Error e Of course this has the disadvantage that then your consumer must

Re: [Haskell-cafe] instance Binary UTCTime (Was: Oprhan instances)

2009-11-30 Thread Duncan Coutts
On Sun, 2009-11-29 at 19:38 -0800, Alexander Dunlap wrote: Then the other bit you suggested foomonad = 4.0 4.1 HAS_MTL would be needed to be able to express that you want a package that has been built with a particular optional instance provided. This is the bit that cannot be

Re: [Haskell-cafe] Are there standard idioms for lazy, pure error handling?

2009-11-30 Thread Duncan Coutts
On Mon, 2009-11-30 at 06:08 +, Malcolm Wallace wrote: However, if you really want to terminate the stream at the first error, and to reflect this in the type, then I guess you can define your own list type: data ListThenError e a = Cons a (ListThenError e a)

Re: [Haskell-cafe] License question

2009-11-30 Thread Duncan Coutts
On Mon, 2009-11-30 at 09:43 +0100, jean-christophe mincke wrote: Hello, I am writing a port to F# of some haskell standard libraries. I would like to publish them under an open source license and mention the origin of the initial code. www.haskell.org is under the simple permissive

Re: [Haskell-cafe] instance Binary UTCTime (Was: Oprhan instances)

2009-11-30 Thread Duncan Coutts
On Mon, 2009-11-30 at 13:36 +0100, Bas van Dijk wrote: On Mon, Nov 30, 2009 at 11:35 AM, Duncan Coutts duncan.cou...@googlemail.com wrote: Ah but flags are not allowed to change the public exported API of a library. I wasn't aware of this. Where is this documented? Hmm, I'm not sure

Re: [Haskell-cafe] instance Binary UTCTime (Was: Oprhan instances)

2009-11-29 Thread Duncan Coutts
On Thu, 2009-11-26 at 16:40 -0500, David Menendez wrote: The problem with this solution is that it doesn't scale. If we have M packages providing types and N packages providing classes, then we need M*N additional packages for orphans. The best long-term solution is probably extending Cabal

Re: [Haskell-cafe] some help debugging ghci build on powerpc

2009-11-29 Thread Duncan Coutts
On Sun, 2009-11-22 at 16:22 -0800, Brian Denheyer wrote: I'm trying to build ghc so that ghci will be included under linux power-pc. The build dies here: /tmp/ghc21791_0/ghc21791_0.s: Assembler messages: /tmp/ghc21791_0/ghc21791_0.s:15:0: Error: junk at end of line, first

Re: [Haskell-cafe] peekCString free memory

2009-11-29 Thread Duncan Coutts
On Sun, 2009-11-29 at 18:00 +0100, El Barto wrote: Hello, I get a segfault when I do str - peekCString ptr free ptr return (Just str) As Thomas says, you've not really given us enough info here. I'll make some guesses and observations anyway :-) But not when I don't free the C pointer.

Re: [Haskell-cafe] instance Binary UTCTime (Was: Oprhan instances)

2009-11-29 Thread Duncan Coutts
On Sun, 2009-11-29 at 16:42 -0500, David Menendez wrote: On Sun, Nov 29, 2009 at 8:37 AM, Duncan Coutts duncan.cou...@googlemail.com wrote: On Thu, 2009-11-26 at 16:40 -0500, David Menendez wrote: The problem with this solution is that it doesn't scale. If we have M packages providing

Re: [Haskell-cafe] instance Binary UTCTime (Was: Oprhan instances)

2009-11-29 Thread Duncan Coutts
On Sun, 2009-11-29 at 09:55 -0800, Alexander Dunlap wrote: On Sun, Nov 29, 2009 at 5:37 AM, Duncan Coutts duncan.cou...@googlemail.com wrote: On Thu, 2009-11-26 at 16:40 -0500, David Menendez wrote: The problem with this solution is that it doesn't scale. If we have M packages providing

Re: [Haskell-cafe] Custom cabal languages (hooks?)

2009-11-28 Thread Duncan Coutts
On Sat, 2009-11-28 at 14:47 +0100, Svein Ove Aas wrote: I'm currently working on a binding to Brian Gladman's C/assembler AES implementation. This code is sufficiently small that it makes little sense to create a separate C library for it; furthermore, it isn't typically packaged by the

Re: [Haskell-cafe] cabal-install binary for FreeBSD

2009-11-28 Thread Duncan Coutts
On Sat, 2009-11-28 at 19:39 +0200, Michael Snoyman wrote: Hi all, I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They use FreeBSD 7.2, but I can't get cabal-install to compile since it runs out of memory during the link phase. So far I haven't had trouble manually

Re: [Haskell-cafe] Re: [Haskell] ANN: NoSlow - Microbenchmarks for array libraries

2009-11-28 Thread Duncan Coutts
On Sat, 2009-11-28 at 09:29 -0800, Bryan O'Sullivan wrote: On Fri, Nov 27, 2009 at 1:05 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: I found that the dependency on Cairo and GTK originates from criterion. I have to build criterion with 'cabal install

Re: [Haskell-cafe] Re: [Haskell] ANN: NoSlow - Microbenchmarks for array libraries

2009-11-28 Thread Duncan Coutts
On Sat, 2009-11-28 at 20:13 +0100, Henning Thielemann wrote: However I have still the problem, that once criterion is installed without gtk and cairo, then 'cabal install' still wants to download them when I install packages that import 'criterion'. :-( Bug or feature? That's a problem with

Re: [Haskell-cafe] namespaces for values, types, and classes

2009-11-28 Thread Duncan Coutts
On Fri, 2009-11-27 at 11:07 +0100, Sebastian Fischer wrote: We cannot write class Name a where ... instance Name Name where ... Yes! Very annoying. I want to be able to make a type that is the most general instance of a single-parameter type class. This is a useful OOish thing

Re: [Haskell-cafe] Re: How does cabal determine version ranges in the dependencies?

2009-11-26 Thread Duncan Coutts
On Mon, 2009-11-23 at 19:38 +0100, dave wrote: On Mon, 2009-11-23 at 09:50 -0200, Maurí­cio CA wrote: I recently started porting cabal-install to Freebsd. When I looked at its dependencies on hackage, I noticed HTTP (=4000.0.2 4001). However the latest HTTP version on hackage is

Re: [Haskell-cafe] separate cabal installations on separate machines

2009-11-26 Thread Duncan Coutts
On Thu, 2009-11-26 at 10:37 -0800, Brian Denheyer wrote: Hello, I have server where my home directory resides. I use cabal from (at least) two machines with different processors (i386, powerpc) and the common home directory. I noticed that there is a --global option which does the right

[Haskell-cafe] Re: community.haskell.org is down

2009-11-19 Thread Duncan Coutts
On Thu, 2009-11-19 at 21:15 +, Neil Mitchell wrote: Hi, community.haskell.org isn't responding, I get connection failures. Ta, sorted. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: ANNOUNCE: deepseq-1.0.0.0

2009-11-18 Thread Duncan Coutts
On Wed, 2009-11-18 at 09:17 +, Simon Marlow wrote: So the main difference is that with the current formulation of deepseq, you need to explicitly force the result in order to use it, either with a pattern match, another seq, or a pseq. If we used (a - b - b) then the top-level forcing

[Haskell-cafe] Re: ANNOUNCE: deepseq-1.0.0.0

2009-11-17 Thread Duncan Coutts
On Tue, 2009-11-17 at 11:00 +, Simon Marlow wrote: I've just uploaded deepseq-1.0.0.0 to Hackage http://hackage.haskell.org/package/deepseq This provides a DeepSeq class with a deepseq method, equivalent to the existing NFData/rnf in the parallel package. I'll be using this in a

Re: [Haskell-cafe] How to show record syntax?

2009-11-17 Thread Duncan Coutts
On Tue, 2009-11-17 at 17:14 +0100, Sean Leather wrote: module Main where data A = A {x :: Int} deriving Show main = print $ Just A {x = 5} This led to an issue report [3] which developed a few responses. Some don't like the grammar as defined, because, at a glance, it appears too much

[Haskell-cafe] ANNOUNCE: New Industrial Haskell Group membership options

2009-11-16 Thread Duncan Coutts
, but with a lower financial commitment. For more details on all of the above, please see http://industry.haskell.org/ If your company or group is interested in joining then please e-mail i...@industry.haskell.org -- Duncan Coutts, Haskell Consultant Well-Typed LLP, http://www.well-typed.com

Re: [Haskell-cafe] creating documentation links failed with cabal install --haddock-options=--hyperlink-source. is this a bug?

2009-11-16 Thread Duncan Coutts
On Sat, 2009-10-31 at 10:45 -0500, Thomas Hartman wrote: cabal haddock -–hyperlink-source installs documentation with links to source code, which also be on by defualt. cabal install –haddock-options=–hyperlink source does not install hyperlinked source. This is an instance of the lack

Re: [Haskell-cafe] C headers in cabal dependencies

2009-11-16 Thread Duncan Coutts
On Wed, 2009-10-28 at 17:34 -0200, Maurí­cio CA wrote: Hi, I've been using 'install-includes' in a package. I sometimes make small changes to those include files, and I've seen that cabal doesn't consider then dependencies, i.e., doesn't rebuild .hsc files depending on then. I'm not sure

Re: [Haskell-cafe] How much time until dependencies are rebuilt in hackage?

2009-11-16 Thread Duncan Coutts
On Sat, 2009-11-14 at 17:31 -0200, Felipe Lessa wrote: On Sat, Nov 14, 2009 at 01:47:04PM -0200, Maurí­cio CA wrote: Suppose package B depends on A. If a new version of A is uploaded to hackage, how much later package B will be rebuilt (either to show a problem with the new version or to

Re: [Haskell-cafe] Resource compilation in GHC

2009-11-13 Thread Duncan Coutts
On Thu, 2009-11-12 at 11:52 +0100, David Virebayre wrote: On Thu, Nov 12, 2009 at 11:12 AM, Konstantin Vladimirov konstantin.vladimi...@gmail.com wrote: Hello. I'm writing an wxHaskell application. Everything is ok, but now I need a separate folder for icons, bitmaps, and so on, from

Re: [Haskell-cafe] Sometimes pinned memory?

2009-11-13 Thread Duncan Coutts
On Wed, 2009-11-11 at 13:14 -0800, Gregory Crosswhite wrote: Hey everyone! Do you have any suggestions for how I might allocate an aligned block of memory that I can pin while making foreign calls, but leave unpinned the rest of the time to potentially improve allocation and garbage

Re: [Haskell-cafe] Re: Weird dependency failure log

2009-11-13 Thread Duncan Coutts
On Fri, 2009-11-13 at 12:08 -0200, Maurí­cio CA wrote: There's one thing special about bindings-DSL. It's a package with a set of macros for hsc2hs, and contains no Haskell code. Maybe this revealed some hidden error in package dependency checking. This is a package with no library

Re: [Haskell-cafe] Cabal and autogenerated files

2009-11-13 Thread Duncan Coutts
On Fri, 2009-11-13 at 15:24 +, Jeremy O'Donoghue wrote: So I take it that these modules are generated from nothing rather than something like happy/alex pre-processors where the .hs files are generated from .y/.x files. Cabal supports the latter fairly well and you can add custom

Re: [Haskell-cafe] haskell-src-exts Question

2009-11-13 Thread Duncan Coutts
On Fri, 2009-11-13 at 20:08 +, Neil Mitchell wrote: Hi Niklas, Do I have to write my own prettyprinter? Do I have to put in explicit parentheses? The latter seems unsatisfactory as my generated AST is unambiguous and bracketing ought to be part of the prettyprinter. The former

Re: [Haskell-cafe] Re: Weird dependency failure log

2009-11-13 Thread Duncan Coutts
On Fri, 2009-11-13 at 15:53 -0200, Maurí­cio CA wrote: This is a package with no library and no executables. That's not supposed to work. Why shouldn't this be supposed to work? It does install needed files (two include files for hsc2hs), and they do stand for themselves to justify

Re: [Haskell-cafe] Could someone teach me why we use Data.Monoid?

2009-11-13 Thread Duncan Coutts
On Fri, 2009-11-13 at 15:16 -0200, Rafael Gustavo da Cunha Pereira Pinto wrote: ...in my humble opinion. (Which, obviously, nobody else will agree with.) I somewhat agree with your opinion!! What I miss the most is practical examples: 1) A function that uses a Monoid as a container

Re: [Haskell-cafe] Re: Writing great documentation

2009-11-13 Thread Duncan Coutts
On Fri, 2009-11-13 at 23:20 +0200, Max Rabkin wrote: On Fri, Nov 13, 2009 at 10:58 PM, Simon Michael si...@joyful.com wrote: A very common problem with online docs is fragmentation. Absolutely! Is it possible to include non-haddock documentation in a cabal package. Is it possible to have it

Re: [Haskell-cafe] haskell-src-exts Question

2009-11-13 Thread Duncan Coutts
On Fri, 2009-11-13 at 23:54 +0100, Niklas Broberg wrote: Surely you do want this. It's the biggest problem with the original haskell-src package, that it cannot print out any useful Haskell code obtained from the parser, because it forgets all the brackets. I should point out that

Re: [Haskell-cafe] Fwd: (Solved) cabal install with external gcc tool chain not the ghc-bundled one

2009-11-12 Thread Duncan Coutts
On Thu, 2009-11-12 at 10:46 +0100, Daniel Kahlenberg wrote: to answer this question myself how the use of another gcc is specified with effect, I used the following options with the 'cabal install' call: --ghc-options=-pgmc e:/programme/ghc/mingw-gcc4/bin/gcc.exe -pgml

Re: [Haskell-cafe] Cabal and autogenerated files

2009-11-12 Thread Duncan Coutts
On Thu, 2009-11-12 at 17:54 +, Jeremy O'Donoghue wrote: Hi all, Another, probably simple, question regarding cabalization. Part of wxcore, the low level abstraction in wxHaskell, consists of haskell modules which are generated automatically by parsing C headers using another tool,

RE: [Haskell-cafe] Cabal upload issue

2009-11-12 Thread Duncan Coutts
On Thu, 2009-11-12 at 17:37 +, Sam Martin wrote: Although it might be a pain in the arse to some degree, is there any reason why 'base' is considered special? As an example, I've come across a fair number of libraries/apps that (presumably) compile against a previous version of OpenGL,

Re: [Haskell-cafe] Cabal

2009-11-09 Thread Duncan Coutts
On Sun, 2009-11-08 at 20:47 -0800, Gregory Crosswhite wrote: Actually, let me clarify my point: I have rarely encountered problems when using Cabal as a package distribution system, but I have run into problems when using it as a build system in a non-trivial manner. For example, when I

Re: [Haskell-cafe] Cabal

2009-11-09 Thread Duncan Coutts
On Sun, 2009-11-08 at 19:29 -0800, Philippos Apolinarius wrote: I made small improvements in the Small Japi Binding, and asked how to make it available. I received a few private messages advising me to build and package the library using a tool called cabal. Since I have used installation

Re: [Haskell-cafe] Re: cabal install on Windows

2009-11-09 Thread Duncan Coutts
On Mon, 2009-11-09 at 16:02 +, Michael Fan wrote: I figured it out. It appears to be Colour package specific. The datadir still point to c:\Program File even with --user. I manually edit the dist/setup-config and get Colour installed. After that, other packages seem working fine. From the

Re: [Haskell-cafe] Cabal

2009-11-09 Thread Duncan Coutts
On Mon, 2009-11-09 at 13:08 +, Stephen Tetley wrote: At this point I'd edit the *.cabal files in each component – this is not 'the done thing', but both libraries need extra flags and as I have to compile them rarely I tend to forget the format (which appears to be Windows style full

Re: [Haskell-cafe] Cabal

2009-11-09 Thread Duncan Coutts
On Sun, 2009-11-08 at 19:29 -0800, Philippos Apolinarius wrote: D:\ghc\ghcapicabal install mkcabal Note that as of cabal-install-0.8, the mkcabal functionality is integrated as cabal init (thanks to Brent Yorgey). This does not depend on less portable packages like pcre and readline (meaning it

Re: [Haskell-cafe] Cabal

2009-11-09 Thread Duncan Coutts
On Mon, 2009-11-09 at 17:40 +, Stephen Tetley wrote: 2009/11/9 Duncan Coutts duncan.cou...@googlemail.com: That should work, and probably the recommendation should be for cygwin users to edit their cabal config to at add C:\cygwin\lib and C:\cygwin \usr\include as standard. Hi

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-04 Thread Duncan Coutts
On Tue, 2009-11-03 at 18:12 -0800, brian wrote: Really, arrays in Haskell are the most @#!$! confusing thing in the world. There's a bunch of different array structures. I can't tell which one works best, and all I want to do is x[i] = value. I thought uvector was the answer, you know,

Re: [Haskell-cafe] cabal probems with binary/containers packages

2009-10-28 Thread Duncan Coutts
On Tue, 2009-10-27 at 21:37 -0700, brian wrote: It all started with this: Loading package binary-0.5.0.1 ... can't load .so/.DLL for: HSbinary-0.5.0.1 (dlopen(libHSbinary-0.5.0.1.dylib, 9): image not found) so I tried cabal upgrade binary Don't do that. Just use cabal install

Re: [Haskell-cafe] cabal haddock hpc, exposed modules?

2009-10-28 Thread Duncan Coutts
On Tue, 2009-10-27 at 14:33 -0700, Greg Fitzgerald wrote: my Setup.hs includes an explicit system call to hpc: exec hpc [markup , --include=Language.Idl.Data , --include=Language.Idl.Merge , --include=Language.Idl.Parser

Re: [Haskell-cafe] cabal probems with binary/containers packages

2009-10-28 Thread Duncan Coutts
On Wed, 2009-10-28 at 07:07 -0700, brian wrote: Just found the following file: .ghc/powerpc-darwin-6.10.1/pkg-config and it is referring to 0.5.0.1. Is there anyway to regenerate the file, or is it broken because of a problem with the package ? It all started with this: Loading

Re: [Haskell-cafe] cabal haddock hpc, exposed modules?

2009-10-28 Thread Duncan Coutts
On Wed, 2009-10-28 at 10:43 -0700, Greg Fitzgerald wrote: Duncan wrote: $ cabal haddock --help [...] --executables Run haddock for Executables targets --internal Run haddock for internal modules and include all symbols [...]

Re: [Haskell-cafe] Cabal says no installed version of base

2009-10-27 Thread Duncan Coutts
On Wed, 2009-10-21 at 16:05 -0700, John Velman wrote: I'm on OS X Leopard 10.5.8, using ghc 6.10.4 from Haskell Platform. I'm trying to get a static .a library, callable from C, that I can use in an OS X Cocoa program. I've tried a very simple case (the one in Haskell Wiki Tutorials,calling

Re: [Haskell-cafe] hopefully, a very quick question about ByteString lib

2009-10-27 Thread Duncan Coutts
On Tue, 2009-10-27 at 17:00 +0100, Daniel Fischer wrote: Look at the sources: hGetLine :: Handle - IO ByteString hGetLine h = wantReadableHandle Data.ByteString.hGetLine h $ \ handle_ - do case haBufferMode handle_ of NoBuffering - error no buffering _other -

Re: [Haskell-cafe] Re: ghci can't find Paths_ module created by cabal

2009-10-26 Thread Duncan Coutts
On Wed, 2009-10-21 at 22:31 -0500, Thomas Hartman wrote: from my bash hints file: thart...@ubuntu:~/haskellInstalls/gititthartman_ghci_with_data_files Loading a package with data files in ghci See http://neilmitchell.blogspot.com/2008/02/adding-data-files-using-cabal.html Snip:

Re: [Haskell-cafe] Time Typeable Instances

2009-10-23 Thread Duncan Coutts
On Tue, 2009-10-13 at 08:48 -0500, John Goerzen wrote: Now I'm getting complaints from people using 6.10.4 saying that there are now missing instances of Typeable with time 1.1.2.4. Right, because 1.1.2.4 is an earlier version than 1.1.3 which is the random intermediate snapshot version

Re: [Haskell-cafe] Too much strictness in binary-0.5.0.2

2009-10-18 Thread Duncan Coutts
On Sat, 2009-09-19 at 00:36 +0400, Khudyakov Alexey wrote: Hello I run into problems with new binary package. Following function reads a list of elements one by one until end of stream. List is very long (won't fit into memory). Sorry for the late reply. In binary-0.5.0.1 and earlier it

Re: [Haskell-cafe] Too much strictness in binary-0.5.0.2

2009-10-18 Thread Duncan Coutts
On Sun, 2009-10-18 at 19:53 +0400, Alexey Khudyakov wrote: Yes. We decided that having the Get monad as a lazy state monad just doesn't make sense. It makes this one use case work, but causes more problems generally. Certainly we need to be able to do lazy binary deserialisation too, but

[Haskell-cafe] Re: Reverse dependencies in Hackage

2009-10-13 Thread Duncan Coutts
On Tue, 2009-10-13 at 21:30 +0200, Roel van Dijk wrote: I also noticed that work is underway to implement a new hackage-server [2] based on happstack. If people find this feature useful I could also write a patch against the hackage-server code base [3]. That would be much appreciated.

Re: [Haskell-cafe] HDBC PostgreSQL

2009-10-10 Thread Duncan Coutts
On Fri, 2009-10-09 at 14:56 -0500, Patrick Brannan wrote: Hello, I'm getting back into Haskell after an absence of a few years. I'm in the process of trying to connect to postgresql with hdbc-postgresql on a Windows XP box. Seemingly, things installed without a problem, but at the

Re: [Haskell-cafe] Happstack + network package issue on the Mac

2009-10-10 Thread Duncan Coutts
On Fri, 2009-10-09 at 12:22 -0700, Bryan O'Sullivan wrote: On Fri, Oct 9, 2009 at 7:25 AM, Gregory Collins g...@gregorycollins.net wrote: There's been an open ticket for months; personally I think this is a job for the C preprocessor, but nobody's written

Re: [Haskell-cafe] How to add use custom preprocessor in cabal

2009-10-10 Thread Duncan Coutts
On Thu, 2009-10-08 at 17:28 +0200, Bernd Brassel wrote: Hi folks, I am trying to integrate my own preprocessor into a cabal build process. But there are several points that I get stuck with. Could someone help me, please? A simplification of my problem: I have files Abc.foo and each

Re: [Haskell-cafe] Can HXT and Parsec 3 be used in the same library?

2009-10-09 Thread Duncan Coutts
On Sun, 2009-10-04 at 10:32 -0700, John Millikin wrote: I'm writing a library that needs to parse both plain text (with Parsec) and XML (with HXT). HXT's .cabal file specifies that it only works with parsec (= 2.1 3), but it still builds when I depend on parsec = 3. It's only during cabal

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-09 Thread Duncan Coutts
On Thu, 2009-10-08 at 09:43 -0600, John A. De Goes wrote: Here's a list of libraries that are quite significant to commercial software development in 2009, For the kinds of applications that you would like to build. but which either do not exist in Haskell, or if they exist, are hard to

Re: [Haskell-cafe] Setting environment variables on Windows

2009-10-09 Thread Duncan Coutts
On Fri, 2009-10-09 at 17:37 +0200, Sönke Hahn wrote: Hi! I need to set an environment variable from Haskell and i would like to do that cross-platform. There is System.Posix.Env.setEnv, which does exactly, what i want on Linux. There is the module System.Environment, which seems to be

Re: [Haskell-cafe] Cabal, sdist and flags

2009-10-08 Thread Duncan Coutts
On Thu, 2009-10-08 at 09:31 +0100, Magnus Therning wrote: A while ago I moved a project away from using a mix of Cabal and make to build (Cabal to build the library and make to build the tests) to using only Cabal. I added a flag and then made a construct like this: [..] Interestingly that

Re: [Haskell-cafe] #include path

2009-10-08 Thread Duncan Coutts
On Thu, 2009-10-08 at 00:37 -0400, Sean McLaughlin wrote: Hi, I'm trying to compile some code using Cabal. One of the files has a CPP directive #include undefined.h The file undefined.h is in the same directory as the file with the directive. That works fine for me. I've

Re: [Haskell-cafe] better way to do this?

2009-10-07 Thread Duncan Coutts
On Tue, 2009-10-06 at 13:22 -0700, Michael P Mossey wrote: Duncan Coutts wrote: So you end up with pure functions like: shuffle :: RandomGen g = g - [x] - [x] Thanks for the help, Duncan. I'm confused on one point. Don't you always need the new state of the generator back? So

Re: [Haskell-cafe] better way to do this?

2009-10-04 Thread Duncan Coutts
On Sun, 2009-10-04 at 02:52 -0700, Michael Mossey wrote: I'm looking for a hint to write the following code with less redundancy. I have a constructor called BoxBounds, and I want to make one with random values. randomBox :: IO BoxBounds randomBox = do x - getStdRandom (randomR (-10,10))

<    1   2   3   4   5   6   7   8   9   10   >