RE: Haskell in Scientific Computing?

1998-10-14 Thread Chris Angus
- > What happened to FSC (Functional Scientific Computing) > of Chris Angus [ANGUS], which supposed to address some > ineficiences of Haskell? Is it still alive? I do not know > how related FSC supposes to be to Haskell. Is it a sort of > a Haskell extensio

RE: Haskel Type Question

1998-11-09 Thread Chris Angus
I'm guessing that the problem is that fos -0.5 [1,1,1,1] is being parsed as ((fos) - (0.5)) [1,1,1,1] so that the 0.5 implies an instance of class Fractional which implies by the type of (-) (-) :: Num a => a -> a -> a that fos is al

RE: Still confused

1999-03-14 Thread chris angus
> > Hi all. > > >Steve Frampton <[EMAIL PROTECTED]> wrote: > >> foo x = ['1'] ++ foo(x div 10) > >> *** term : foo > >> *** type : ((a -> a -> a) -> b -> Int) -> [Char] > >> *** does not match : Int -> [Char] > > > Can someone please explain how to decipher the typ

RE: Permission to distribute the Haskell 98 reports as part of Debian?

1999-03-18 Thread chris angus
I was under the impression that Haskell the language (and by inference any definition of Haskell) were "free", period. i.e. may be distributed freely in a GNU/GPL manner. is this not correct? Chris > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > A

Singletons and Reflection

1999-12-14 Thread Chris Angus
Hi, What do folk out there think to the idea of having a std module in Haskell which contains dynamic environment info. things I mean are progName :: String args:: String and maybe funs like getProperties :: FileName -> PropertyLookup (obviously this getProperties fn whould have to

RE: Singletons and Reflection

1999-12-15 Thread Chris Angus
Ok ... this is a lot neater than what I had in mind but what about the reflective part? -Original Message- From: Daan Leijen [mailto:[EMAIL PROTECTED]] Sent: 15 December 1999 10:49 To: 'Chris Angus'; [EMAIL PROTECTED] Subject: RE: Singletons and Reflection > What do f

Relection

2000-01-25 Thread Chris Angus
I posted this to comp.lang.functional a while ago but (apparently) no one had an opinion which I cant believe is the case :-) Chris I would be interested to know people's views on adding reflection to Haskell to get Factory-like behaviour. I was thinking that other modules could "export" val

RE: Relection

2000-01-25 Thread Chris Angus
quot;Function that knows how to read " + suffix +" files does not exist") Just f -> f filename -Original Message- From: Peter Hancock [mailto:[EMAIL PROTECTED]] Sent: 25 January 2000 11:13 To: Chris Angus Subject: Relection >>>>> "

RE: Relection

2000-01-25 Thread Chris Angus
ent: 25 January 2000 11:13 To: Chris Angus Subject: Relection >>>>> "Chris" == Chris Angus <[EMAIL PROTECTED]> writes: > I posted this to comp.lang.functional a while ago but (apparently) no one > had an opinion which > I cant believe is the

RE: Relection

2000-01-26 Thread Chris Angus
I feel the same way about configuration files. i.e. there could be some mechanism where we can define a readAndCache which does not repeat actions. -Original Message- From: George Russell [mailto:[EMAIL PROTECTED]] Sent: 25 January 2000 17:23 To: Chris Angus Cc: 'Peter Hancock

RE: Job market

2000-02-09 Thread Chris Angus
I am currently using Haskell at work although not to develop end - software We have a lot of legacy code which we want to convert to Java I am using a combination of happy , alex, asdlGen, hugs and GHC, writing in a monadic style. I tried to use Haxml but found it too inef

Java AST

2000-03-07 Thread Chris Angus
Dear All, I am using Haskell (via ASDL) to write a translator (target language = java) and have designed an AST for Java. I want to be able to do fairly powerful source to source manipulations on this java tree and as such would value any constructive criticism of the way I have put together th

No Subject

2000-03-09 Thread Chris Angus
Does anyone know where I can get some information on Lambada. I tried http://windows.st-lab.cs.uu.nl/Lambada/ but got a 403 (not authorised to view page) Cheers Chris

Untrusted code

2000-04-06 Thread Chris Angus
Hi, I was wondering if there was any way to run code which possibly threw an error in any version of Haskell. e.g. efficient3rdPartyAlgorithm :: Int -> Int myOwnSlowAlgorithm :: Int -> Int i.e. the idea is you run the efficent version and if falls over you run your own version. Cheers Chris

