git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Use parseFloat for Read Number instance, to make Read and Show instances work together.
commit8bb17797e15234605791326c6c3ac8a4dc5ddb43 authorPhil Freeman <paf31@cantab.net> dateSun 16 Feb 2014, 11:44 (13 years ago) parent05d3323
1 file changed+1−1
prelude/prelude.purs+1−1
prelude/prelude.purs+1−1
@@ -56,7 +56,7 @@ module Prelude where
5656 read _ = false
5757
5858 foreign import readNumber "function readNumber(n) {\
59− \ return parseInt(n, 10);\
59+ \ return parseFloat(n);\
6060 \}" :: String -> Number
6161
6262 instance Read Number where