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
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
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
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
>
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
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
_
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
__