Re: [Haskell-cafe] Hoogle vs Hayoo

2013-09-01 Thread Neil Mitchell
Hi, Hoogle is definitely not deprecated. The reason you can't yet search all packages simultaneously is that it consumes too many resources - the number of Haskell packages exploded at a time when I wasn't able to spend enough time to allow Hoogle to keep up. It's definitely something on the todo

Re: [Haskell-cafe] Hoogle problems?

2013-07-18 Thread Neil Mitchell
Hoogle has returned to live, thanks to the efforts to the new haskell.org admins. Thanks, Neil On Tue, Jul 16, 2013 at 4:33 PM, Neil Mitchell ndmitch...@gmail.com wrote: No idea why it has gone down, my guess is that the Apache rule that says treat it as a CGI script got changed to serve

Re: [Haskell-cafe] Hoogle problems?

2013-07-16 Thread Neil Mitchell
No idea why it has gone down, my guess is that the Apache rule that says treat it as a CGI script got changed to serve it as a file. In the meantime you can use a copy of Hoogle at: https://www.fpcomplete.com/hoogle Thanks, Neil On Mon, Jul 15, 2013 at 5:19 PM, Niklas Hambüchen m...@nh2.me

Re: [Haskell-cafe] Uniplate and rewriting with different types

2013-01-29 Thread Neil Mitchell
Hi Chris, With the following type, and transformation functions: data Odd = OddOne Even | OddZero Even deriving (Data,Typeable,Show) data Even = EvenOne Odd | EvenZero Odd | Nil deriving (Data,Typeable,Show) t1,t2,t3 :: Even - Maybe Even But if one of the

Re: [Haskell-cafe] [Haskell] Well-Typed and Skills Matter offer Haskell courses in London in October

2012-09-25 Thread Neil Mitchell
Hi Claude, I have a promo code which gives £50 off to make the Haskell Exchange £175. HASKELLX-2012-TE1. Note that this cost isn't profiteering - unfortunately running a conference (just getting a venue) is expensive. There will probably be some social aspect afterwards, I'll certainly go to a

Re: [Haskell-cafe] lost in generics

2011-10-24 Thread Neil Mitchell
Hi Rustom, I tend to find that I use Uniplate for most stuff, and SYB for very complex stuff (SYB is quite a bit more complicated to do the simple things, but can do things out of reach for Uniplate). The example of manipulating AST's is very common, and using a generics library is a very good

Re: [Haskell-cafe] hledger subcommand detection, RFC

2011-09-11 Thread Neil Mitchell
* an option to all commands that lists out all its available options, to aid with shell completion. See the link I posted above about the oggz tools for an example usage and a link to a bash completion file. Note that the next version of CmdArgs will include command line flag completion

Re: [Haskell-cafe] extending and reusing cmdargs option specs ?

2011-09-11 Thread Neil Mitchell
Hi, You're asking for: http://code.google.com/p/ndmitchell/issues/detail?id=291 - it's something I'm already aware of, and what to do at some point. Unfortunately, it probably won't be anytime in the next few months, but it will happen eventually. Thanks, Neil On Tue, Aug 9, 2011 at 3:08 AM,

Re: [Haskell-cafe] Package descriptions on hackage

2011-09-11 Thread Neil Mitchell
There are several problems here: 1) Not everyone can write beautiful clear English descriptions, it takes a certain skill. 2) The person writing the description is the author, who knows all the details, but the person reading the description doesn't - writing for a different audience is an even

Re: [Haskell-cafe] Code critique - Was [Maybe Int] sans Nothings

2011-05-30 Thread Neil Mitchell
Hi Michael, You've used quite a few entirely redundant brackets. The tool HLint ( http://community.haskell.org/~ndm/hlint) will tell you which ones. Thanks, Neil On Wed, May 25, 2011 at 12:09 AM, michael rice nowg...@yahoo.com wrote: The input file: http://dl.dropbox.com/u/27842656/psalms

Re: [Haskell-cafe] uniplate (was: code review?)

2011-05-30 Thread Neil Mitchell
Hi John, While I'm on the topic, I recently wrote a tool that wanted to traverse deep data structures as produced by haskell-src-exts. ?I wound up with about 50 lines of case expressions and around the time my hands were literally beginning to hurt decided that enough was enough and I

Re: [Haskell-cafe] code review?

2011-05-25 Thread Neil Mitchell
Hi Niklas, I use Uniplate inside HLint, and it's invaluable - there are a lot of times when List Comp + universeBi really hits the spot. +1 on that, I use uniplate for pretty much all my haskell-src-exts tasks these days, works like a charm! I'd love to include some standard traversal

