Skip to content

Instantly share code, notes, and snippets.

@yuga
Created February 28, 2015 16:08
Show Gist options
  • Save yuga/86b195f691adcb3ef97a to your computer and use it in GitHub Desktop.
Save yuga/86b195f691adcb3ef97a to your computer and use it in GitHub Desktop.
ByteString -> Double
toRealFloat . either error id . parseOnly Data.Attoparsec.ByteString.Char8.scientific :: ByteString -> Double
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment