Skip to content

Add instance Pretty a => Pretty (Maybe a)?! #268

@sjakobi

Description

@sjakobi

ansi-wl-pprint has (or rather had) this one, as #246 points out:

instance Pretty a => Pretty (Maybe a) where
  pretty Nothing = empty
  pretty (Just a) = pretty a

Should prettyprinter get it too?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions