News for hackers. Stuff that matters.
Re:What Is Good About Haskell? by tramav on Thursday October 03, 2019 @02:11PM (#21150040)
Does Data.Aeson parse JSON as UTF-8 and numbers as decimal? You know, in real world business applications we don't use float/double or ASCII.
Re:What Is Good About Haskell? by pwm on Thursday October 03, 2019 @04:04PM (#21151495)
Of course. It uses the Text [0] and Scientific [1] packages under the hood. The internal ADT representing JSON is actually very simple (as json is very simple itself):

  data Value
    = Object (HashMap Text Value)
    | Array (Vector Value)
    | String Text
    | Number Scientific
    | Bool Bool
    | Null

[0] http://hackage.haskell.org/package/text-1.2.3.1/docs/Data-Te...

[1] http://hackage.haskell.org/package/scientific-0.3.6.2/docs/D...