Re: [Haskell-cafe] lambdabot hoogle

2011-05-25 Thread Neil Mitchell
Hi Jacek, Which works swimmingly on Ubuntu, but fails on OS X, because wget seems to be hard-wired. I seem to recall that at least one of the packages that I installed over the last 2 days, automatically selected wget on Ubuntu, and curl on OS X. I see someone raised a bug for this:

Re: [Haskell-cafe] code review?

2011-05-24 Thread Neil Mitchell
Before doing a code review I always demand that the author runs over the code with HLint (http://community.haskell.org/~ndm/hlint) - they Very good point.  In fact you just inspired me to finally download it and run it on my own code.  Thanks for the great tool! Glad you like it. While I'm

Re: [Haskell-cafe] code review?

2011-05-23 Thread Neil Mitchell
'if all == False then return False else return True' is a pretty confusing way to say 'return all'.  In fact, any time you see 'x == True' you can just remove the '== True'.  The whole postAll thing would be clearer as Before doing a code review I always demand that the author runs over the

Re: [Haskell-cafe] Functional dependencies and Peano numbers (and hoogle-bug?)

2011-05-03 Thread Neil Mitchell
Hi Oscar, Sorry for the seriously late reply. I only just found this message in the bottom of my inbox: On an unrelated note: I hoogled to (i.e. http://haskell.org/hoogle/?hoogle=to) and just got a blank page. Nothing. Nil (not even html.../html). Is this a bug or a feature? :) It was a

Re: [Haskell-cafe] wrong backquote in haskell 2010 report Prelude

2011-03-22 Thread Neil Mitchell
Hi Albert, Thanks for spotting this, it definitely looks wrong. On the line above I also see the ^ characters have got corrupted. I've emailed it onwards to the current report editor (Malcolm Wallace) Thanks, Neil On Thu, Mar 17, 2011 at 4:57 PM, Albert Y. C. Lai tre...@vex.net wrote: Haskell

Re: [Haskell-cafe] Cmdargs and common flags

2011-03-12 Thread Neil Mitchell
On Sat, Mar 12, 2011 at 8:02 AM, Magnus Therning mag...@therning.org wrote: On Mon, Feb 14, 2011 at 19:11, Neil Mitchell ndmitch...@gmail.com wrote: Hi Magnus, Finally, you can switch to the pure annotations. I will document them shortly and give an example in System.Console.CmdArgs.Implicit

Re: [Haskell-cafe] Cmdargs and common flags

2011-02-14 Thread Neil Mitchell
Hi Magnus, Finally, you can switch to the pure annotations. I will document them shortly and give an example in System.Console.CmdArgs.Implicit, but for now the details can be found at http://hackage.haskell.org/packages/archive/cmdargs/0.6.7/doc/html/System-Console-CmdArgs-Annotate.html

Re: [Haskell-cafe] Cmdargs and common flags

2011-01-24 Thread Neil Mitchell
Hi Magnus, What you want is actually easier than you think! To quote from http://hackage.haskell.org/packages/archive/cmdargs/0.6.7/doc/html/System-Console-CmdArgs-Implicit.html: Missing Fields: If a field is shared by multiple modes, it may be omitted in subsequent modes, and will default to

[Haskell-cafe] Community.haskell.org is down

2011-01-19 Thread Neil Mitchell
http://www.downforeveryoneorjustme.com/http://community.haskell.org Currently community is down for me. I remember some infrastructure/website strike team was set up, but I couldn't find where to get in contact with them? Thanks, Neil ___ Haskell-Cafe

Re: [Haskell-cafe] parsec2 vs. parsec3... again

2011-01-15 Thread Neil Mitchell
This isn't completely without basis. For instance, I made some big speed improvements to attoparsec's very performance-sensitive takeWhile function just the other day, thanks to -auto-all. I might, though, see if there's a way I could enable that flag only for myself (in a way that I

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-15 Thread Neil Mitchell
On Mon, Jan 10, 2011 at 10:17 PM, Neil Mitchell ndmitch...@gmail.com wrote: If so, I'll make a new release that just changes the file creation mask to the above during hoogle data (and sets it back after). Thanks to Erik's help testing preview versions I've now released Hoogle 4.1.4 that sets

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-15 Thread Neil Mitchell
Thanks to Erik's help testing preview versions I've now released Hoogle 4.1.4 that sets the file creation mask appropriately. Shouldn't data like this really go in /var rather than /usr ?  To quote Wikipedia [1]: /var/: Variable files—files whose content is expected to continually change

Re: [Haskell-cafe] Needed: A repeatable process for installing GHC on Windows

2011-01-15 Thread Neil Mitchell
Earlier today I was trying to set up a Windows build bot for the 'network' package. That turned out to be quite difficult. Too much playing with PATHs, different gcc versions, etc. Does anyone have a repeatable, step-by-step process to install GHC and get a build environment (where I could

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-15 Thread Neil Mitchell
Hi Joachim, The Hoogle databases are expected to change very rarely - most users will install them when they install Hoogle. A small number will update them occasionally as the packages update. I'm using the Cabal datadir to store the databases, but does Cabal provide a more sensible place

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-10 Thread Neil Mitchell
If so, I'll make a new release that just changes the file creation mask to the above during hoogle data (and sets it back after). That makes sense. If you have a darcs repo of the code (or even a tarball), I can check it before create a package. That would be very useful. I'll try and

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-09 Thread Neil Mitchell
Hi Erik, I'll release Hoogle 4.1.3 with a fix later today. Thanks, Neil On Sun, Jan 9, 2011 at 5:07 AM, Erik de Castro Lopo mle...@mega-nerd.com wrote: Hi all, I'm testing out hoogle 4.1.2 on Debian Linux and getting the following when trying to update the local hoogle databases:    erik

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-09 Thread Neil Mitchell
Hi Erik, Hoogle 4.1.3 is now released, which reads and writes Hoogle input files in UTF8 throughout. Please let me know if this doesn't fix your problem. Thanks, Neil On Sun, Jan 9, 2011 at 11:22 AM, Neil Mitchell ndmitch...@gmail.com wrote: Hi Erik, I'll release Hoogle 4.1.3 with a fix

Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-09 Thread Neil Mitchell
Hi Erik, The next problem is that hoogle installed as a Debian package would install as root as /usr/bin/hoogle. Then, when I run hoogle data it wants to install the database at /usr/share/hoogle/hoogle-4.1.3/databases which fails because I'm not running as root. So, to install the databases

Re: [Haskell-cafe] A question regarding cmdargs package

2010-12-30 Thread Neil Mitchell
Hi Sönke, helpArg [groupname Something] should work, but it sounds like it doesn't. I've raised a bug: http://code.google.com/p/ndmitchell/issues/detail?id=392 I'll probably have this fixed in about a week. Thanks, Neil On Thu, Dec 30, 2010 at 4:05 PM, Sönke Hahn sh...@cs.tu-berlin.de wrote:

Re: [Haskell-cafe] A question regarding cmdargs package

2010-12-30 Thread Neil Mitchell
Hi Sönke, I've just released cmdargs-0.6.6 which supports helpArgs [groupname Something] Thanks, Neil On Thu, Dec 30, 2010 at 5:09 PM, Neil Mitchell ndmitch...@gmail.com wrote: Hi Sönke, helpArg [groupname Something] should work, but it sounds like it doesn't. I've raised a bug: http

Re: [Haskell-cafe] OT: Monad co-tutorial: the Compilation Monad

2010-12-18 Thread Neil Mitchell
Er, it works for me. Maybe *your* DNS has been hijacked? I know lots of Windows viruses play tricks like this... No, the DNS for haskell.org was down yesterday - if you try again today (after the DNS caches have cleared) it will work. Thanks, Neil

Re: [Haskell-cafe] Rendering of hask in new wiki (MSIE6)

2010-12-15 Thread Neil Mitchell
Hi In general I'd say that MSIE should be avoided and updated to newer version like 7 or 8 (according to wikipedia they should be avaible for Windows XP - or at least they were available when Windows XP was supported) - IE6 have technology from 2001. I understand however that it may be

Re: [Haskell-cafe] Weird error during derive-2.3.0.2 build

2010-12-13 Thread Neil Mitchell
Hi Alex, The latest version of derive is 2.4.1, which has a number of compile fixes for newer compilers. Any package I maintain is tested on GHC 6.10.4, 6.12.3 and 7.0.1 - so this bug should not be present in 2.4.1. Thanks, Neil On Sun, Dec 12, 2010 at 10:07 PM, Alex alex.s...@gmail.com wrote:

Re: [Haskell-cafe] Question about TagSoup

2010-12-06 Thread Neil Mitchell
Hi David, I see no reason not to use TagSoup for this, assuming it does what you want. It wasn't really designed for either modification or round tripping, so be careful that things like entities don't become corrupted. Also note that this won't replace all the contents of the Content tag, only

[Haskell-cafe] Space not reclaimed by GC

2010-11-18 Thread Neil Mitchell
Hi, I have a program which runs, then calls performGC multiple times. I'd expect all (or nearly all) of the memory to be freed by that point. But it isn't. Given this program: import Language.Haskell.Exts.Annotated -- from haskell-src-exts import System.Mem main :: IO () main = do let src

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

2010-11-15 Thread Neil Mitchell
I've been working on a project that requires me to do screen scraping. If you are screen scraping HTML I think tagsoup is a very good choice. The use of tagsoup means that you have a real HTML 5 compliant parser underneath, and then you can use whatever technique you wish to split up the page

Re: [Haskell-cafe] xml packages

2010-11-15 Thread Neil Mitchell
First question. As I saw in sources, both hxt and haxml uses [Char]'s. this is very inefficient. I want to know, does any effective parser for haskell, written in haskell, exists. The TagSoup parser can generate ByteString syntax trees - but they're quite a bit slower than [Char] versions. I

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

2010-11-02 Thread Neil Mitchell
Hi Michael, If you just replace all 'str' with 'String' when reading the signature then that will almost certainly be sufficient for your purposes. So read it as: fromAttrib :: String - Tag String - String Where Tag String can be thought of as just Tag. If you try to parse HTML with regular

Re: [Haskell-cafe] Idea for a tool

2010-10-20 Thread Neil Mitchell
, 2010 at 8:27 AM, Bas van Dijk v.dijk@gmail.com wrote: On Wed, Oct 20, 2010 at 7:36 AM, Michael Snoyman mich...@snoyman.com wrote: Hi all, I saw a quote from Eric Kow via Neil Mitchell[1] that we don't spend enough time writing tools. Well, I've decided that the most annoying part of package

Re: [Haskell-cafe] a couple of cabal related questions

2010-10-13 Thread Neil Mitchell
I do this using a .ghci file. For Hoogle I have a file called Paths.hs with the module name Paths_hoogle and stub exports. I then have my .ghci file as: :load Main.hs Paths.hs Now Paths.hs will never interfere, or be picked up in ghc --make, because it has the wrong name - but is used in ghci.

Re: [Haskell-cafe] Re: A question regarding cmdargs package

2010-10-12 Thread Neil Mitchell
This makes me curious.  What's the use case where you want to allow the user to pass arguments on the command line, but you don't want that user to be able to use '--help' to find out what arguments may be passed? When you don't want to bother defining the help options/descriptions? :p

Re: [Haskell-cafe] Re: Re: A question regarding cmdargs package

2010-10-12 Thread Neil Mitchell
The point here was not so much removing --help, but rather that I want to have control over the 'standard' options (help,version,verbosity) in the same way as for the rest. My program might not have a version, so why offer --version? Or maybe I want a different name for it because the -V is

Re: [Haskell-cafe] Re: A question regarding cmdargs package

2010-10-11 Thread Neil Mitchell
Hi Ben, How can I disable the standard arguments 'help' and 'version'? In general I suggest you email the author of the cmdargs package directly, as well as cc'ing the mailing list (otherwise the author might miss this message, as I did!) In CmdArgs there is currently no way to suppress either

Re: [Haskell-cafe] HTML library with DOM?

2010-10-07 Thread Neil Mitchell
Yes, I don't think I've officially announced a version of TagSoup that has had HTML 5 parsing, but it now does as standard for the last few releases. The HTML 5 spec is still changing, so it's entirely possible something is incorrect in a corner case, but please let me know and I'll fix it.

Re: [Haskell-cafe] Notes from Haskell takes over the world BoF at ICFP

2010-10-07 Thread Neil Mitchell
Hi Digressing a little, can anyone interested in doing so merge hoogle and Hayoo and make them part of Hackage? I am currently working on this in my spare time. I hope to have something to show in the next month. Thanks, Neil ___ Haskell-Cafe

Re: [Haskell-cafe] Re: EDSL for Makefile

2010-10-04 Thread Neil Mitchell
Hi Telling from the video and the slide, Neil's make system is actually really cool. Indeed something I would really enjoy to use. Thanks :-) So you use want and need to tell the system about the static and dynamic dependencies. The want at the beginning just tells which targets to start.

Re: [Haskell-cafe] EDSL for Makefile

2010-10-03 Thread Neil Mitchell
I checked out the video - nice - but I think, understandably, since its not open source yet, not much of implementations details were mentioned. Yes, it's unfortunate. So, I have this unanswered question nagging in my head. In the example below, how can I let the makefile writer refer to

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Neil Mitchell
++ target) } Neil Mitchell gave a talk at AngloHaskell 2009 on doing a better make in Haskell.  I've found the abstract on the wiki: http://www.haskell.org/haskellwiki/AngloHaskell/2009 but, alas, no slides to be found.  My memory was that he had implemented the system successfully

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Neil Mitchell
What great timing! I will be giving a talk at the Haskell Implementors Workshop tomorrow about the Make system Shake. It will be video taped and I can send you the slides after I've given the talk. So wait a day, and I'll give you all the answers. Will you publish the tool too? ;-) No :-(

Re: [Haskell-cafe] TagSoup 0.9

2010-05-25 Thread Neil Mitchell
\NULr\NULs\NULi\NULo\NULn\NUL=\NUL\\NUL1\NUL.\NUL0\NUL\\NUL \NULe\NULn\NULc\NULo\NULd\NULi\NULn\NULg\NUL=\NUL\\NULi\NULs\NULo\NUL-\NUL8\NUL8\NUL5\NUL9\NUL-\NUL1\NUL\\NUL etc etc Is this an easy thing to fix? I've started to look over the code. -Original Message- From: Neil

Re: [Haskell-cafe] No copy XML parser (rough idea only)

2010-05-20 Thread Neil Mitchell
Hi Joachim, I have been playing around with this idea myself in TagSoup (http://community.haskell.org/~ndm/tagsoup). The largest conceptual problem I came across was that TagSoup decodes entities (i.e. gt; becomes ). However, I think that's a minor issue, and entity resolution can be turned off

Re: [Haskell-cafe] TagSoup 0.9

2010-05-19 Thread Neil Mitchell
Hi Ralph, I was using TagSoup 0.8 with great success. On upgrading to 0.9 I have this error: TQ\TagSoup\TagSoupExtensions.lhs:29:17: `Tag' is not applied to enough type arguments Expected kind `*', but `Tag' has kind `* - *' In the type synonym declaration for `Bundle' Failed,

Re: [Haskell-cafe] {-# LANGUAGE DeriveApplicative #-} ?

2010-05-07 Thread Neil Mitchell
Hi, If you think you can write an algorithm for deriving Applicative, I'd welcome you to try adding it to Derive: http://community.haskell.org/~ndm/derive The Functor/Foldable/Traversable derivations all started out in Derive, got tested/implemented/refined there, then moved to GHC later. I

Re: [Haskell-cafe] Would it be evil to add deriving Typeable to newtype Q?

2010-05-07 Thread Neil Mitchell
Hi Leonel, You might want to try Derive (http://community.haskell.org/~ndm/derive) if DrIFT doesn't work for you. They do roughly the same jobs, but Derive has more output formats (it can be spliced in as Template Haskell, generate #include files, output text etc) more derivations (but not quite

Re: [Haskell-cafe] Haskell XML Parsers

2010-05-05 Thread Neil Mitchell
Hi, You might want to take a look at TagSoup (http://community.haskell.org/~ndm/tagsoup) - it parses XML/HTML lazily returning a stream of tags. It doesn't do nesting, but it does have good memory usage. Thanks, Neil On Fri, Apr 30, 2010 at 11:35 AM, R Senington sc06...@leeds.ac.uk wrote: Dear

Re: [Haskell-cafe] Broken ghc documentation links

2010-04-28 Thread Neil Mitchell
Hi, I have recently updated Hoogle so it points at specific documentation. If anyone finds any further bugs, please let me know. I'm hoping to go through Hoogle and revise much of it in the near future, and intend to put things in place to stop this happening again (and keep it up to date).

Re: [Haskell-cafe] ANNOUNCE: Agata-0.2.0

2010-04-21 Thread Neil Mitchell
Hi Jonas, As far as i can tell, derive only works for regular and linear recursive types and Regular uses frequencies to regulate size. (Also Regular doesn't seem to work for QuickCheck-2). Derive will generate instances for all types, but uses a fairly standard formulation (pick between each

Re: [Haskell-cafe] ANNOUNCE: Agata-0.2.0

2010-04-20 Thread Neil Mitchell
Hi, Have you seen the derive package? It also generates QuickCheck instances in virtually the same way - plus it can generate source code and do lots of other types of instances. http://community.haskell.org/~ndm/derive/ Thanks, Neil 2010/4/20 Bas van Dijk v.dijk@gmail.com: 2010/4/19

Re: GUI (was: Re: [Haskell-cafe] DLL on Windows)

2010-04-20 Thread Neil Mitchell
:-( - it seems that cabal install wx isn't how you install it on Windows, not by a long shot. I'm currently a Gtk2hs user. If wx got to the point where cabal install wx either installed wx, including all it's non-Haskell dependencies, or printed out a message you're a windows user who hasn't

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Neil Mitchell
Hi John, Any chance of seeing the benchmark? You're not the only one with an optimising compiler tucked away somewhere :-) I have one benchmark where I outperform GHC by 21 times, although saying it's artificial is a bit of an understatement... Thanks, Neil On Fri, Mar 26, 2010 at 6:27 PM,

Re: [Haskell-cafe] Syntax programming with lexemes rather than trees?

2010-03-23 Thread Neil Mitchell
Hi Stephen, It actually sounds like your representation has structure, but you dislike structure because it's hard to work with. The solution is a generics library, and I recommend Uniplate: http://community.haskell.org/~ndm/uniplate Imagine you have a ridiculously complex AST, with beam groups

Re: [Haskell-cafe] installing Network on windows

2010-03-23 Thread Neil Mitchell
Hi, I managed this with the following sequence of commands: http://www.haskell.org/pipermail/libraries/2010-February/013038.html Thanks, Neil On Wed, Mar 17, 2010 at 9:44 PM, Niklas Larsson nikl...@ymail.com wrote: Hi! It needs some shell, if you install MSYS from mingw and do the cabal

Re: [Haskell-cafe] Haskell platform for GHC 6.12.1?

2010-03-07 Thread Neil Mitchell
://www.haskell.org/cabal/download.html ? A while ago I gave up on trying to get GHC 6.12.1 working, for I lost the battle building cabal on my windows machine It would help A LOT when cabal.exe could be downloaded somewhere... Thanks Han Joosten Neil Mitchell wrote: Have you tried compiling cabal

Re: [Haskell-cafe] Haskell platform for GHC 6.12.1?

2010-03-06 Thread Neil Mitchell
That and all Cabal 0.8 binaries on Windows suffer from zlib corrupted stream issues. I've got cabal-install binary, but it's not worth distributing :-( There is a cabal ticket for this. Thanks, Neil On Fri, Mar 5, 2010 at 11:27 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Andrew

Re: [Haskell-cafe] Haskell platform for GHC 6.12.1?

2010-03-06 Thread Neil Mitchell
Have you tried compiling cabal-install with GHC 6.12.1? I got these stream errors after I compiled it with 6.10.4, but with 6.12.1 it's working flawless. Woohoo, your tip works! Thanks a lot. Neil 2010/3/6 Neil Mitchell ndmitch...@gmail.com That and all Cabal 0.8 binaries on Windows

Re: [Haskell-cafe] DLL on Windows

2010-02-16 Thread Neil Mitchell
Hi Serguey, I notice you are using GHC 6.10.3, I suggest you try 6.10.4 which I know does work. I rewrote that section of the manual recently. I haven't had time to merge it back in, but it might give you more help: http://neilmitchell.blogspot.com/2009/11/haskell-dlls-on-windows.html Thanks,

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-16 Thread Neil Mitchell
Hi The symbols that are not specified in a library can be found here:  http://www.haskell.org/haskellwiki/Keywords Hoogle used to show links to this page, when a keyword was searched, but not anymore. And that's a bug: http://code.google.com/p/ndmitchell/issues/detail?id=280 (that I only

Re: [Haskell-cafe] DLL on Windows

2010-02-16 Thread Neil Mitchell
can, I'll use 6.10.3 for gtk2hs code and 6.12 for all new stuff. 2010/2/16 Neil Mitchell ndmitch...@gmail.com: Hi Serguey, I notice you are using GHC 6.10.3, I suggest you try 6.10.4 which I know does work. I rewrote that section of the manual recently. I haven't had time to merge it back

Re: [Haskell-cafe] DLL on Windows

2010-02-16 Thread Neil Mitchell
very much. How do you use C# for GUI development? Do you use hs-dotnet? 2010/2/16 Neil Mitchell ndmitch...@gmail.com: Hi Serguey, A GHC 6.10.4 version of Gtk2hs: http://www.mail-archive.com/gtk2hs-de...@lists.sourceforge.net/msg00340.html I used to recommend Gtk2hs over wxHaskell for GUI

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-16 Thread Neil Mitchell
Hi Patrick, The symbols that are not specified in a library can be found here:  http://www.haskell.org/haskellwiki/Keywords I noticed that \ is not in that list, should it be? Yes! Add it. If it would help a beginner understand what something means, it should be on that list. Thanks, Neil

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-03 Thread Neil Mitchell
Hi Gwern, Please update: haskell-src-exts - haskell-src **Unknown** This project was an unqualified success. haskell-src-exts is now one of the most commonly used Haskell libraries, achieved the goals in the project proposal, and is an essential piece of Haskell infrastructure. I couldn't be

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-02 Thread Neil Mitchell
I'd also be happy to mentor. Where is the official place to collect project ideas? We used trac previously, are we still using it or are we now on Reddit? Thanks, Neil 2010/2/1 sterl s.clo...@gmail.com: Malcolm Wallace wrote: Google has announced that the Summer of Code programme will be

[Haskell-cafe] Hackage Package version ranges

2010-02-02 Thread Neil Mitchell
Hi, I maintain the Haskell package HLint. HLint depends on haskell-src-exts, cpphs, hscolour and uniplate, plus things which are shipped with GHC. For each of the external library dependencies, I have to specify a version constraint. For example, I developed HLint against cpphs-1.10 so I can

Re: [Haskell-cafe]SYB/Generics documentation inaccessible

2010-02-02 Thread Neil Mitchell
I emailed Simon Peyton Jones about this a few weeks ago (he links to these pages) and got the reply thanks, will chase - so people are aware of it. The links are in many places, which is a bit of a shame. Thanks, Neil On Tue, Feb 2, 2010 at 8:51 PM, Arne Dehli Halvorsen arne@gmail.com wrote:

Re: [Haskell-cafe] Hackage Package version ranges

2010-02-02 Thread Neil Mitchell
Alternatively, if I could sign up to be emailed when something went wrong, I'd happily fix it. i.e. I'd like an email either when my package fails to compile against the latest version of all packages but within my constrained range, or when the latest version falls outside my constraint

Re: [Haskell-cafe] Trapping getChar before echo

2010-01-31 Thread Neil Mitchell
Hi Mark, http://haskell.org/hoogle/?hoogle=set+echo Thanks, Neil On Sun, Jan 31, 2010 at 8:47 AM, Mark Spezzano mark.spezz...@chariot.net.au wrote: Hi, Is there any way of trapping keystrokes in Haskell, modifying them, and then echoing? Basically I want to give the user a prompt  like:

[Haskell-cafe] Community.haskell.org is down

2010-01-29 Thread Neil Mitchell
http://downforeveryoneorjustme.com/community.haskell.org/ Thanks, Neil ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] problems installing cabal on windows

2010-01-29 Thread Neil Mitchell
Hi, Try a: cabal update cabal install cabal-install That will set you up with a newer version of Cabal, that should be GHC 6.12 compatible. Make sure you do all this while GHC 6.10 is on the path, so it knows how to install cabal-install. Thanks, Neil On Fri, Jan 29, 2010 at 6:36 PM, Han

Re: [Haskell-cafe] Supporting GHC 6.10 and 6.12 in HDBC-postgresql Setup.hs

2010-01-27 Thread Neil Mitchell
The other HDBC problem I have is various dependencies relying on QC1. The next HP will ship with QC 2.1 (in coming weeks), so it might be a good time for people to start migrating, since that will be the only version of QC on many distros. I would strongly suggest moving to QC 2 for other

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-26 Thread Neil Mitchell
Hi The problem with Data for Text isn't that we have to write a new instance, but that you could argue that proper handling of Text with Data would not be using a type class, but have special knowledge baked in to Data. That's far worse than the Serialise problem mentioned above, and no one

[Haskell-cafe] Re: Failing to install hxt: tagsoup versioning

2010-01-25 Thread Neil Mitchell
Hi Minor version bumps which leave the API unchanged shouldn't break anything, small additions to the API should rarely break things, so if people adhere to http://www.haskell.org/haskellwiki/Package_versioning_policy , Neil, in this case i think, tagsoup's version shouldn't have changed

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-24 Thread Neil Mitchell
Hi, The problem with Data for Text isn't that we have to write a new instance, but that you could argue that proper handling of Text with Data would not be using a type class, but have special knowledge baked in to Data. That's far worse than the Serialise problem mentioned above, and no one

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Neil Mitchell
Would it be possible to get a Data instance for Data.Text.Text? From the last time this came up, I gather that the correctish thing to do (for reasons too obscure to me) is to teach SYB and its many cousins about Text, or else there'll be some sort of disturbance in the Force. No, that's

Re: [Haskell-cafe] http://trac.haskell.org down?

2010-01-22 Thread Neil Mitchell
Hi community.haskell.org is down as well :-( Thanks, Neil On Fri, Jan 22, 2010 at 8:41 PM, James Britt ja...@neurogami.com wrote: Been trying to reach http://trac.haskell.org for most of the morning, but nothing comes up. Seems I'm not alone:

Re: Re[4]: [Haskell-cafe] Poor man's generic programming

2010-01-20 Thread Neil Mitchell
Hi Bulat, The intention was always that the manual should be an up-to-date version that contains everything people need to use the library, but not the internal details. The paper was revised in to my thesis chapter, which is probably the best description of the internals of Uniplate. The thesis

Re: [Haskell-cafe] Poor man's generic programming

2010-01-19 Thread Neil Mitchell
Hi Henning, Uniplate is simple (only multi parameter type classes, and even then only in a very simple usage), fast (one of the fastest generics libraries) and concise (probably the most concise generics library). It's also not as powerful as most of the other generics libraries, but I find

Re: Re[2]: [Haskell-cafe] Poor man's generic programming

2010-01-19 Thread Neil Mitchell
Hi Bulat, Uniplate might be the answer you are looking for - http://community.haskell.org/~ndm/uniplate it's brilliant! some people has the talent to discover complex things and you have the talent to make complex things simple. it's first and only generics library that i can easily learn

Re: [Haskell-cafe] Poor man's generic programming

2010-01-18 Thread Neil Mitchell
Hi Henning, Uniplate might be the answer you are looking for - http://community.haskell.org/~ndm/uniplate Uniplate is simple (only multi parameter type classes, and even then only in a very simple usage), fast (one of the fastest generics libraries) and concise (probably the most concise

Re: [Haskell-cafe] Typed Configuration Files

2010-01-14 Thread Neil Mitchell
Hi The CmdArgs manual might help: http://community.haskell.org/~ndm/darcs/cmdargs/cmdargs.htm Seriously, cmdargs is *brilliant*.  It's also magic (to me). On this list, I'm uncertain whether brilliant is a warning or a recommendation, but magic is clearly irresistible, so I had a go at

[Haskell-cafe] Hackage down

2010-01-10 Thread Neil Mitchell
Hi Hackage is down: http://downforeveryoneorjustme.com/hackage.haskell.org Thanks, Neil ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Typed Configuration Files

2010-01-08 Thread Neil Mitchell
Hi, Seriously, cmdargs is *brilliant*.  It's also magic (to me). Not only to you in fact it is black magic since it uses unsafePerformIO :( The problem isn't that it's black magic or that it uses unsafePerformIO - the problem is that it's horribly impure, so doesn't obey referential

Re: [Haskell-cafe] Significant slow-down in parallel code?

2010-01-06 Thread Neil Mitchell
4, 2010 at 3:14 PM, Neil Mitchell ndmitch...@gmail.com wrote: Hi Jamie, First question, what version of GHC are you using? There are significant performance improvements to parallel code in GHC 6.12, so it's worth an upgrade. Once you've upgraded you might want to try out threadscope which

Re: [Haskell-cafe] Significant slow-down in parallel code?

2010-01-04 Thread Neil Mitchell
Hi Jamie, First question, what version of GHC are you using? There are significant performance improvements to parallel code in GHC 6.12, so it's worth an upgrade. Once you've upgraded you might want to try out threadscope which is designed to help track down these sorts of problems. If you are

Re: [Haskell-cafe] Instances of `IsString`.

2009-12-23 Thread Neil Mitchell
Hi Jason, I believe the original purpose of IsString was to enable writing of DSL's, much like described in this paper: http://portal.acm.org/citation.cfm?id=1411236 As such, you might find far more uses of IsString inside DSL's, some of which are likely to remain private. It was never designed

Re: [Haskell-cafe] SmallCheck design question

2009-12-08 Thread Neil Mitchell
Hi, I'm cc'ing the people behind smallcheck, who can give definitive answers. 1. why are the tuple constructors treated differently? I'd expect depth (x,y) = succ $ max (depth x) (depth y) but the succ is missing. I think this was a design choice. Some people would consider: data Foo = Foo

Re: [Haskell-cafe] Hayoo and Hoogle (beginner question)

2009-12-07 Thread Neil Mitchell
Hi, It probably helps to know some of the history, as it explains a lot of what you see today. Hoogle was written first (about 5 years ago now), before there was hackage (so it doesn't search hackage), and with an emphasis on type search (as that's cool). Hayoo came a lot later (about 2 years ago

Re: [Haskell-cafe] Hoogle Down

2009-12-07 Thread Neil Mitchell
Hi Elliot, It is the right place, and Hoogle is now back up. Unfortunately the server it was run was out of disk space, which caused Hoogle to fail. Hopefully it won't happen again. Thanks, Neil 2009/11/29 Elliot Wolk elliot.w...@gmail.com: hello! im not sure that this is the correct mailing

Re: [Haskell-cafe] hoogle down

2009-11-28 Thread Neil Mitchell
Hi Keith, Thanks for pointing this out. I've no idea why it's failing, but will check once I get home - unfortunately the machine I'm currently on doesn't permit me to ssh in and find out. Thanks, Neil On Sat, Nov 28, 2009 at 6:53 AM, Keith Sheppard keiths...@gmail.com wrote: hoogle is down

  1   2   3   4   5   6   7   8   9   10   >