#haskell - Fri 9 Mar 2007 between 04:36 and 05:04

NY Lost Funds



lispy?google hunit example ifdef
dancork
lambdabothttp://www.geocities.com/SiliconValley/Bay/9159/dpas.pdf
lispydancor: oh, the cabal source does it the way i'm thinking
you could look at taht
donsdancor: here's an example use of QuickCheck
http://darcs.haskell.org/~sjanssen/thunk/tests/Properties.hs
you write a seperate tests module that imports the stuff you want to test
dancorah, ok
donsthen your run thtat test code from say, ghci, or runhaskell.
$ runhaskell tests/Properties.hs
read.show : OK, 100 tests.
member/push : OK, 100 tests.
...
so none of the testcode is actually linked into the executable
kzmno isPrefixOf in Data.ByteString.Lazy.Char8?
dons(yes, that's automatically testing the core data structures of a window manager!) :-)
actiondons <3 QC
dons<3 QC
kzm, hmm...
kzm, its the same type as .Lazy, isPrefixOf, -- :: ByteString -> ByteString -> Bool
and I note it is also exported from .Lazy.Char8
kzmOh, wait, I messed up the imports.
My bad.
dancorif a gentoo haskell package refers to bug 151012
where is the bug tracker
this is the haskell overlay
nm
when there are only two possibilities, it is often best just to try them
bitwiseshiftleftquestion for GHC 6.6: when using GADTs with record syntax, is there a way to quantify with a type class?
because without using record syntax, you can say
data Foo where Ord a => a -> Foo
or something
but if you use record syntax, I don't know where such a statement would go
kzm../../tally 185.81s user 4.22s system 82% cpu 3:51.72 total -- with [Char]
../../tally 9.22s user 1.98s system 39% cpu 28.049 total -- with lazy ByteString
95% reduction in CPU time, I thought that was pretty good for about ten minutes' work. :-)
bitwiseshiftlefthaha
yeah, ByteString does that
... can you run it with strict ByteString?
kzmI think the file is too big - 785Mb.

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

IrcArchive

NY Lost Funds