RE: openfile :: String -> String

2000-04-26 Thread Chris Angus
You could try this: --OpenFile.hs module OpenFile where import IOExts openfile :: String -> String openfile = unsafePerformIO . readFile -- end of file > -Original Message- > From: Hamilton Richards [mailto:[EMAIL PROTECTED]] > Sent: 26 April 2000 14:04 > To: [EMAIL PROTECTED] > Subjec

RE: doubly linked list

2000-04-28 Thread Chris Angus
> -Original Message- > From: Peter Hancock [mailto:[EMAIL PROTECTED]] > Sent: 28 April 2000 10:23 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: doubly linked list > > > > "Jan" == Jan Kort <[EMAIL PROTECTED]> writes: > > > Anyway, a doubly linked list could be

RE: doubly linked list

2000-04-28 Thread Chris Angus
Would it not be better to tag a start point then we can manipulate this easier and move it back to a singly linked list etc. data Db a = Dd (Db a) a (Db a) | DStart (Db a) a (Db a) instance Show a => Show (Db a) where show xs = show (enumerate xs) instance Eq

RE: Showing tuples

2000-05-09 Thread Chris Angus
Do you derive Show for MyData? > -Original Message- > From: Mike Jones [mailto:[EMAIL PROTECTED]] > Sent: 09 May 2000 05:58 > To: [EMAIL PROTECTED] > Subject: Showing tuples > > > Hi, > > I am having trouble with Show and tuples. > > I have a data structure, say: > > data MyData = ..

RE: Showing tuples

2000-05-09 Thread Chris Angus
(v5,s5A) <- reads s5, (",",s6) <- lex s5A, (v6,s6A) <- reads s6,

RE: Haskell jobs (fwd)

2000-07-19 Thread Chris Angus
Aren't most of these "java additions" MS J++ or MS specific rather than java/jdbc "run-anywhere" though? Hoping that this isnt the case Chris > -Original Message- > From: Frank Atanassow [mailto:[EMAIL PROTECTED]] > Sent: 19 July 2000 10:22 > To: S. Alexander Jacobson > Cc: Manuel M.

RE: The type of zip

2000-07-24 Thread Chris Angus
A little off-topic i know but ... Has anyone ever thought of trying to use reflection in these cases. i.e. still declare the instance but have a common method which examines the arguments and dynamiclly constructs the result depending (dynamically) on the type of the argument. I have never thou

RE: The type of zip

2000-07-25 Thread Chris Angus
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 25 July 2000 09:30 > To: [EMAIL PROTECTED] > Subject: Re: The type of zip > > > Mon, 24 Jul 2000 09:04:58 +0100, Chris Angus > <[EMAIL PROTECTED]> pisze: > I dont

RE: Query

2000-08-03 Thread Chris Angus
I would start by splitting the problem up tupleSum :: [Int]-> (Int, Int) tupleSum xs = (neg, pos) where neg = ... SOME EXPRESSION INVOLVING xs ... pos = sum [ x | x <- xs , x > 0] > -Original Message- > From:

RE:

2000-08-07 Thread Chris Angus
> -Original Message- > From: Matthias Kilian [mailto:[EMAIL PROTECTED]] > Sent: 06 August 2000 22:01 > To: Mirko Pracht > Cc: [EMAIL PROTECTED] > Subject: Re: > > > On Sun, 6 Aug 2000, Mirko Pracht wrote: > > > average x | null x= 0.0 > > What does you make thinking the ave

RE: code generation for other languages

2000-08-23 Thread Chris Angus
For doinjg this sort of thing I have used asdl before which I find really useful. > -Original Message- > From: Manuel M. T. Chakravarty [mailto:[EMAIL PROTECTED]] > Sent: 23 August 2000 14:09 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: code generation for other langua

RE: student compiler in Haskell

2000-09-06 Thread Chris Angus
I have used alex / happy a few times without too many problems I believe happy now contains yacc style information for operator precidence :-). If I were you I would use Happy + Alex for the scanner/parser. but use asdl for the definition of the data structures. (There is a link to this from t

RE: Patterns Catalog

2000-09-11 Thread Chris Angus
I've thought of this too. but I dont think there is anything out there which fits the bill. [I'd love someone to please correct me] btw for any folks out there who are thinking what the are patterns? http://www.enteract.com/~bradapp/docs/patterns-intro.html I think it would be a good thing

