hindent-6.0.0: Extensible Haskell pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

HIndent.Pretty.SigBindFamily

Description

A module defining SigBindFamily and other related types and functions.

Synopsis

Documentation

data SigBindFamily Source #

A sum type containing one of those: function signature, function binding, type family, type family instance, and data family instance.

Instances

Instances details
CommentExtraction SigBindFamily Source # 
Instance details

Defined in HIndent.Pretty.NodeComments

mkSortedLSigBindFamilyList :: [LSig GhcPs] -> [LHsBindLR GhcPs GhcPs] -> [LFamilyDecl GhcPs] -> [LTyFamInstDecl GhcPs] -> [LDataFamInstDecl GhcPs] -> [LSigBindFamily] Source #

Creates a list of LSigBindFamily from arguments. The list is sorted by its elements' locations.

filterLSig :: [LSigBindFamily] -> [LSig GhcPs] Source #

Filters out SigBindFamilys and extract the wrapped values.

filterLBind :: [LSigBindFamily] -> [LHsBindLR GhcPs GhcPs] Source #

Filters out Binds and extract the wrapped values.