#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 
Top Prev 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 Next

#haskell

<EvilTerran> "er... is this value cached?"
<Saizan> dancor: you can also use foldWithKey i think
<pejo> EvilT, that must be due to lazy evaluation, not the functional language in itself.
<dancor> > minimumBy (compare `on` snd) [(1, 30), (2, 10), (3, 20)]
<lambdabot> Not in scope: `on'
<nmessenger> @let on op f x y = f x `op` f y
<lambdabot> Plugin `eval' failed with: IRCRaised Data.ByteString.last: empty ByteString
<dons> let is broken for a little while
<tibbe_> @paste
<lambdabot> Haskell pastebin: http://hpaste.org/new
<tibbe> @hoogle a -> m [a] -> m [a]
<lambdabot> No matches, try a more general search
<tibbe> mcons?
<nmessenger> @type liftM2 (:)
<lambdabot> forall a1 (m :: * -> *). (Monad m) => m a1 -> m [a1] -> m [a1]
<nmessenger> not quite
<nmessenger> @type (\x -> liftM (x:))
<lambdabot> forall a (m :: * -> *). (Monad m) => a -> m [a] -> m [a]
<nmessenger> @pl (\x -> liftM (x:))
<lambdabot> fmap . (:)
<erider> good morning all
<dons> mm. it would be kinda fun to hook up the usb missle launcher to an unsafePerformIO
<dons> to really illustrate how the sequencing is all busted up, and missles will fly when you least expect them
<nmessenger> @remember dons mm. It would be kinda fun to hook up the usb missle launcher to an unsafePerformIO.
<lambdabot> Done.
<dons> ndm, there's something very wrong about a haskell compiler that does this on building, svn co http://svn.python.org/projects/python/trunk/Modules/_ctypes/ depends/ctypes
<lambdabot> Title: Revision 53817: /python/trunk/Modules/_ctypes
<xerox> :o
<dcoutts> dons, do yhc have a python implementation of their byte code interpreter or is the python used for the build infrastructure?
<dcoutts> I suppose really I should ask ndm
<dons> both, i think.
<tibbe> @pl \x -> \(xs,y) -> (x:xs,y)
<lambdabot> (`ap` snd) . (. fst) . ((,) .) . (:)
<tibbe> oh yes!
<tibbe> much clearer
<dons> but the build infraststructure is getting kinda wacky in yhc.. :/
<nmessenger> @type \x -> first (x:)
<lambdabot> forall a d. a -> ([a], d) -> ([a], d)
<dons> checking out stuff over the network is NOT OK while building a compiler.
<nmessenger> @pl \x -> first (x:)
<lambdabot> first . (:)
<dcoutts> dons, aye, it's not ok for our ebuilds either, we noticed that.
<EvilTerran> ?ty first
<lambdabot> forall (a :: * -> * -> *) b c d. (Arrow a) => a b c -> a (b, d) (c, d)
<nmessenger> @src (->) first
<lambdabot> first f = f *** id
<nmessenger> @src (->) (***)
<lambdabot> (f *** g) ~(x,y) = (f x, g y)
<dons> oh, are there prebuilt binaries for x86/linux yhc somwhere?
<dcoutts> dons, no idea

Previous Page  Next Page

Search ircarchive.info