Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Types and functions for describing the movements of a cursor around the
Json
structure.
Documentation
data ZipperMove Source #
Set of moves that may be executed on a zipper.
Instances
Eq ZipperMove Source # | |
Defined in Waargonaut.Decode.ZipperMove (==) :: ZipperMove -> ZipperMove -> Bool # (/=) :: ZipperMove -> ZipperMove -> Bool # | |
Show ZipperMove Source # | |
Defined in Waargonaut.Decode.ZipperMove showsPrec :: Int -> ZipperMove -> ShowS # show :: ZipperMove -> String # showList :: [ZipperMove] -> ShowS # | |
AsZipperMove ZipperMove Source # | |
Defined in Waargonaut.Decode.ZipperMove _ZipperMove :: Prism' ZipperMove ZipperMove Source # _U :: Prism' ZipperMove () Source # _D :: Prism' ZipperMove () Source # _DAt :: Prism' ZipperMove Text Source # _Item :: Prism' ZipperMove Text Source # |
class AsZipperMove r where Source #
Classy Prism'
s for things that may be treated as a ZipperMove
.
_ZipperMove :: Prism' r ZipperMove Source #
_DAt :: Prism' r Text Source #
_Item :: Prism' r Text Source #
Instances
AsZipperMove ZipperMove Source # | |
Defined in Waargonaut.Decode.ZipperMove _ZipperMove :: Prism' ZipperMove ZipperMove Source # _U :: Prism' ZipperMove () Source # _D :: Prism' ZipperMove () Source # _DAt :: Prism' ZipperMove Text Source # _Item :: Prism' ZipperMove Text Source # |
ppZipperMove :: ZipperMove -> Doc a Source #
Pretty print a given zipper movement, used when printing
CursorHistory'
to improve the readability of the errors.