Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Trustworthy |
- class AsNumber t where
- integralValue :: (AsNumber t, Integral a) => Prism' t a
- nonNull :: Prism' Value Value
- data Primitive
- = StringPrim !Text
- | NumberPrim !Number
- | BoolPrim !Bool
- | NullPrim
- class AsNumber t => AsPrimitive t where
- class AsPrimitive t => AsValue t where
- key :: AsValue t => Text -> IndexedTraversal' Text t Value
- nth :: AsValue t => Int -> IndexedTraversal' Int t Value
- class AsJSON t where
Numbers
integralValue :: (AsNumber t, Integral a) => Prism' t aSource
Primitive
Primitives of Value
class AsNumber t => AsPrimitive t whereSource
Objects and Arrays
class AsPrimitive t => AsValue t whereSource
nth :: AsValue t => Int -> IndexedTraversal' Int t ValueSource
Like ix
, but for Arrays with Int indexes