pugs-DrIFT-2.2.3.1: DrIFT with pugs-specific rules.ContentsIndex
DrIFT.Perl6Class
Synopsis
showMooseRoleDef :: NamespaceMangler -> String -> String
showPerl6RoleDef :: NamespaceMangler -> String -> String
showMooseClassDef :: NamespaceMangler -> String -> String -> [(String, String, String)] -> String
showPerl6ClassDef :: NamespaceMangler -> String -> String -> [(String, String, String)] -> String
qt :: String -> Doc
type NamespaceMangler = String -> String
class Typeable a => MooseClass a where
showMooseTypeDef :: NamespaceMangler -> a -> String
class PLit a => Perl6Class a where
showPerl6TypeDef :: NamespaceMangler -> a -> String
asPerl6Object :: a -> String
showKV :: (PLit a, PLit b) => (a, b) -> Doc
ts :: PLit a => a -> Doc
qbraces :: [Doc] -> [Doc]
class (Typeable a, Show a) => PLit a where
plShow :: a -> String
showStringLiteral :: String -> [Doc]
showSLiteral :: ByteString -> [Doc]
showLLiteral :: ByteString -> [Doc]
Documentation
showMooseRoleDef
:: NamespaceMangler
-> String
-> StringPerl 6 role definition
showPerl6RoleDef
:: NamespaceMangler
-> String
-> StringPerl 6 role definition
showMooseClassDef
:: NamespaceMangler(e.g, (v6::AST:: ++))
-> Stringrole name (Hs datatype)
-> Stringclass name (Hs variant)
-> [(String, String, String)]member type+name pairs
-> StringPerl 6 class definition
showPerl6ClassDef
:: NamespaceMangler(e.g, (v6::AST:: ++))
-> Stringrole name (Hs datatype)
-> Stringclass name (Hs variant)
-> [(String, String, String)]member type+name pairs
-> StringPerl 6 class definition
qt :: String -> Doc
type NamespaceMangler = String -> String
class Typeable a => MooseClass a where
Methods
showMooseTypeDef :: NamespaceMangler -> a -> String
show/hide Instances
class PLit a => Perl6Class a where
Methods
showPerl6TypeDef :: NamespaceMangler -> a -> String
asPerl6Object :: a -> String
show/hide Instances
showKV :: (PLit a, PLit b) => (a, b) -> Doc
ts :: PLit a => a -> Doc
qbraces :: [Doc] -> [Doc]
class (Typeable a, Show a) => PLit a where
typeclass for dumping literals in Perl 6 source code.
Methods
plShow :: a -> String
show/hide Instances
showStringLiteral :: String -> [Doc]
Turn a string into source-code fitting Perl 6 string literal. May result in code for concatenation of several such literals. The restult is a [Doc] rather than a single String so that calling pretty-printers can render linebreaks at the correct places trivially with cat.
showSLiteral :: ByteString -> [Doc]
An FPS version of showStringLiteral. Since the pretty-printing library isn't fps, this isn't as fast as it might have been.
showLLiteral :: ByteString -> [Doc]
An FPS version of showStringLiteral. Since the pretty-printing library isn't fps, this isn't as fast as it might have been.
Produced by Haddock version 2.7.2