[Haskell-cafe] How large is the Haskell community ?

2011-02-12 Thread Aaron Gray
I was wondering if anyone had an idea or estimate as to how large the Haskell community is ? Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How large is the Haskell community ?

2011-02-12 Thread Aaron Gray
On 12 February 2011 20:24, Don Stewart d...@galois.com wrote: aaronngray.lists: I was wondering if anyone had an idea or estimate as to how large the Haskell community is ? No one knows. There are many figures that you could use to estimate the size (e.g. I try to gather signifcant

Re: [Haskell-cafe] How large is the Haskell community ?

2011-02-12 Thread Aaron Gray
On 12 February 2011 21:31, Erik de Castro Lopo mle...@mega-nerd.com wrote: Aaron Gray wrote: On 12 February 2011 20:24, Don Stewart d...@galois.com wrote: aaronngray.lists: I was wondering if anyone had an idea or estimate as to how large the Haskell community

Re: [Haskell-cafe] How large is the Haskell community ?

2011-02-12 Thread Aaron Gray
On 12 February 2011 23:57, Jan Christiansen j...@informatik.uni-kiel.dewrote: On 12.02.2011, at 21:18, Aaron Gray wrote: I was wondering if anyone had an idea or estimate as to how large the Haskell community is ? All the answers made me wonder what the criterion is to be a member

Re: [Haskell-cafe] A few days to go before the old server goes down

2011-01-30 Thread Aaron Gray
On 27 January 2011 22:42, Henk-Jan van Tuyl hjgt...@chello.nl wrote: L.S., Only four days until the old Haskell.org server disappears; I found the following missing: http://www.haskell.org/yale/ http://darcs.haskell.org/hfuse/ http://haskell.org/gtk2hs/ http://haskell.org/FranTk

[Haskell-cafe] Tracing applied functions

2011-01-24 Thread Aaron Gray
Is there anyway to get a list of applied functions in the running of a Haskell program ? Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Tracing applied functions

2011-01-24 Thread Aaron Gray
On 24 January 2011 23:01, Ivan Lazar Miljenovic ivan.miljeno...@gmail.comwrote: On 25 January 2011 02:55, Aaron Gray aaronngray.li...@gmail.com wrote: Is there anyway to get a list of applied functions in the running of a Haskell program ? Profile it? Okay, How do I do that ? Aaron

Re: [Haskell-cafe] Tracing applied functions

2011-01-24 Thread Aaron Gray
On 25 January 2011 02:12, Ivan Lazar Miljenovic ivan.miljeno...@gmail.comwrote: On 25 January 2011 12:05, Aaron Gray aaronngray.li...@gmail.com wrote: On 24 January 2011 23:01, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 25 January 2011 02:55, Aaron Gray aaronngray.li

Re: [Haskell-cafe] Data.Ranges show error

2011-01-22 Thread Aaron Gray
On 22 January 2011 13:15, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Saturday 22 January 2011 03:47:55, Aaron Gray wrote: Data.Ranges.hs:12 show (Range x y) = concat [(, show x, –, show y, )] Contains the following charcter sequence :- – Which does

[Haskell-cafe] Flushing Cabal's cache

2011-01-22 Thread Aaron Gray
I am getting the following error :- C:\Languages\Lexer\Haskellcabal install ranges Resolving dependencies... cabal: Error: some packages failed to install: ranges-0.2.3 failed while unpacking the package. The exception was: user error (TAR checksum error) I am on Windows

Re: [Haskell-cafe] Data.Ranges show error

2011-01-22 Thread Aaron Gray
On 22 January 2011 16:31, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Saturday 22 January 2011 17:01:00, Aaron Gray wrote: For me, that's an en-dash (U+2013 / '\8211'). I believe something on your box mangled the UTF-8 encoding. Weird I did a cabal install and have

Re: [Haskell-cafe] Data.Ranges show error

2011-01-22 Thread Aaron Gray
On 22 January 2011 17:04, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Saturday 22 January 2011 17:42:39, Aaron Gray wrote: What's your locale? Could also be that GHC tries to interpret UTF-8 in your locale and barfs on that. Not sure ? Vista's default. Which

[Haskell-cafe] Data.Ranges show error

2011-01-21 Thread Aaron Gray
I am getting the following error when trying to do a show on a Ranges object :- C:\Languages\Haskellghci rangeTest.hs GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-11 Thread Aaron Gray
On 11 January 2011 00:02, Antoine Latter aslat...@gmail.com wrote: On Mon, Jan 10, 2011 at 5:23 PM, Aaron Gray aaronngray.li...@gmail.com wrote: On 10 January 2011 22:30, Henning Thielemann lemm...@henning-thielemann.de wrote: John Lato schrieb: You could use my word24 package[1

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-11 Thread Aaron Gray
On 11 January 2011 18:54, Antoine Latter aslat...@gmail.com wrote: On Tue, Jan 11, 2011 at 10:22 AM, Aaron Gray aaronngray.li...@gmail.com wrote: On 11 January 2011 00:02, Antoine Latter aslat...@gmail.com wrote: On Mon, Jan 10, 2011 at 5:23 PM, Aaron Gray aaronngray.li...@gmail.com

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 13:49, John Lato jwl...@gmail.com wrote: From: Aaron Gray aaronngray.li...@gmail.com On 9 January 2011 21:30, Henning Thielemann lemm...@henning-thielemann.dewrote: On Sun, 9 Jan 2011, Aaron Gray wrote: I am trying to work out how to use GHC.Ptr, Foreign.Storable

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 16:13, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Monday 10 January 2011 16:45:36, Aaron Gray wrote: This is interesting, what does the following line do :- data Int24 = I24# Int# deriving (Eq, Ord) regarding the I24# and Int#, are these inbuilt

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 16:36, Antoine Latter aslat...@gmail.com wrote: On Mon, Jan 10, 2011 at 10:17 AM, Aaron Gray aaronngray.li...@gmail.com wrote: On 10 January 2011 16:13, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Monday 10 January 2011 16:45:36, Aaron Gray wrote

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 22:30, Henning Thielemann lemm...@henning-thielemann.dewrote: John Lato schrieb: You could use my word24 package[1] (GHC only) to provide non-aligned 24-bit word and int types with Storable instances. You should be able to write a binary instance (or whatever

[Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-09 Thread Aaron Gray
Hi, I am trying to work out how to use GHC.Ptr, Foreign.Storable, Data.Storable.Endian, and am looking for good examples of usage. Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-09 Thread Aaron Gray
On 9 January 2011 22:34, Henk-Jan van Tuyl hjgt...@chello.nl wrote: On Sun, 09 Jan 2011 14:48:09 +0100, Aaron Gray aaronngray.li...@gmail.com wrote: Hi, I am trying to work out how to use GHC.Ptr, Foreign.Storable, Data.Storable.Endian, and am looking for good examples of usage. Many

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-09 Thread Aaron Gray
On 9 January 2011 21:30, Henning Thielemann lemm...@henning-thielemann.dewrote: On Sun, 9 Jan 2011, Aaron Gray wrote: I am trying to work out how to use GHC.Ptr, Foreign.Storable, Data.Storable.Endian, and am looking for good examples of usage. What do you intend to do with them

Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-09 Thread Aaron Gray
On 10 January 2011 01:08, Antoine Latter aslat...@gmail.com wrote: On Sun, Jan 9, 2011 at 6:05 PM, Aaron Gray aaronngray.li...@gmail.com wrote: On 9 January 2011 21:30, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 9 Jan 2011, Aaron Gray wrote: I am trying

[Haskell-cafe] Happy Parser problem

2010-12-31 Thread Aaron Gray
I am trying to get a grammar where keywords are also valid identifiers. Been messing round with the following Happy grammar :- %token 'let' { TokenIdent let } 'in'{ TokenIdent in } ident { TokenIdent $$ } int { TokenInt $$ }

Re: [Haskell-cafe] Happy Parser problem

2010-12-31 Thread Aaron Gray
On 31 December 2010 13:21, Aaron Gray aaronngray.li...@gmail.com wrote: I am trying to get a grammar where keywords are also valid identifiers. Sorry working now ! Aaron Been messing round with the following Happy grammar :- %token 'let' { TokenIdent let

[Haskell-cafe] getting last char of String

2010-12-31 Thread Aaron Gray
Is there an easy Haskell function that gets the last Char of a [Char] or String ? Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] getting last char of String

2010-12-31 Thread Aaron Gray
, -Matt On Dec 31, 2010, at 3:39 PM, Aaron Gray wrote: Is there an easy Haskell function that gets the last Char of a [Char] or String ? Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

[Haskell-cafe] Could someone give me a small code review

2010-12-31 Thread Aaron Gray
I have attached a tiny parser and lexer. This is really key to getting the lexing correct. The only thing I could not get neatly was to disallow hyphens at the end of identifiers, so have left it off until a good solution arrives. I plan to move over to monads next. Any comments welcome,

Re: [Haskell-cafe] Could someone give me a small code review

2010-12-31 Thread Aaron Gray
On 31 December 2010 21:26, Aaron Gray aaronngray.li...@gmail.com wrote: I have attached a tiny parser and lexer. This is really key to getting the lexing correct. The only thing I could not get neatly was to disallow hyphens at the end of identifiers, so have left it off until a good

[Haskell-cafe] record types and unique names

2010-12-30 Thread Aaron Gray
Given a Haskell record type :- data Test = Test { name :: String, value :: Int } test = Test { name = test, value = 1 } main :: IO () main = do putStrLn (name test) Are name and value in the global name

Re: [Haskell-cafe] record types and unique names

2010-12-30 Thread Aaron Gray
depends on what you are doing. Okay looks like name mangling with the datatypes name is in order then. Something like :- data Test = Test { testName :: String, testValue :: Int } Thanks, Aaron -- Markus Läll On Thu, Dec 30, 2010 at 7:01 PM, Aaron

Re: [Haskell-cafe] record types and unique names

2010-12-30 Thread Aaron Gray
at the record field disambiguation [1] extension to GHC. It sounds like what you're looking for. -deech [1] http://www.haskell.org/ghc/docs/6.12.2/html/users_guide/syntax-extns.html#disambiguate-fields On Thu, Dec 30, 2010 at 11:01 AM, Aaron Gray aaronngray.li...@gmail.com wrote: Given

[Haskell-cafe] What are these comments for {-# SCC Mangler #-}

2010-12-29 Thread Aaron Gray
What are these comments for in Happy ? {-# SCC Mangler #-} Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] instance for (Show ([(String, Int)] - Int))

2010-12-27 Thread Aaron Gray
On 24 December 2010 23:58, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Saturday 25 December 2010 00:32:38, Aaron Gray wrote: Okay great, works this end too, but what does the 'flip' do ??? It flips the order of arguments to calc. You could also write main = getContents = print

Re: [Haskell-cafe] instance for (Show ([(String, Int)] - Int))

2010-12-27 Thread Aaron Gray
On 24 December 2010 23:58, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Saturday 25 December 2010 00:32:38, Aaron Gray wrote: Okay great, works this end too, but what does the 'flip' do ??? It flips the order of arguments to calc. You could also write main = getContents = print

Re: [Haskell-cafe] ANNOUNCE: storable-endian

2010-12-26 Thread Aaron Gray
Hi Eugene, I have been looking to do a ActionScript backend, it needs 24bit values. Would it be possible to add some 24bit peeks and pokes, please. Aaron On 26 December 2010 11:13, Eugene Kirpichov ekirpic...@gmail.com wrote: So I got around to it. storable-endian 0.2.3 released, see code:

[Haskell-cafe] instance for (Show ([(String, Int)] - Int))

2010-12-24 Thread Aaron Gray
How do I code an 'instance' declaration for '(Show ([(String, Int)] - Int))'. I am new to instance declarations and am following the Happy examples :- http://www.haskell.org/happy/doc/html/sec-using.html#sec-other-datatypes The compiler is requesting an instance declaration for Show :-

Re: [Haskell-cafe] instance for (Show ([(String, Int)] - Int))

2010-12-24 Thread Aaron Gray
On 24 December 2010 18:24, Henning Thielemann lemm...@henning-thielemann.de wrote: On Fri, 24 Dec 2010, Aaron Gray wrote: The compiler is requesting an instance declaration for Show :- expr-eval.hs:334:23: No instance for (Show ([(String, Int)] - Int)) arising from a use

Re: [Haskell-cafe] instance for (Show ([(String, Int)] - Int))

2010-12-24 Thread Aaron Gray
On 24 December 2010 22:07, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Friday 24 December 2010 22:47:55, Aaron Gray wrote: On 24 December 2010 18:24, Henning Thielemann lemm...@henning-thielemann.de wrote: On Fri, 24 Dec 2010, Aaron Gray wrote: The compiler

[Haskell-cafe] Windows Haskell Platform download link is broken

2010-12-22 Thread Aaron Gray
Windows Haskell Platform download link goes nowhere :- http://hackage.haskell.org/platform/windows.html The Download Haskell for Windows is broken :- http://lambda.galois.com/hp-tmp/2010.2.0.0/HaskellPlatform-2010.2.0.0-setup.exe Aaron ___

[Haskell-cafe] Missing Parsec library in latest stable GHC

2010-12-22 Thread Aaron Gray
Missing Parsec library :- scheme.o(.text+0x4fa):fake: undefined reference to `parseczm2zi1zi0zi0_TextziParserCombinatorsziParsecziCombinator_skipMany1_closure' scheme.o(.text+0x501):fake: undefined reference to `parseczm2zi1zi0zi0_TextziPaserCombinatorsziParsecziChar_space_closure'

[Haskell-cafe] Latest Haskell Platform for Windows

2010-12-22 Thread Aaron Gray
Could someone please point me at a copy of the latest Haskell platform or a working GHC please. Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Latest Haskell Platform for Windows

2010-12-22 Thread Aaron Gray
On 22 December 2010 16:41, Don Stewart d...@galois.com wrote: aaronngray.lists: Could someone please point me at a copy of the latest Haskell platform or a working GHC please. Many thanks in advance, The links on haskell.org/platform should work (there was a domain change, so

Re: [Haskell-cafe] Missing Parsec library in latest stable GHC

2010-12-22 Thread Aaron Gray
On 22 December 2010 16:27, Antoine Latter aslat...@gmail.com wrote: What commands did you enter to produce this error? ghc scheme.hs I am still getting this on the 2010 2.0.0 release. Aaron Ahanks, Antoine On Wed, Dec 22, 2010 at 9:54 AM, Aaron Gray aaronngray.li...@gmail.com wrote

Re: [Haskell-cafe] Missing Parsec library in latest stable GHC

2010-12-22 Thread Aaron Gray
, Antoine On Wed, Dec 22, 2010 at 10:36 AM, Aaron Gray aaronngray.li...@gmail.com wrote: On 22 December 2010 16:27, Antoine Latter aslat...@gmail.com wrote: What commands did you enter to produce this error? ghc scheme.hs Aaron Ahanks, Antoine On Wed, Dec 22, 2010 at 9:54 AM

Re: [Haskell-cafe] Missing Parsec library in latest stable GHC

2010-12-22 Thread Aaron Gray
On 22 December 2010 16:51, Daniel Fischer daniel.is.fisc...@googlemail.comwrote: On Wednesday 22 December 2010 16:54:04, Aaron Gray wrote: Missing Parsec library :- scheme.o(.text+0x4fa):fake: undefined reference to `parseczm2zi1zi0zi0_TextziParserCombinatorsziParsecziCombinator_skipMany

[Haskell-cafe] Problem with class Control.Monad.Error noMsg usage

2010-12-21 Thread Aaron Gray
I have been trying to build the Scheme in 24 Hours on WikiBooks :- http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours http://jonathan.tang.name/files/scheme_in_48/code/listing10.hs But I am getting an error :- scheme.hs:289:6: `noMsg' is not a (visible) method of

Re: [Haskell-cafe] Problem with class Control.Monad.Error noMsg usage

2010-12-21 Thread Aaron Gray
On 21 December 2010 15:40, Henning Thielemann schlepp...@henning-thielemann.de wrote: Aaron Gray schrieb: if I try importing them :- import Control.Monad.Error (noMsg, strMsg) I think it was moved to Control.Monad.Error.Class. Great, importing Control.Monad.Error.Class does

[Haskell-cafe] REPL loop

2010-12-20 Thread Aaron Gray
Is it possible to implement a REPL (Read-eval-print loop) in Haskell ? Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Musings on type systems

2010-11-19 Thread Aaron Gray
On 19 November 2010 22:14, Albert Y. C. Lai tre...@vex.net wrote: On 10-11-19 04:39 PM, Matthew Steele wrote: TAPL is also a great book for getting up to speed on type theory: http://www.cis.upenn.edu/~bcpierce/tapl/ I am no type theorist, and I nonetheless found it very approachable.

Re: [Haskell-cafe] borked windows environment, want to start over

2010-11-17 Thread Aaron Gray
On 17 November 2010 15:47, Henk-Jan van Tuyl hjgt...@chello.nl wrote: On Wed, 17 Nov 2010 01:39:40 +0100, Michael Litchard mich...@schmong.org wrote: I think I may have borked things good using cygwin. I want to remove it and do a clean install of haskell platform w/out cygwin. What do I

Re: [Haskell-cafe] Gödel's System T

2010-11-11 Thread Aaron Gray
On 11 November 2010 11:43, Petr Pudlak d...@pudlak.name wrote: Thanks Dan, the book is really interesting, all parts of it. It looks like I'll read the whole book. Watch out for the decidability issue though :- http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.6.6483 Aaron

[Haskell-cafe] ActionScript Byte Code backend ?

2010-11-09 Thread Aaron Gray
Is there a Flash ActionScript Byte Code generating backend for Haskell ? I know there was an older SWF 3 backend :- http://www.n-heptane.com/nhlab/repos/haskell-swf/ But is there anything more up to date ? Aaron ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] [ANNAUNCE] ghcjs-0.1.0 Haskell to Javascript compiler

2010-10-29 Thread Aaron Gray
On 27 October 2010 13:30, Martijn Schrage mart...@oblomov.com wrote: On 21-10-10 01:01, Victor Nazarov wrote: This example creates a text field that turns red if it contains any non-digit characters. It is on-line at http://tryout.oblomov.com/ghcjs/ghcjs.html (Note: I only tested it on

[Haskell-cafe] Windows binary for latest darcs head

2010-10-12 Thread Aaron Gray
Does anyone have a Windows binary for the latest GHC darcs head or at least October 8th they could send me. Many thanks in advance, Aaron ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Regular Expression to Determinate Finite Automata translator

2010-07-22 Thread Aaron Gray
Hi, I am a Haskell newbie. I have coded a Regular Expression to Determinate Finite Automata translator. Algorithm from the Dragon Book. Would someone eyeball the code and give me suggestions please. I have not done anything on character classes yet though. And the parsing is a bit of a hack.

[Haskell-cafe] Typing Haskell in Haskell

2010-05-01 Thread Aaron Gray
Hi, I am relatively new to Haskell. I am attempting to get Typing Haskell in Haskell to work on HUGS or GHC. http://web.cecs.pdx.edu/~mpj/thih/ I am getting an error on loading SourcePrelude :- Hugs :l SourcePrelude ERROR .\PPrint.hs - Can't find imported module Pretty And I cannot