Hoed-0.5.1: Lightweight algorithmic debugging.

Safe HaskellNone
LanguageHaskell2010

Debug.Hoed.Render

Synopsis

Documentation

data CompStmt #

Constructors

CompStmt 
Instances
Eq CompStmt # 
Instance details

Defined in Debug.Hoed.Render

Ord CompStmt # 
Instance details

Defined in Debug.Hoed.Render

Show CompStmt # 
Instance details

Defined in Debug.Hoed.Render

Generic CompStmt # 
Instance details

Defined in Debug.Hoed.Render

Associated Types

type Rep CompStmt :: * -> * #

Methods

from :: CompStmt -> Rep CompStmt x #

to :: Rep CompStmt x -> CompStmt #

Serialize CompStmt # 
Instance details

Defined in Debug.Hoed.Serialize

NFData CompStmt # 
Instance details

Defined in Debug.Hoed.Render

Methods

rnf :: CompStmt -> () #

Hashable CompStmt # 
Instance details

Defined in Debug.Hoed.Render

Methods

hashWithSalt :: Int -> CompStmt -> Int #

hash :: CompStmt -> Int #

type Rep CompStmt # 
Instance details

Defined in Debug.Hoed.Render

type Rep CompStmt = D1 (MetaData "CompStmt" "Debug.Hoed.Render" "Hoed-0.5.1-H32clPszRWzKHFSRL0l4Ja" False) (C1 (MetaCons "CompStmt" PrefixI True) (S1 (MetaSel (Just "stmtLabel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "stmtIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UID) :*: S1 (MetaSel (Just "stmtDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 StmtDetails))))

data StmtDetails #

Instances
Generic StmtDetails # 
Instance details

Defined in Debug.Hoed.Render

Associated Types

type Rep StmtDetails :: * -> * #

Serialize StmtDetails # 
Instance details

Defined in Debug.Hoed.Serialize

NFData StmtDetails # 
Instance details

Defined in Debug.Hoed.Render

Methods

rnf :: StmtDetails -> () #

type Rep StmtDetails # 
Instance details

Defined in Debug.Hoed.Render

renderCompStmts :: (?statementWidth :: Int) => CDSSet -> [CompStmt] #

data CDS #

Instances
Eq CDS # 
Instance details

Defined in Debug.Hoed.Render

Methods

(==) :: CDS -> CDS -> Bool #

(/=) :: CDS -> CDS -> Bool #

Ord CDS # 
Instance details

Defined in Debug.Hoed.Render

Methods

compare :: CDS -> CDS -> Ordering #

(<) :: CDS -> CDS -> Bool #

(<=) :: CDS -> CDS -> Bool #

(>) :: CDS -> CDS -> Bool #

(>=) :: CDS -> CDS -> Bool #

max :: CDS -> CDS -> CDS #

min :: CDS -> CDS -> CDS #

Show CDS # 
Instance details

Defined in Debug.Hoed.Render

Methods

showsPrec :: Int -> CDS -> ShowS #

show :: CDS -> String #

showList :: [CDS] -> ShowS #

Generic CDS # 
Instance details

Defined in Debug.Hoed.Render

Associated Types

type Rep CDS :: * -> * #

Methods

from :: CDS -> Rep CDS x #

to :: Rep CDS x -> CDS #

NFData CDS # 
Instance details

Defined in Debug.Hoed.Render

Methods

rnf :: CDS -> () #

type Rep CDS # 
Instance details

Defined in Debug.Hoed.Render

type Rep CDS

eventsToCDS :: Trace -> CDSSet #

sortOn :: Ord b => (a -> b) -> [a] -> [a] #

Sort a list by comparing the results of a key function applied to each element. sortOn f is equivalent to sortBy (comparing f), but has the performance advantage of only evaluating f once for each element in the input list. This is called the decorate-sort-undecorate paradigm, or Schwartzian transform.

Elements are arranged from from lowest to highest, keeping duplicates in the order they appeared in the input.

>>> sortOn fst [(2, "world"), (4, "!"), (1, "Hello")]
[(1,"Hello"),(2,"world"),(4,"!")]

Since: base-4.8.0.0