You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just came across the need for something like this:
getItem::FromDynItema=>Text->Item->Parsera
getItem k m =caseM.lookup k m ofNothing->fail ("Key "<>T.unpack k <>" not found")
Just (DMap dv) ->either (fail"...") return$ fromItem dv
_ ->fail ("Key "<>T.unpack k <>" is not a map!")
which basically allows to use getItem like getAttr to produce nested
data types.
The text was updated successfully, but these errors were encountered:
I just came across the need for something like this:
which basically allows to use
getItem
likegetAttr
to produce nesteddata types.
The text was updated successfully, but these errors were encountered: