| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Debug.Hoed.Render
Synopsis
- data CompStmt = CompStmt {
- stmtLabel :: !Text
- stmtIdentifier :: !UID
- stmtDetails :: !StmtDetails
- data StmtDetails
- = StmtCon { }
- | StmtLam {
- stmtLamArgs :: [Hashed Text]
- stmtLamRes :: Hashed Text
- stmtPretty :: Hashed Text
- stmtRes :: CompStmt -> Text
- renderCompStmts :: (?statementWidth :: Int) => CDSSet -> [CompStmt]
- data CDS
- eventsToCDS :: Trace -> CDSSet
- noNewlines :: String -> String
- sortOn :: Ord b => (a -> b) -> [a] -> [a]
Documentation
Constructors
| CompStmt | |
Fields
| |
Instances
| Eq CompStmt # | |
| Ord CompStmt # | |
Defined in Debug.Hoed.Render | |
| Show CompStmt # | |
| Generic CompStmt # | |
| Serialize CompStmt # | |
| NFData CompStmt # | |
Defined in Debug.Hoed.Render | |
| Hashable CompStmt # | |
Defined in Debug.Hoed.Render | |
| type Rep CompStmt # | |
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 #
Constructors
| StmtCon | |
| StmtLam | |
Fields
| |
Instances
renderCompStmts :: (?statementWidth :: Int) => CDSSet -> [CompStmt] #
eventsToCDS :: Trace -> CDSSet #
noNewlines :: String -> String #
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