RE: Inferring types

2000-09-11 Thread Chris Angus
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 08 September 2000 17:17 > To: [EMAIL PROTECTED] > Subject: Re: Inferring types > > > Sat, 9 Sep 2000 00:56:46 +1100, Fergus Henderson > <[EMAIL PROTECTED]> pisze: > > > If you define `p' as a syntactic fu

RE: Patterns Catalog

2000-09-11 Thread Chris Angus
> -Original Message- > From: Keith Wansbrough [mailto:[EMAIL PROTECTED]] > Sent: 11 September 2000 15:07 > To: Chris Angus > Cc: 'Doug Ransom'; [EMAIL PROTECTED] > Subject: Re: Patterns Catalog > > > > I've thought of this too. >

RE: Patterns Catalog

2000-09-18 Thread Chris Angus
yntax tree rather than string) chain of responsibility *) Non-trivial type synonyms i.e. data Miles = Miles Int rather than type Miles = Int can remove later anyway > -Original Message- > From: Chris Angus [mailto:[EMAIL PROTECTED]] > Sent: 11 S

SAX, XML, Haskell

2000-09-25 Thread Chris Angus
Hi, I looked at HaXml a while ago and it seemed to offer a very Dom-like interface. I was wondering if anyone had thought of making a Sax-like interface based on lazy evaluation. where tokens are processed and taken from a (potentially) infinite stream Chris

RE: Extensible data types?

2000-09-25 Thread Chris Angus
Just wondering if you'd seen the dynamic datatype which basically gives you an "Any" in ghc/hugs > -Original Message- > From: Jose Romildo Malaquias [mailto:[EMAIL PROTECTED]] > Sent: 25 September 2000 12:14 > To: Chris Angus > Cc: [EMAIL PROTECTED] > S

RE: Extensible data types?

2000-09-25 Thread Chris Angus
Presumably this means differentiation/integeration would have to be typed as diff :: (FnExt a,FnExt b) => a -> b Chris > -Original Message- > From: Peter Achten [mailto:[EMAIL PROTECTED]] > Sent: 25 September 2000 23:34 > To: Jose Romildo Malaquias > Cc: [EMAIL PROTECTED] > Subject: Re

RE: Extensible data types?

2000-09-28 Thread Chris Angus
diff fn | match fn sine = cosine diff fn | match fn cosine = neg `compose` cosine > -Original Message- > From: Jose Romildo Malaquias [mailto:[EMAIL PROTECTED]] > Sent: 25 September 2000 12:14 > To: Chris Angus > Cc: [EMAIL PROTECTED] > Subject: Re: Extensible data typ

RE: Imperative Object Destruction

2000-11-13 Thread Chris Angus
why not create an abstract datatype OpenFile a which is a monad data OpenFile a = OpenFile (Maybe FileHandle -> IO a) and create you operations in terms of this openFile :: String -> OpenFile () count:: OpenFile Int read :: Int -> OpenFile [Byte] then you could habe a run functio

RE: Question about hugs´s DEBUG_SHOWSC

2001-04-13 Thread Chris Angus
is this not the dictionary passing (or whatever)to achieve overloading. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 13 April 2001 06:48 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Question about hugs´s DEBUG_SHOWSC >

RE: Implicit Parameters

2002-02-04 Thread Chris Angus
Title: RE: Implicit Parameters I'm obviously missing something here. I dont understand what monomorphism has to do with the given example as the implicit parameter would be the same type [a] for some type a in each case. If we made the parameter explicit then removing the type definitio

RE: String manipulation.

2002-02-07 Thread Chris Angus
Title: RE: String manipulation. You may want to use reads as read will call error if the string is not an integer or use something akin to the example below readMaybeInt :: String -> Maybe Int readMaybeInt s = case reads s of   [(x,_)] -> Just x   _

Re: Design patterns in Haskell

2002-12-04 Thread Chris . Angus
 matt hellige <[EMAIL PROTECTED]>         cc:        [EMAIL PROTECTED], (bcc: Chris Angus/Lawson)         Subject:        Re: Design patterns in Haskell > size. while there's really no substitute for experience, i really > believe we could benefit from some patterns. There was a