Haskell उदाहरण से http://learnyouahaskell.com/types-and-typeclassesहास्केल Prelude.read: कोई पार्स स्ट्रिंग
ghci> read "5" :: Int
5
ghci> read "5" :: Float
5.0
ghci> (read "5" :: Float) * 4
20.0
ghci> read "[1,2,3,4]" :: [Int]
[1,2,3,4]
ghci> read "(3, 'a')" :: (Int, Char)
(3, 'a')
लेकिन जब मैं
read "asdf" :: String
या
read "asdf" :: [Char]
कोशिश मैं अपवाद
Prelude.read कोई पार्स
मैं यहां क्या गलत कर रहा हूं?