midi-0.0.5: Handling of MIDI messages and filesContentsIndex
Sound.MIDI.IO
Description
Taken from Haskore.
Synopsis
readBinaryFile :: FilePath -> IO ByteString
writeBinaryFile :: FilePath -> ByteString -> IO ()
type ByteString = [Word8]
stringCharFromByte :: ByteString -> String
stringByteFromChar :: String -> ByteString
Documentation
readBinaryFile :: FilePath -> IO ByteString
writeBinaryFile :: FilePath -> ByteString -> IO ()
Hugs makes trouble here because it performs UTF-8 conversions. E.g. [255] is output as [195,191] It would be easy to replace these routines by FastPackedString(fps).ByteString.Lazy, however this introduces a new package dependency.
type ByteString = [Word8]
stringCharFromByte :: ByteString -> String
stringByteFromChar :: String -> ByteString
Produced by Haddock version 2.1.0