1-- Copyright 2009 Corey O'Connor
2module Data.Marshalling ( module Data.Marshalling
5 , module Foreign.ForeignPtr
6 , module Foreign.Marshal
10import Control.Monad ( foldM )
11import Control.Monad.Trans
16import Foreign.ForeignPtr
18import Foreign.Storable
20type OutputBuffer = Ptr Word8
22string_to_bytes :: String -> [Word8]
23string_to_bytes str = map (toEnum . fromEnum) str
25serialize_bytes :: MonadIO m => [Word8] -> OutputBuffer -> m OutputBuffer
26serialize_bytes bytes out_ptr = foldM ( \ptr b -> liftIO (poke ptr b) >> return ( ptr `plusPtr` 1 ) )
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list