[Haskell-beginners] database, list result, extraction and conversion

Francesco Ariis fa-ml at ariis.it
Thu Dec 6 13:07:40 UTC 2018


On Thu, Dec 06, 2018 at 12:16:08PM +0100, Damien Mattei wrote:
> *Main> show s
> "Only {fromOnly = \"-04.3982\"}"
> 
> but how can i get the String "-04.3982" ? and after converting it to a
> Float?

I suspect that "fromOnly" accessor will do!

http://hackage.haskell.org/package/mysql-simple-0.4.5/docs/Database-MySQL-Simple.html#t:Only




More information about the Beginners mailing list