dmehrtash: > I am trying to convert a string to a float. It seems that Data.ByteString > library only supports readInt. After some googling I came accross a > possibloe implementation: [1]http://sequence.svcs.cs.pdx.edu/node/373 >
Use the bytstring-lexing library, http://hackage.haskell.org/cgi-bin/hackage-scripts/package/bytestring-lexing Which provides a copying and non-copying lexer for doubles, readDouble :: ByteString -> Maybe (Double, ByteString) unsafeReadDouble :: ByteString -> Maybe (Double, ByteString) -- Don _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe