Re: [Haskell] Treatment of unknown pragmas

2018-12-02 Thread Neil Mitchell
Hi all, I've just released HLint 2.1.11 which supports three different forms of pragma as per https://github.com/ndmitchell/hlint#ignoring-hints, so you can write: * {-# ANN module "HLint: ignore Eta reduce" #-} * {-# HLINT ignore "Eta reduce" #-} * {- HLINT ignore "Eta reduce" -} The last two

Re: [Haskell-community] 2018 state of Haskell survey

2018-10-14 Thread Neil Mitchell
Hi Taylor, What does official support look like? I don't think there's anything above and beyond what you're already doing. Thanks, Neil On Sun, 14 Oct 2018 at 3:49 pm, Taylor Fausak wrote: > (I have CCed because the haskell-community > mailing list seems relatively quiet and I want to make

Re: ANNOUNCE: GHC 7.10.1 Release Candidate 3

2015-03-17 Thread Neil Mitchell
All of the mingw links give me 403 forbidden errors. Do they have permission issues? Thanks, Neil On Mon, Mar 16, 2015 at 8:30 PM, Austin Seipp aus...@well-typed.com wrote: We are pleased to announce the third release candidate for GHC 7.10.1:

Re: ANNOUNCE: GHC 7.10.1 Release Candidate 3

2015-03-17 Thread Neil Mitchell
Confirmed, thanks a lot! On Tue, Mar 17, 2015 at 1:47 PM, Austin Seipp aus...@well-typed.com wrote: Neil, this has been fixed. On Tue, Mar 17, 2015 at 7:52 AM, Neil Mitchell ndmitch...@gmail.com wrote: All of the mingw links give me 403 forbidden errors. Do they have permission issues

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: Error while installing new packages with GHC 7.4.1

2012-03-01 Thread Neil Mitchell
Hi Antoras, The darcs version of Hoogle has had a more permissive dependency for a few weeks. Had I realised the dependency caused problems I'd have released a new version immediately! As it stands, I'll release a new version in about 4 hours. If you can't wait that long, try darcs get

Re: Error while installing new packages with GHC 7.4.1

2012-03-01 Thread Neil Mitchell
Hi Antoras, I've just released Hoogle 4.2.9, which allows Cabal 1.15, so hopefully will install correctly for you. Thanks, Neil On Thu, Mar 1, 2012 at 5:02 PM, Neil Mitchell ndmitch...@gmail.com wrote: Hi Antoras, The darcs version of Hoogle has had a more permissive dependency for a few

Re: Error while installing new packages with GHC 7.4.1

2012-03-01 Thread Neil Mitchell
directory-1.1.0.2-07820857642f1427d8b3bb49f93f97b0 process-1.1.0.1-18dadd8ad5fc640f55a7afdc7aace500 (use -v for more information) [...] On Thu 01 Mar 2012 11:06:43 PM CET, Neil Mitchell wrote: Hi Antoras, I've just released Hoogle 4.2.9, which allows Cabal 1.15, so hopefully will install

Re: parallelizing ghc

2012-01-29 Thread Neil Mitchell
Hi Simon, I have found that a factor of 2 parallelism is required on Linux to draw with ghc --make. In particular: GHC --make = 7.688 Shake -j1 = 11.828 (of which 11.702 is spent running system commands) Shake full -j4 = 7.414 (of which 12.906 is spent running system commands) This is for 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: hoogling GHC

2011-03-14 Thread Neil Mitchell
cause all the URL's in the GHC package that aren't explicit to have the above URL prepended to them. If there's demand, I can add a flag. Thanks, Neil On Mar 9, 2011, at 1:59 PM, Neil Mitchell wrote: Hi Ranjit, It sounds like you've got quite far. Sadly the manual is a bit out of date

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: hoogling GHC

2011-03-09 Thread Neil Mitchell
Hi Ranjit, It sounds like you've got quite far. Sadly the manual is a bit out of date with respect to generating databases, but generally you need to produce ghc.txt on your own (using tools such as GHC's make system), then you can do: hoogle convert ghc.txt default.hoo Then you can run the

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

Re: Release/git plans

2011-01-22 Thread Neil Mitchell
Hi Austin, The compiler plugins work is a great, and I'd be a likely user. The original version wasn't supported on Windows, because GHC on Windows lacked various forms of dynamic linking. Does the current patch you've prepared work on Windows? Thanks, Neil On Sat, Jan 22, 2011 at 10:29 AM, Max

