path-size-0.1: Utility for reporting file-system sizes.
Safe HaskellNone
LanguageGHC2021

PathSize.Data.SubPathData.Internal

Description

Internal module for SubPathData. Provides the invariant-breaking data constructor for SubPathData.

Since: 0.1

Synopsis

Documentation

newtype SubPathData Source #

A flattened and sorted representation of PathTree. Contains at least one element.

Since: 0.1

Bundled Patterns

pattern MkSubPathData :: NESeq PathData -> SubPathData

Pattern synonym for SubPathData. Note that construction sorts the underlying NESeq, so it is not constant.

Since: 0.1

Instances

Instances details
Generic SubPathData Source # 
Instance details

Defined in PathSize.Data.SubPathData.Internal

Associated Types

type Rep SubPathData

Since: path-size-0.1

Instance details

Defined in PathSize.Data.SubPathData.Internal

type Rep SubPathData = D1 ('MetaData "SubPathData" "PathSize.Data.SubPathData.Internal" "path-size-0.1-inplace" 'True) (C1 ('MetaCons "UnsafeSubPathData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NESeq PathData))))
Show SubPathData Source #

Since: 0.1

Instance details

Defined in PathSize.Data.SubPathData.Internal

NFData SubPathData Source #

Since: 0.1

Instance details

Defined in PathSize.Data.SubPathData.Internal

Methods

rnf :: SubPathData -> () #

Eq SubPathData Source #

Since: 0.1

Instance details

Defined in PathSize.Data.SubPathData.Internal

LabelOptic "unSubPathData" A_Getter SubPathData SubPathData (NESeq PathData) (NESeq PathData) Source #

Since: 0.1

Instance details

Defined in PathSize.Data.SubPathData.Internal

HasField "unSubPathData" SubPathData (NESeq PathData) Source #

Since: 0.1

Instance details

Defined in PathSize.Data.SubPathData.Internal

type Rep SubPathData Source #

Since: 0.1

Instance details

Defined in PathSize.Data.SubPathData.Internal

type Rep SubPathData = D1 ('MetaData "SubPathData" "PathSize.Data.SubPathData.Internal" "path-size-0.1-inplace" 'True) (C1 ('MetaCons "UnsafeSubPathData" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NESeq PathData))))

mkSubPathData :: Bool -> PathTree -> SubPathData Source #

Creates a SubPathData from a PathTree.

Since: 0.1

takeLargestN :: HasCallStack => Bool -> Positive Int -> PathTree -> SubPathData Source #

Retrieves the largest N paths.

Since: 0.1

display :: Bool -> SubPathData -> Text Source #

Displays the data.

Since: 0.1