pairThemF x = (((,) x) \)

]]>pairThemF x = (((,) x) )

the applicative operator () got left out somehow..

— gene

]]>pairThemF

:: forall (f :: * -> *) a a1. Functor f => a1 -> f a -> f (a1, a)

pairThemF x = (((,) x) )

pairThemF 5 [10..18]

[(5,10),(5,11),(5,12),(5,13),(5,14),(5,15),(5,16),(5,17),(5,18)]

pairThemF “Integer” [1..7]

[(“Integer”,1),(“Integer”,2),(“Integer”,3),(“Integer”,4),(“Integer”,5),

(“Integer”,6),(“Integer”,7)]

pairThemF “Integer” (Just 8)

Just (“Integer”,8)

pairThemF “Integer” Nothing

Nothing

=========

The monadic attack would be something like:

[1..5] >>= return . (\a -> ((,) “Integer”) a)

[(“Integer”,1),(“Integer”,2),(“Integer”,3),(“Integer”,4),(“Integer”,5)]

or if you like for getting the list on the other end of things and throwing in some arrow notation… just for fun!!:

pairThemM

:: forall (m :: * -> *) a b. Monad m => a -> m b -> m (a, b)

pairThemM z xs = (((\a -> ((,) z) a) >>> return) =<<) xs

Which allows the same as for the Applicative above:

pairThemM "integer" [3..6]

[("integer",3),("integer",4),("integer",5),("integer",6)]

—

pairThemM "integer" (Just 12)

Just ("integer",12)

Lots of ways to skin a cat in Haskell, and none of them wrong.. even the bit of waste involved in producing a list to zip..

— cheers, gene

]]>So I can’t understand why g = val ○ f:: a->b. Shouldn’t it be g = f:: a -> b or at least g = val ○ f:: a-> Id b ?

I am a newbie in all this stuff so I may be wrong. ]]>

I had trouble with it too. I ended up removing Gnome and using X with one of the very lightweight window managers. Apart from anything else, Gnome wasn’t exactly fast . . .

]]>I followed your notice and it worked for me …

Just one small thing :

apt-get install xorg gdm gnome gnome-desktop failed

but install these packages without gdm was ok

Gdm seems to be included now within gnome. ]]>

It overheated 🙂

AfC

]]>