[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: RFC: migrating to git

2011-01-10 Thread Neil Mitchell
As another non-GHC contributor, my opinion should probably also count for little, but my experience with git has been poor. I have used git daily in my job for the last year.  Like Simon PJ, I struggle to understand the underlying model of git, despite reading quite a few tutorials.  I have

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

Re: [Haskell] haskell.org downtime: Tuesday Nov 30th

2010-11-29 Thread Neil Mitchell
Hi Bas, Neil will be working on developing Hoogle all this weekend, but without Internet access. He expects to get it set up on the new server sometime during next week, but probably not before Weds. Ok thanks for the heads up! We get a new developer at work next week who needs to read

Re: [Haskell] haskell.org downtime: Tuesday Nov 30th

2010-11-29 Thread Neil Mitchell
, Neil On Mon, Nov 29, 2010 at 10:01 PM, Bas van Dijk v.dijk@gmail.com wrote: On Mon, Nov 29, 2010 at 10:02 PM, Neil Mitchell ndmitch...@gmail.com wrote: Hi Bas, Neil will be working on developing Hoogle all this weekend, but without Internet access. He expects to get it set up on the new

Re: Add haskell-src as an official machine-readable component of the Haskell standard

2010-11-18 Thread Neil Mitchell
There is nothing to stop an library author doing exactly this, and it might even be useful for some people (personally I'm going to stick to haskell-src-exts, because it's a brilliant library). However, I don't think we should make it official or part of the standard. I've found plenty of HSE/GHC

[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: MonoLocalBinds and darcs

2010-11-02 Thread Neil Mitchell
Hi Ganesh, Make sure you are using RC2 of the compiler, from what I remember RC1 required signatures it shouldn't have, or enabled MonoLocalBinds more than it should - RC2 required less signatures. However, your code could well just be heavily using the relevant features. Thanks, Neil On Tue,

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: un-used record wildcards

2010-10-16 Thread Neil Mitchell
Hi Simon, I've seen this issue with GHC 6.12.3 (and assumed it was by design). It occurs with a slight modification of your example: {-# LANGUAGE RecordWildCards #-} module Test where data T = MkT { f,g :: Int } p x = let MkT{..} = x in f This example warns about Defined but not used: `g' on

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: BlockedIndefinitelyOnMVar exception

2010-07-05 Thread Neil Mitchell
I wrote my Chan around the abstraction: data Chan a = Chan (MVar (Either [a] [MVar a])) The Chan either has elements in it (Left), or has readers waiting for elements (Right). To get the fairness properties on Chan you might want to make these two lists Queue's, but I think the basic

Re: BlockedIndefinitelyOnMVar exception

2010-07-04 Thread Neil Mitchell
Hi Simon, My suspicion for the root cause of the problem is that Concurrent.Chan is incorrect. In the course of debugging this problem we found 2 bugs in Chan, and while I never tracked down any other bugs in Chan, I no longer trust it. By rewriting parts of the program, including avoiding

Re: BlockedIndefinitelyOnMVar exception

2010-07-04 Thread Neil Mitchell
http://hackage.haskell.org/trac/ghc/ticket/4154 Yup, that's a bug.  Not clear if it's fixable. http://hackage.haskell.org/trac/ghc/ticket/3527 That too.  A very similar bug in fact, if there is a fix it will probably fix both of them.  The problem is that readChan holds a lock on the read

Re: BlockedIndefinitelyOnMVar exception

2010-07-01 Thread Neil Mitchell
Hi Simon, Thanks for the excellent information. I've now debugged my problem, and think I've got the last of the MVar blocking problems out. * How confident are people that this exception does really mean that it is in a blocked state? Is there any chance the error could be raised

Re: BlockedIndefinitelyOnMVar exception

2010-06-26 Thread Neil Mitchell
My understanding was that this error occurred when one thread was blocked, waiting on an MVar, and no other thread in the program has a reference to that MVar (this can be detected during GC).  Ergo, the blocked thread will end up waiting forever because no-one can ever wake it up again. That

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] Latest Haskell Platform for Windows (2010.1.0.0) does not seem to include C++ support

2010-05-04 Thread Neil Mitchell
Hi On checking, Haskell Platform\2010.1.0.0\mingw\libexec\gcc\mingw32\3.4.5 does not contain cc1plus.exe. Previous versions of the platform have done so. Is this an accidental change or a deliberate policy decision? ghc-6.12.1 on Windows did not include the mingw C++ compiler.  This was a

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: Plans for GHC 6.12.2

2010-03-25 Thread Neil Mitchell
Hi, Could this bug please be added: http://hackage.haskell.org/trac/ghc/ticket/3893 It's a regression against GHC 6.10.4, entirely a packaging issue, and most likely an oversight to remove the file. Thanks, Neil On Tue, Mar 23, 2010 at 6:38 PM, Ian Lynagh ig...@earth.li wrote: Hi all, This

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: Easily generating efficient instances for classes

2010-03-02 Thread Neil Mitchell
Hi Derive generates declarations - they can be instances, classes, data types, functions, type synonyms etc. Thanks, Neil On Mon, Mar 1, 2010 at 10:32 AM, John Lato jwl...@gmail.com wrote: From: Christian H?ner zu Siederdissen Hi, I am thinking about how to easily generate instances for a

Re: Easily generating efficient instances for classes

2010-02-28 Thread Neil Mitchell
As Bulat says, the Derive package might be a good way to go. I am happy to accept any new derivations, and you get lots of things for free - including writing your code using the nice haskell-src-exts library, preprocessor support, TH support etc. Thanks, Neil On Thu, Feb 25, 2010 at 8:57 AM,

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

[Haskell] Fun in the Afternoon, London, 17th Feb (next Wednesday)

2010-02-10 Thread Neil Mitchell
Dear functional programmers, Standard Chartered Bank in London will be hosting the next Fun In The Afternoon event on Wednesday the 17th of February. The program of talks, with abstracts, is at the bottom of this email. Everyone is welcome! If you would like to come, please email me (ndmitchell

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

  1   2   3   4   5   6   7   8   9   10   >