- 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
- showStringLiteral :: String -> [Doc]
- showSLiteral :: ByteString -> [Doc]
- showLLiteral :: ByteString -> [Doc]
Documentation
:: NamespaceMangler | |
-> String | |
-> String | Perl 6 role definition |
:: NamespaceMangler | |
-> String | |
-> String | Perl 6 role definition |
type NamespaceMangler = String -> StringSource
class Typeable a => MooseClass a whereSource
showMooseTypeDef :: NamespaceMangler -> a -> StringSource
class PLit a => Perl6Class a whereSource
showPerl6TypeDef :: NamespaceMangler -> a -> StringSource
asPerl6Object :: a -> StringSource
Perl6Class Float | |
Perl6Class Int | |
Perl6Class Rational | |
Perl6Class Word | |
Perl6Class a => Perl6Class [a] | |
(Perl6Class a, Perl6Class b, PLit a, PLit b, PLit (Map a b)) => Perl6Class (Map a b) |
class (Typeable a, Show a) => PLit a whereSource
typeclass for dumping literals in Perl 6 source code.
showStringLiteral :: String -> [Doc]Source
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]Source
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]Source
An FPS version of showStringLiteral
.
Since the pretty-printing library isn't fps, this isn't
as fast as it might have been.