|
|
|
|
|
by a-saleh
3244 days ago
|
|
I am kinda waiting for Purescript to mature a tiny bit more in this regard, because it seems that they have something special brewing there, with their polymorphic record type and interesting take on type-level programming. Because this [1], even though it seems to be just a experiment so far, looks really good. I.e: doing type MyTestStrMap =
{ a :: Int
, b :: StrMap Int
} and then just calling let result = handleJSON """
{ "a": 1, "b": {"asdf": 1, "c": 2} }
""" let newResult = doSomething (result:: Either MultipleErrors MyTestStrMap)) is kinda all I ever wanted in these haskell inspired languages? [1] https://github.com/justinwoo/purescript-simple-json/blob/mas... |
|