HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulegraphviz-2999.20.2.0Haskell2010

Data.GraphViz.Internal.Util

This module defines internal utility functions.

  • 18 values
valuefrstIDString :: Char -> Bool
#

First character of a non-quoted String must match this.

valuerestIDString :: Char -> Bool
#

The rest of a non-quoted String must match this.

valueisNumString :: Bool -> Text -> Bool
#

Determine if this String represents a number. Boolean parameter determines if exponents are considered part of numbers for this.

valuestringToInt :: Text -> Maybe Int
#

Determine if this String represents an integer.

valueescapeQuotes :: String -> String
#

Graphviz requires double quotes to be explicitly escaped.

valuedescapeQuotes :: String -> String
#

Remove explicit escaping of double quotes.

valuekeywords :: Set Text
#

The following are Dot keywords and are not valid as labels, etc. unquoted.

valueuniq :: Ord a => [a] -> [a]
#
valueuniqBy :: Ord b => (a -> b) -> [a] -> [a]
#
valuegroupSortBy :: Ord b => (a -> b) -> [a] -> [[a]]
#
valuegroupSortCollectBy :: Ord b => (a -> b) -> (a -> c) -> [a] -> [(b, [c])]
#
valuebool :: a -> a -> Bool -> a
#

Fold over Bools; first param is for False, second for True.

valueisSingle :: [a] -> Bool
#