Re: question does haskell have a something like a wild character

2001-03-19 Thread Christian Brolin
lude.Eq b) => b -> [b] -> Bool > elem "hello" ["my", "tie" , "egg", "hello", "good"]; True -- Christian Brolin ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: interesting example of lazyness/ghc optimisation

2001-03-01 Thread Christian Brolin
example: f [a] | a>0 = 1 | a<0 = 2 f _= 3 -- [], [0], [a:as] Can be written as: f x = case x of [a] | a>0 -> 1 | a<0 -> 2 _ -> 3 -- Christian Brolin ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: Proposal: module namespaces.

2001-02-28 Thread Christian Brolin
Marcin 'Qrczak' Kowalczyk wrote: > > Wed, 28 Feb 2001 11:44:58 +0100, Christian Brolin <[EMAIL PROTECTED]> pisze: > > > > It does not. File A/B/C/D.hs can be module A.B.C.D, or module B.C.D which > > > happened to be placed in a directory A, or C.D et

Re: Proposal: module namespaces.

2001-02-28 Thread Christian Brolin
Marcin 'Qrczak' Kowalczyk wrote: > > On Wed, 28 Feb 2001, Christian Brolin wrote: > > > What?? The compiler knows the full name of the module without the module > > clause. > > It does not. File A/B/C/D.hs can be module A.B.C.D, or module B.C.D which >

Re: Proposal: module namespaces.

2001-02-28 Thread Christian Brolin
standards. It is not necessary to modify the modules if the module system supports relative addresses!!! The steering wheel of my car is positioned relative to my car, so it is NOT necessary to change that position when I move the car. -- Christian Brolin ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: Proposal: module namespaces.

2001-02-27 Thread Christian Brolin
ange my implementation. The only thing that is needed to rename (an unused) module hierarchy is to move it. import Std.Module import .Sibling import .Sibling.Child import ..Child import ..Child.GrandChild import ...Syntax.Error -- This isn't allowed -- Christian Brolin _

Re: Proposal: module namespaces.

2001-02-27 Thread Christian Brolin
e > programmer with her own "as" clause. The implicit "as" clause > always uses the final subdivision of the module name. What about, e.g. import qualified Text.Xml.Parse import qualified Text.Yml.Parse ? -- Christian Brolin __