Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.09 KB

README.md

File metadata and controls

36 lines (19 loc) · 1.09 KB

debugged

An implementation of debug pretty printing library inspired by purescript-debugged.

Features

  • ASCII coloured output:

    ascii-pretty

  • Generic deriving:

    We can declare a data type each of the fields having instances of debugged:

    generic-newtype-data

    And then using Deriving Via we get pretty printed output for free:

    generic-pretty

  • Newtypes for use with Deriving Via (using type level symbols):

    We can declare a data type of reverse lists (implemented here as a newtype for lists) along with giving a Foldable instance (not shown here):

    revlist-newtype-data

    Then given some reverse list:

    revlist-example

    We get pretty printing including the type name:

    revlist-pretty