Copyright | (C) 2015-2016 Oleg Grenrus |
---|---|
License | BSD3 |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
Data.Aeson.Extra.Foldable
Description
Helps writing recursive algorithms on Value
, for example:
stripNulls :: Value -> Value stripNulls =cata
(embed
. f) where f (ObjectF a) = ObjectF $ HM.filter (== Null) a f x = x