[Haskell-cafe] String to Double conversion in Haskell

Don Stewart dons at galois.com
Tue Aug 26 13:32:16 EDT 2008


dmehrtash:
>    Bjorn,
>    I am initializing a list from a file.  I am reading the lines from the
>    file, splitting them into bytestring and then converting them to float. 
>    Should I be using String  -> Float or ByteString -> Float?

I'd try reading the file entirely as a bytestring,
then splitting out the Doubles, using ByteString -> Float.

-- Don


More information about the Haskell-Cafe mailing list