#haskell - Sun 25 Mar 2007 between 21:00 and 21:08



dmwitah
t0masif unlines adds \r\n back in.. yes
and if I don't really need the header?
Pseudonymt0mas: Throw it away, I guess.
do f <- readFile fname
let (header:body) = lines f
t0masok
PseudonymModulo indentation.
t0masok
dmwit: you just linked to a hpaste with something quite like this..
was that code made to do the "split on :" part?
dmwitI'm not sure it's exactly what you want, now that I know a bit more about what you're doing.
Pseudonym@let
lambdabotPlugin `eval' failed with: IRCRaised Data.ByteString.last: empty ByteString
donsthat's a bug in the regex lib, fixed in newer regex-*'s
dmwitWhat the hpaste does is, given a list of lines, concatenate all the consecutive ones that start with ':', and throw away any that don't start with ':'.
actionsorear wishes a source of funding for dons to maintain lambdabot full time would just magically appear
sorearwishes a source of funding for dons to maintain lambdabot full time would just magically appear
donsi don't need funding. i need time.
Pseudonymt0mas: OK, here's an elegant solution.
LoganCapaldoI'd throw in a few bucks
but thats still not time
donssay, 2 extra days a week?
Pseudonymgrouper _ (':':_) = False
grouper _ _ = True
LoganCapaldoits too bad you can't paypal time :)
Pseudonymmap unlines . groupBy grouper $ body
donsyeah.
thoratdons: you could hire a starving haskell programmer to help
with funding
donsi'd need funding to buy someone else's time then :-)
actionndm feels the same way as dons
ndmfeels the same way as dons
dmwit?hoogle (a -> Bool) -> [a] -> [[a]]
stepcutwith funding, dons can finally afford a mail-order PhD, and then he'll have plenty of free time...
lambdabotNo matches, try a more general search
Pseudonymt0mas: That basically says to group lines, making sure that lines that start with ':' are put in a different group than the line before.
ndmi don't need money, but if someone was to kill my girlfiend, we'd get Hoogle 4 faster
donsso, is everyone using xmonad yet.
PseudonymThen apply unlines.
donsstepcut: right!!
ndmstepcut, more likely to bribe referrees so you have to spend less time polishing papers

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 110 

IrcArchive