#haskell - Sat 19 May 2007 between 05:29 and 05:36



int-e@src and
lambdabotand = foldr (&&) True
Weremanateeoh, very nice
davidL...where is hpaste
UUStudentint-e: are you saying..nested do expressions?
int-e(the counterpart for 'all' is 'any')
davidL@seen hpaste
lambdabotI saw hpaste leaving #haskell 3h 59m 15s ago, and .
davidLI annotated the paste with the error int-e
Weremanateeis there a zipWithTail function or similar in the prelude?
int-edavidL: ah. array is pure, so you need a return
Weremanateeseems like a common thing to do, zip x (tail x)
zipwith rather
int-edavidL: because if you want to use nums', adjMatrix must be in IO - hence adjMatrix :: IO (Array ...)
soreardavidL: He disappeared in a netsplit.
glguy: ping
davidLso I should put a return statement in the lambda?
int-edavidL: adjMatrix :: [[Int]] -> Array ... is an option though, lifting the IO one level up as I already mentioned.
davidL: yes. return $ array ... instead of array ...
davidL: or return (array ...) if you dislike $.
davidLthere's multiple levels of IO?
int-eUUStudent: yes, you can nest dos
> do do do do do []
lambdabot[]
donshehe
cute.
int-e@type do undefined
lambdabotforall (t :: * -> *) t1. t t1
int-eouch.
sorear@type do ?_
lambdabotforall (t :: * -> *) t1. (?_::t t1) => t t1
int-eI expected Monad t => t a
davidLwtf... Expected kind `?', but `Array' has kind `* -> * -> *'
soreardavidL: You can't put Array on the left of a function arrow.
Array (Int,Int) Int yes
Probable cause: you didn't give Array enough arguments
actionsorear can't figure out what
sorearcan't figure out what
is so obscure about that error
davidLforgot the last int, but of course, the infamous [[Int]] does not match IO [[Int]] comes back to haunt me
int-edavidL: I gave incomplete type signatures.

Page: 3 10 17 24 31 38 45 52 59 66 73 80 

IrcArchive