[Haskell-cafe] NewBinary/ BinMem and IO monad

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu May 4 00:47:00 EDT 2006


Hello Marc,

Thursday, May 4, 2006, 2:21:58 AM, you wrote:

> getTable1 bh = do
>   bh = seek bh offset -- seek to the beginning of the table
>   get binary data and build internal representation
>   return list of glyph and outlines and ...

just add unsafePerformIO:

getTable1 bh = unsafePerformIO $ do
  seek bh offset -- seek to the beginning of the table
  get binary data and build internal representation
  return list of glyph and outlines and ...


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list