| dmwit | ah |
| t0mas | if unlines adds \r\n back in.. yes and if I don't really need the header? |
| Pseudonym | t0mas: Throw it away, I guess. do f <- readFile fname let (header:body) = lines f |
| t0mas | ok |
| Pseudonym | Modulo indentation. |
| t0mas | ok dmwit: you just linked to a hpaste with something quite like this.. was that code made to do the "split on :" part? |
| dmwit | I'm not sure it's exactly what you want, now that I know a bit more about what you're doing. |
| Pseudonym | @let |
| lambdabot | Plugin `eval' failed with: IRCRaised Data.ByteString.last: empty ByteString |
| dons | that's a bug in the regex lib, fixed in newer regex-*'s |
| dmwit | What 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 ':'. |
| action | sorear wishes a source of funding for dons to maintain lambdabot full time would just magically appear |
| sorear | wishes a source of funding for dons to maintain lambdabot full time would just magically appear |
| dons | i don't need funding. i need time. |
| Pseudonym | t0mas: OK, here's an elegant solution. |
| LoganCapaldo | I'd throw in a few bucks but thats still not time |
| dons | say, 2 extra days a week? |
| Pseudonym | grouper _ (':':_) = False grouper _ _ = True |
| LoganCapaldo | its too bad you can't paypal time :) |
| Pseudonym | map unlines . groupBy grouper $ body |
| dons | yeah. |
| thorat | dons: you could hire a starving haskell programmer to help with funding |
| dons | i'd need funding to buy someone else's time then :-) |
| action | ndm feels the same way as dons |
| ndm | feels the same way as dons |
| dmwit | ?hoogle (a -> Bool) -> [a] -> [[a]] |
| stepcut | with funding, dons can finally afford a mail-order PhD, and then he'll have plenty of free time... |
| lambdabot | No matches, try a more general search |
| Pseudonym | t0mas: That basically says to group lines, making sure that lines that start with ':' are put in a different group than the line before. |
| ndm | i don't need money, but if someone was to kill my girlfiend, we'd get Hoogle 4 faster |
| dons | so, is everyone using xmonad yet. |
| Pseudonym | Then apply unlines. |
| dons | stepcut: right!! |
| ndm | stepcut, more likely to bribe referrees so you have to spend less time polishing papers |