{-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} module Ormolu.Printer.Meat.Declaration.Default ( p_defaultDecl, ) where import GHC import Ormolu.Printer.Combinators import Ormolu.Printer.Meat.Type p_defaultDecl :: DefaultDecl GhcPs -> R () p_defaultDecl = \case DefaultDecl NoExtField ts -> do txt "default" breakpoint inci . parens N . sitcc $ sep (comma >> breakpoint) (sitcc . located' p_hsType) ts XDefaultDecl x -> noExtCon x