Re: ghc - force library search order

2009-06-01 Thread John Lask
as it is fragile wrt changes in the module structure of the library I have constructed. jvl - Original Message - From: Simon Marlow marlo...@gmail.com To: John Lask jvl...@hotmail.com Cc: glasgow-haskell-users@haskell.org Sent: Monday, June 01, 2009 9:15 PM Subject: Re: ghc - force

ghc 6.10.4 infix declarations and '\' bug or not ?

2009-08-21 Thread John Lask
in declaring fixity for an operator (\\) to get it to compile using ghc 6.10.4, I needed to use the following code infixl 9 \\\ (\\) a b = etc ... where I assume the first \ escapes the second \, using infixl 9 \\ generates a syntax error infixl 9 \\ used to compile no problems with ghc

Re: ghc 6.10.4 infix declarations and '\' bug or not ?

2009-08-22 Thread John Lask
indeed it was the cpp, and the behaviour is consistent beetween versions, I must have introduced some changes that affected the eol marker. Thanks for your tip. jvl - Original Message - From: Duncan Coutts duncan.cou...@worc.ox.ac.uk To: John Lask jvl...@hotmail.com Cc: glasgow

ghc rts selection and third party libraries

2010-01-31 Thread John Lask
Hello I hope someone can provide some guidance on how I can solve a certain problem. I have a library that taps into the ghc c rts: specifically when the rts is single threaded I am pumping events in via: stg_pending_events, when the threaded rts is used I use sendIOManagerEvent. i.e. I

asynchronous call-backs

2010-02-19 Thread John Lask
(installing callback); g_callback = sighandler; CreateThread(NULL,0, (LPTHREAD_START_ROUTINE)alarm_callback, (void*)0,0,0); } On 01/02/10 13:36, John Lask wrote: I understand these are internals of ghc and subject to change. The reason for their use

new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread John Lask
Whilst I have nothing against the change in syntax for recursive do aka http://old.nabble.com/Update-on-GHC-6.12.1-td26103595.html Instead of writing mdo a - getChar b - f c c - g b putChar c return b you would write do a - getChar rec { b - f c ; c

Re: new recursive do notation (ghc 6.12.x) spoils layout

2010-06-20 Thread John Lask
I think this would just require the lex layout rules already in place for do/let in GHC; my guess is that your example would work if the body were indented past the r of rec. for the record ... t2 = do rec a - getChar b - f c c - g b putChar c return b

exporting instances: was Using associated data types to create unpacked data structures

2010-08-12 Thread John Lask
re ... As I understand it the generated code is not exported from the translation unit so there are no collisions at link time. We could do the same if we could force the generated type class instance to not be exported from the module. I have encountered several occasions when I wished

ghc trac login and email verification

2011-01-31 Thread John Lask
relating to the ghc trac discussion ... for some time I have had a ghc trac login, but every time I login it asks for an email verification token (http://hackage.haskell.org/trac/ghc/verify_email) but no token has ever been sent to me, nor when I change my email or request a resend is one

Re: GHCJS

2011-08-02 Thread John Lask
What is really required is a pluggable back-end infrastructure - whereby various back-ends could be maintained (or not) at the discretion of their originators and separate to the official ghc back-ends. Ideally pluggable back-ends would be installable as packages. such infrastructure, I

Re: GHCJS

2011-08-02 Thread John Lask
On 3/08/2011 2:10 PM, Brandon Allbery wrote: On Wed, Aug 3, 2011 at 00:31, John Laskjvl...@hotmail.com wrote: What is really required is a pluggable back-end infrastructure - whereby various back-ends could be maintained (or not) at the discretion of their originators and separate to the

Re: behaviour change in getDirectoryContents in GHC 7.2?

2011-11-06 Thread John Lask
for what it is worth, I would like to see both System.IO and Directory export internal functions where the filepath is a Raw Byte representation. I have utilities that regularly scan 100,000 of files and hash the path the details of which are irrelevant to this discussion, the point being that

Re: behaviour change in getDirectoryContents in GHC 7.2?

2011-11-09 Thread John Lask
My primary concerns are (in order of priority - and I only speak for myself) (a) consistency across platforms (b) minimize (unrequired) performance overhead I would prefer an api which is consistent for both win32, posix or other os which only did as much as what the user (us) wanted for

Re: Records in Haskell - namespacing for fields

2012-01-31 Thread John Lask
On 1/02/2012 12:26 AM, AntC wrote: Simon Peyton-Jonessimonpjat microsoft.com writes: Beyond that, it would really help namespacing in general to appropriately extend the module system to allow multiple modules to be declared within a single file -- or, better yet, submodules. [snip] the

Re: [Haskell-cafe] Call to arms: lambda-case is stuck and needs your help

2012-07-12 Thread John Lask
On 13/07/2012 3:08 AM, Cale Gibbard wrote: Personally I don't see why everyone appears to prefer the syntax with \ in it over just the obvious case section syntax which was originally proposed. case of { ... } looks much better to me than \case of { ... } and the former makes sense to me as