News aggregator

ocharles.hs

del.icio.us/haskell - Wed, 01/14/2015 - 3:59am
Categories: Offsite Blogs

ocharles.hs

del.icio.us/haskell - Wed, 01/14/2015 - 3:59am
Categories: Offsite Blogs

New maintainer for the boxes library

libraries list - Mon, 01/12/2015 - 10:50pm
Hi, The current maintainers (Eelis van der Weegen and Benno Fünfstück) ​of​ the boxes library (http://hackage.haskell.org/package/boxes) don't want to be maintainers any ​ ​ more. Does someone want to become the new maintainer of this library? Best,
Categories: Offsite Discussion

Data.ByteString.Unsafe.unsafeWipe

libraries list - Mon, 01/12/2015 - 5:42am
Discussion period: one month When handling sensitive information (like a user's password) it is desirable to only keep the data around for as short a time as possible. Specifically, relying on the garbage collector to clean it up is simply not good enough. I therefore propose that the following function to be added to the Data.ByteString.Unsafe module: -- | Overwrites the contents of a ByteString with \0 bytes. unsafeWipe :: ByteString -> IO () unsafeWipe bs = BS.unsafeUseAsCStringLen bs $ \(ptr, len) -> let go i | i < 0 = return () | otherwise = pokeElemOff ptr i 0 >> go (i - 1) in go (len - 1) It is added to the Unsafe module because it break referential transparency but since ByteStrings are always kept in pinned memory, it should not otherwise be considered unsafe. It could be used as follows: main = do passwd <- getPassword doSomethingWith passwd unsafeWipe passwd restOfProgram
Categories: Offsite Discussion

Cabal: Specify multiple package databases in config file

libraries list - Sun, 01/11/2015 - 2:36am
Hi All, Is it possible to specify multiple package databases in Cabal's config file? Currently, I have two installed package databases. One is the system readonly package database, and the other is the system writable package database. This structure is due to how packaging works on Haiku, so can't be changed. A similar structure would also exist for user package databases. My Cabal config file currently looks like: package-db: /packages/ghc/.self/lib/package.conf.d I need this to be something like: package-db: /packages/ghc/.self/lib/package.conf.d; /system/non-packaged/lib/ghc/package.conf.d Is this possible with the Cabal config file? If so, what is the correct syntax to use? Many Thanks, Jessica
Categories: Offsite Discussion

System.Posix.IO.ByteString

libraries list - Sun, 01/11/2015 - 2:15am
Hi All, I'm playing around with some low level IO and found the following function: System.Posix.IO.fdRead :: Fd -> ByteCount -> IO (String, ByteCount) Ok, close, but what if I need a ByteString instead. I then found this: System.Posix.IO.ByteString.fdRead :: Fd -> ByteCount -> IO (String, ByteCount) which is identical to the one above. The ByteString in the module name suggests it would be using ByteString instead of String? Can anyone explain this for me? Cheers, Erik
Categories: Offsite Discussion

New gtk2hs 0.12.4 release

gtk2hs - Wed, 11/21/2012 - 12:56pm

Thanks to John Lato and Duncan Coutts for the latest bugfix release! The latest packages should be buildable on GHC 7.6, and the cairo package should behave a bit nicer in ghci on Windows. Thanks to all!

~d

Categories: Incoming News